Skip to contentSkip to conversation

net-snmp: fix reproducibilty issues in net-snmp-config

PATCH New Jeremy A. Puhlman 1 participant 1 message Mar 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 net-snmp: fix reproducibilty issues in net-snmp-config

Both STAGING_HOST_DIR and -fmacro-prefix-map path to WORKDIR were encoded in the config.

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb +3 -0
index 9c2ffb2c7..5466649a8 100644
@@ -124,11 +124,14 @@ do_install_append() {
         -i ${D}${bindir}/net-snmp-create-v3-user
     sed -e 's@^NSC_SRCDIR=.*@NSC_SRCDIR=.@g' \
         -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \
+        -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \
         -e 's@[^ ]*--sysroot=[^ "]*@@g' \
         -e 's@[^ ]*--with-libtool-sysroot=[^ "]*@@g' \
         -e 's@[^ ]*--with-install-prefix=[^ "]*@@g' \
         -e 's@[^ ]*PKG_CONFIG_PATH=[^ "]*@@g' \
         -e 's@[^ ]*PKG_CONFIG_LIBDIR=[^ "]*@@g' \
+        -e 's@-L${STAGING_DIR_HOST}${libdir}@@g' \
+        -e 's@-I${STAGING_DIR_HOST}${includedir}@@g' \
         -i ${D}${bindir}/net-snmp-config
 
     if [ "${HAS_PERL}" = "1" ]; then
Signature · 1 line
2.13.3