mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 01:30:23 +00:00
Revert "net-snmp: improve reproducibility"
This reverts commit 57d8e2c673.
Signed-off-by: Douglas Royds <douglas.royds@taitradio.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
-42
@@ -1,42 +0,0 @@
|
|||||||
From f592398b1c659f84168f5c84f63af3b71454b8f5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hongxu Jia <hongxu.jia@windriver.com>
|
|
||||||
Date: Fri, 28 Sep 2018 22:59:23 +0800
|
|
||||||
Subject: [PATCH] remove configure options from versioninfo
|
|
||||||
|
|
||||||
Configure options contains host build paths which breaks
|
|
||||||
binary reproducibility.
|
|
||||||
|
|
||||||
It is no harm to remove it from version info.
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [cross compile specific]
|
|
||||||
|
|
||||||
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
|
|
||||||
---
|
|
||||||
agent/mibgroup/ucd-snmp/versioninfo.c | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/agent/mibgroup/ucd-snmp/versioninfo.c b/agent/mibgroup/ucd-snmp/versioninfo.c
|
|
||||||
index a5151c1..1160382 100644
|
|
||||||
--- a/agent/mibgroup/ucd-snmp/versioninfo.c
|
|
||||||
+++ b/agent/mibgroup/ucd-snmp/versioninfo.c
|
|
||||||
@@ -92,7 +92,7 @@ var_extensible_version(struct variable *vp,
|
|
||||||
static char errmsg[300];
|
|
||||||
char *cptr;
|
|
||||||
time_t curtime;
|
|
||||||
-#ifdef NETSNMP_CONFIGURE_OPTIONS
|
|
||||||
+#if 0
|
|
||||||
static char config_opts[] = NETSNMP_CONFIGURE_OPTIONS;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ var_extensible_version(struct variable *vp,
|
|
||||||
*var_len = strlen(errmsg);
|
|
||||||
return ((u_char *) errmsg);
|
|
||||||
case VERCONFIG:
|
|
||||||
-#ifdef NETSNMP_CONFIGURE_OPTIONS
|
|
||||||
+#if 0
|
|
||||||
*var_len = strlen(config_opts);
|
|
||||||
if (*var_len > 1024)
|
|
||||||
*var_len = 1024; /* mib imposed restriction */
|
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
||||||
@@ -24,7 +24,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.zip \
|
|||||||
file://0004-configure-fix-incorrect-variable.patch \
|
file://0004-configure-fix-incorrect-variable.patch \
|
||||||
file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \
|
file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \
|
||||||
file://net-snmp-fix-for-disable-des.patch \
|
file://net-snmp-fix-for-disable-des.patch \
|
||||||
file://0001-remove-configure-options-from-versioninfo.patch \
|
|
||||||
"
|
"
|
||||||
SRC_URI[md5sum] = "6aae5948df7efde626613d6a4b3cd9d4"
|
SRC_URI[md5sum] = "6aae5948df7efde626613d6a4b3cd9d4"
|
||||||
SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477a56042"
|
SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477a56042"
|
||||||
@@ -169,12 +168,6 @@ net_snmp_sysroot_preprocess () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGE_PREPROCESS_FUNCS += "net_snmp_package_preprocess"
|
|
||||||
net_snmp_package_preprocess () {
|
|
||||||
sed -e 's@${RECIPE_SYSROOT}@@g' \
|
|
||||||
-i ${PKGD}${bindir}/net-snmp-config
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client \
|
PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client \
|
||||||
${PN}-server-snmpd ${PN}-server-snmptrapd \
|
${PN}-server-snmpd ${PN}-server-snmptrapd \
|
||||||
${PN}-lib-netsnmp ${PN}-lib-agent ${PN}-lib-helpers \
|
${PN}-lib-netsnmp ${PN}-lib-agent ${PN}-lib-helpers \
|
||||||
|
|||||||
Reference in New Issue
Block a user