blob: 5fbb411a5f46c2a904dae950d7dd09e9f34dfe3a [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From b923cd38e2503b86aedf66b767fd7f51c9f25645 Mon Sep 17 00:00:00 2001
Andrew Geisslerd688a012020-09-18 13:36:00 -05002From: "douglas.royds" <douglas.royds@taitradio.com>
3Date: Wed, 21 Nov 2018 13:52:18 +1300
4Subject: [PATCH] net-snmp: Reproducibility: Don't check build host for
5
Brad Bishop19323692019-04-05 15:28:33 -04006Reproducible build: Don't check for /etc/printcap on the build machine when
7cross-compiling. Use AC_CHECK_FILE to set the cached variable
8ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be
9set in the environment to "yes" or "no" as appropriate for the target platform.
10
Andrew Geisslerd688a012020-09-18 13:36:00 -050011---
Patrick Williams520786c2023-06-25 16:20:36 -050012Upstream-Status: Pending
13
Andrew Geisslerd688a012020-09-18 13:36:00 -050014 configure.d/config_os_misc4 | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/configure.d/config_os_misc4 b/configure.d/config_os_misc4
Patrick Williams92b42cb2022-09-03 06:53:57 -050018index b6864d9..07ca922 100644
Andrew Geisslerd688a012020-09-18 13:36:00 -050019--- a/configure.d/config_os_misc4
20+++ b/configure.d/config_os_misc4
21@@ -99,9 +99,9 @@ if test x$LPSTAT_PATH != x; then
Brad Bishop19323692019-04-05 15:28:33 -040022 [Path to the lpstat command])
23 AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available])
24 fi
25-if test -r /etc/printcap; then
26+AC_CHECK_FILE([/etc/printcap],
27 AC_DEFINE(HAVE_PRINTCAP, 1, [Set if /etc/printcap exists])
28-fi
29+)
30
31
32 # Check ps args