From b9ad53cccef2d8e695d9459904bac277e0406b89 Mon Sep 17 00:00:00 2001 From: Yue Tao Date: Fri, 9 May 2014 16:40:35 +0800 Subject: net-snmp: Using the target perl Set the PERLPROG to target perl to avoid host contamination. Signed-off-by: Yue Tao Signed-off-by: Roy Li Signed-off-by: Joe MacDonald --- meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb index d21995a9e1..f6656ad7d3 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb @@ -37,6 +37,10 @@ EXTRA_OECONF = "--disable-embedded-perl \ --with-defaults \ ${@base_conditional('SITEINFO_ENDIANNESS', 'le', '--with-endianness=little', '--with-endianness=big', d)}" +do_configure_prepend() { + export PERLPROG="${bindir}/env perl" +} + do_install_append() { install -d ${D}${sysconfdir}/snmp install -d ${D}${sysconfdir}/init.d -- cgit 1.2.3-korg