Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 1 | From 84e362fe97f50fbad69f083bc2d8fe18f83eb2f7 Mon Sep 17 00:00:00 2001 |
| 2 | From: "douglas.royds" <douglas.royds@taitradio.com> |
| 3 | Date: Wed, 21 Nov 2018 13:52:18 +1300 |
| 4 | Subject: [PATCH] net-snmp: Reproducibility: Don't check build host for |
| 5 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 6 | Reproducible build: Don't check for /etc/printcap on the build machine when |
| 7 | cross-compiling. Use AC_CHECK_FILE to set the cached variable |
| 8 | ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be |
| 9 | set in the environment to "yes" or "no" as appropriate for the target platform. |
| 10 | |
Andrew Geissler | d688a01 | 2020-09-18 13:36:00 -0500 | [diff] [blame] | 11 | --- |
| 12 | configure.d/config_os_misc4 | 4 ++-- |
| 13 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 14 | |
| 15 | diff --git a/configure.d/config_os_misc4 b/configure.d/config_os_misc4 |
| 16 | index 6f23c8e..8cea75a 100644 |
| 17 | --- a/configure.d/config_os_misc4 |
| 18 | +++ b/configure.d/config_os_misc4 |
| 19 | @@ -99,9 +99,9 @@ if test x$LPSTAT_PATH != x; then |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 20 | [Path to the lpstat command]) |
| 21 | AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available]) |
| 22 | fi |
| 23 | -if test -r /etc/printcap; then |
| 24 | +AC_CHECK_FILE([/etc/printcap], |
| 25 | AC_DEFINE(HAVE_PRINTCAP, 1, [Set if /etc/printcap exists]) |
| 26 | -fi |
| 27 | +) |
| 28 | |
| 29 | |
| 30 | # Check ps args |