net-snmp: Using the target perl
authorYue Tao <Yue.Tao@windriver.com>
Fri, 9 May 2014 08:40:35 +0000 (16:40 +0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:38:02 +0000 (08:38 -0800)
Set the PERLPROG to target perl to avoid host contamination.

(From meta-openembedded rev: b9ad53cccef2d8e695d9459904bac277e0406b89)

Signed-off-by: Yue Tao <Yue.Tao@windriver.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
meta-openembedded/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.2.bb

index d21995a..f6656ad 100644 (file)
@@ -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