[Pkg-net-snmp-commits] r129 - in branches/net-snmp52/debian: .
patches
Jochen Friedrich
jochen at alioth.debian.org
Fri Dec 29 16:43:20 CET 2006
Author: jochen
Date: 2006-12-29 16:43:20 +0100 (Fri, 29 Dec 2006)
New Revision: 129
Added:
branches/net-snmp52/debian/patches/32_mnttab_path.README
branches/net-snmp52/debian/patches/32_mnttab_path.patch
Modified:
branches/net-snmp52/debian/rules
Log:
Hardcode mount table location to work around strange buildd setups.
Added: branches/net-snmp52/debian/patches/32_mnttab_path.README
===================================================================
--- branches/net-snmp52/debian/patches/32_mnttab_path.README 2006-12-22 15:35:02 UTC (rev 128)
+++ branches/net-snmp52/debian/patches/32_mnttab_path.README 2006-12-29 15:43:20 UTC (rev 129)
@@ -0,0 +1 @@
+Patch to hardcode mount table location.
Added: branches/net-snmp52/debian/patches/32_mnttab_path.patch
===================================================================
--- branches/net-snmp52/debian/patches/32_mnttab_path.patch 2006-12-22 15:35:02 UTC (rev 128)
+++ branches/net-snmp52/debian/patches/32_mnttab_path.patch 2006-12-29 15:43:20 UTC (rev 129)
@@ -0,0 +1,29 @@
+--- net-snmp-5.2.3.orig/configure.in 2006-07-14 01:29:49.000000000 +0200
++++ net-snmp-5.2.3/configure.in 2006-12-28 16:07:34.000000000 +0100
+@@ -2102,13 +2102,19 @@
+
+ AC_CACHE_CHECK(for mount table location,ac_cv_ETC_MNTTAB,
+ [ac_cv_ETC_MNTTAB="unknown"
+-for i in /etc/mnttab /etc/mtab /etc/filesystems
+- do
+- if test -f $i; then
+- ac_cv_ETC_MNTTAB="$i"
+- break;
+- fi
+-done
++AC_ARG_WITH(mnttab,
++[ --with-mnttab=\"/etc/mnttab\" Mount table location.
++ The default is to autodetect this.],
++ [ac_cv_ETC_MNTTAB="$with_mnttab"])
++if test "$ac_cv_ETC_MNTTAB" = "unknown"; then
++ for i in /etc/mnttab /etc/mtab /etc/filesystems
++ do
++ if test -f $i; then
++ ac_cv_ETC_MNTTAB="$i"
++ break;
++ fi
++ done
++fi
+ ])
+
+ AC_DEFINE_UNQUOTED(ETC_MNTTAB,"$ac_cv_ETC_MNTTAB")
Modified: branches/net-snmp52/debian/rules
===================================================================
--- branches/net-snmp52/debian/rules 2006-12-22 15:35:02 UTC (rev 128)
+++ branches/net-snmp52/debian/rules 2006-12-29 15:43:20 UTC (rev 129)
@@ -70,6 +70,7 @@
--with-sys-contact="root" --with-sys-location="Unknown" \
--with-mib-modules="$(MIB_MODULES)" \
--enable-mfd-rewrites \
+ --with-mnttab=/etc/mtab \
--with-defaults
$(MAKE) LIBSENSORS=$(LIBSENSORS) LD_RUN_PATH=
touch build-stamp
More information about the Pkg-net-snmp-commits
mailing list