summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch19
-rw-r--r--meta-networking/recipes-protocols/net-snmp/net-snmp_5.8.bb2
2 files changed, 21 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch
new file mode 100644
index 0000000000..4316c7a713
--- /dev/null
+++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/reproducibility-have-printcap.patch
@@ -0,0 +1,19 @@
1Reproducible build: Don't check for /etc/printcap on the build machine when
2cross-compiling. Use AC_CHECK_FILE to set the cached variable
3ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be
4set in the environment to "yes" or "no" as appropriate for the target platform.
5
6--- net-snmp-5.8.original/configure.d/config_os_misc4 2018-11-20 17:05:03.986274522 +1300
7+++ net-snmp-5.8/configure.d/config_os_misc4 2018-11-20 17:08:32.250700448 +1300
8@@ -116,9 +116,9 @@
9 [Path to the lpstat command])
10 AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available])
11 fi
12-if test -r /etc/printcap; then
13+AC_CHECK_FILE([/etc/printcap],
14 AC_DEFINE(HAVE_PRINTCAP, 1, [Set if /etc/printcap exists])
15-fi
16+)
17
18
19 # Check ps args
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 03fe24bdd6..f556c58988 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://reproducibility-have-printcap.patch \
27 " 28 "
28SRC_URI[md5sum] = "6aae5948df7efde626613d6a4b3cd9d4" 29SRC_URI[md5sum] = "6aae5948df7efde626613d6a4b3cd9d4"
29SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477a56042" 30SRC_URI[sha256sum] = "c6291385b8ed84f05890fe4197005daf7e7ee7b082c2e390fa114a9477a56042"
@@ -68,6 +69,7 @@ CACHED_CONFIGUREVARS = " \
68 ac_cv_ETC_MNTTAB=/etc/mtab \ 69 ac_cv_ETC_MNTTAB=/etc/mtab \
69 lt_cv_shlibpath_overrides_runpath=yes \ 70 lt_cv_shlibpath_overrides_runpath=yes \
70 ac_cv_path_UNAMEPROG=${base_bindir}/uname \ 71 ac_cv_path_UNAMEPROG=${base_bindir}/uname \
72 ac_cv_file__etc_printcap=no \
71" 73"
72export PERLPROG="${bindir}/env perl" 74export PERLPROG="${bindir}/env perl"
73PERLPROG_append = "${@bb.utils.contains('PACKAGECONFIG', 'perl', ' -I${WORKDIR}', '', d)}" 75PERLPROG_append = "${@bb.utils.contains('PACKAGECONFIG', 'perl', ' -I${WORKDIR}', '', d)}"