diff options
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp/0001-remove-configure-options-from-versioninfo.patch | 42 | ||||
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | 7 |
2 files changed, 49 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-remove-configure-options-from-versioninfo.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-remove-configure-options-from-versioninfo.patch new file mode 100644 index 000000000..2d540967e --- /dev/null +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-remove-configure-options-from-versioninfo.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From f592398b1c659f84168f5c84f63af3b71454b8f5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Fri, 28 Sep 2018 22:59:23 +0800 | ||
4 | Subject: [PATCH] remove configure options from versioninfo | ||
5 | |||
6 | Configure options contains host build paths which breaks | ||
7 | binary reproducibility. | ||
8 | |||
9 | It is no harm to remove it from version info. | ||
10 | |||
11 | Upstream-Status: Inappropriate [cross compile specific] | ||
12 | |||
13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
14 | --- | ||
15 | agent/mibgroup/ucd-snmp/versioninfo.c | 4 ++-- | ||
16 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/agent/mibgroup/ucd-snmp/versioninfo.c b/agent/mibgroup/ucd-snmp/versioninfo.c | ||
19 | index a5151c1..1160382 100644 | ||
20 | --- a/agent/mibgroup/ucd-snmp/versioninfo.c | ||
21 | +++ b/agent/mibgroup/ucd-snmp/versioninfo.c | ||
22 | @@ -92,7 +92,7 @@ var_extensible_version(struct variable *vp, | ||
23 | static char errmsg[300]; | ||
24 | char *cptr; | ||
25 | time_t curtime; | ||
26 | -#ifdef NETSNMP_CONFIGURE_OPTIONS | ||
27 | +#if 0 | ||
28 | static char config_opts[] = NETSNMP_CONFIGURE_OPTIONS; | ||
29 | #endif | ||
30 | |||
31 | @@ -126,7 +126,7 @@ var_extensible_version(struct variable *vp, | ||
32 | *var_len = strlen(errmsg); | ||
33 | return ((u_char *) errmsg); | ||
34 | case VERCONFIG: | ||
35 | -#ifdef NETSNMP_CONFIGURE_OPTIONS | ||
36 | +#if 0 | ||
37 | *var_len = strlen(config_opts); | ||
38 | if (*var_len > 1024) | ||
39 | *var_len = 1024; /* mib imposed restriction */ | ||
40 | -- | ||
41 | 2.7.4 | ||
42 | |||
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb index a32d09d77..d47f9e4a3 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb | |||
@@ -24,6 +24,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/net-snmp/net-snmp-${PV}.zip \ | |||
24 | file://0004-configure-fix-incorrect-variable.patch \ | 24 | file://0004-configure-fix-incorrect-variable.patch \ |
25 | file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \ | 25 | file://net-snmp-5.7.2-fix-engineBoots-value-on-SIGHUP.patch \ |
26 | file://net-snmp-fix-for-disable-des.patch \ | 26 | file://net-snmp-fix-for-disable-des.patch \ |
27 | file://0001-remove-configure-options-from-versioninfo.patch \ | ||
27 | " | 28 | " |
28 | SRC_URI[md5sum] = "6aae5948df7efde626613d6a4b3cd9d4" | 29 | SRC_URI[md5sum] = "6aae5948df7efde626613d6a4b3cd9d4" |
29 | SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477a56042" | 30 | SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477a56042" |
@@ -168,6 +169,12 @@ net_snmp_sysroot_preprocess () { | |||
168 | fi | 169 | fi |
169 | } | 170 | } |
170 | 171 | ||
172 | PACKAGE_PREPROCESS_FUNCS += "net_snmp_package_preprocess" | ||
173 | net_snmp_package_preprocess () { | ||
174 | sed -e 's@${RECIPE_SYSROOT}@@g' \ | ||
175 | -i ${PKGD}${bindir}/net-snmp-config | ||
176 | } | ||
177 | |||
171 | PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client \ | 178 | PACKAGES += "${PN}-libs ${PN}-mibs ${PN}-server ${PN}-client \ |
172 | ${PN}-server-snmpd ${PN}-server-snmptrapd \ | 179 | ${PN}-server-snmpd ${PN}-server-snmptrapd \ |
173 | ${PN}-lib-netsnmp ${PN}-lib-agent ${PN}-lib-helpers \ | 180 | ${PN}-lib-netsnmp ${PN}-lib-agent ${PN}-lib-helpers \ |