mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 23:39:36 +00:00
Don't check for /etc/printcap on the build machine when cross-compiling. Use AC_CHECK_FILE to set the cached variable ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be set in the environment to "yes" or "no" as appropriate for the target platform. I have taken the simple expedient of setting ac_cv_file__etc_printcap=no. If this proves to be a problem, we can easily add a new variable, HAS_PRINTCAP. Upstream-Status: Submitted https://sourceforge.net/p/net-snmp/patches/1385/ Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 lines
761 B
Diff
20 lines
761 B
Diff
Reproducible build: Don't check for /etc/printcap on the build machine when
|
|
cross-compiling. Use AC_CHECK_FILE to set the cached variable
|
|
ac_cv_file__etc_printcap instead. When cross-compiling, this variable should be
|
|
set in the environment to "yes" or "no" as appropriate for the target platform.
|
|
|
|
--- net-snmp-5.8.original/configure.d/config_os_misc4 2018-11-20 17:05:03.986274522 +1300
|
|
+++ net-snmp-5.8/configure.d/config_os_misc4 2018-11-20 17:08:32.250700448 +1300
|
|
@@ -116,9 +116,9 @@
|
|
[Path to the lpstat command])
|
|
AC_DEFINE(HAVE_LPSTAT, 1, [Set if the lpstat command is available])
|
|
fi
|
|
-if test -r /etc/printcap; then
|
|
+AC_CHECK_FILE([/etc/printcap],
|
|
AC_DEFINE(HAVE_PRINTCAP, 1, [Set if /etc/printcap exists])
|
|
-fi
|
|
+)
|
|
|
|
|
|
# Check ps args
|