From 37db2d68a0c423bb6a06ff33f178bd378eae7639 Mon Sep 17 00:00:00 2001 From: Marc Haber Date: Fri, 9 Jun 2006 13:43:27 +0000 Subject: [PATCH] * make package build fail if /proc is not mounted, before I end up filing that bug a fourth time. Closes: #344389, #354215, #372316 --- debian/changelog | 4 +++- debian/rules | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 09eaf2c..86814bc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ nagios-plugins (1.4.3-1.0) UNRELEASED; urgency=low * NOT RELEASED YET + * make package build fail if /proc is not mounted, before I end up + filing that bug a fourth time. Closes: #344389, #354215 - -- sean finney Sun, 28 May 2006 21:40:55 +0200 + -- Marc Haber Fri, 9 Jun 2006 13:18:50 +0000 nagios-plugins (1.4.3-1) unstable; urgency=low diff --git a/debian/rules b/debian/rules index 3928fa6..25c82e2 100755 --- a/debian/rules +++ b/debian/rules @@ -44,6 +44,14 @@ endif config.status: configure export PATH=$(PATH) dh_testdir + + # if /proc is not mounted, check_nagios and check_procs are + # silently omitted from build. + @if ! [ -d /proc/1 ]; then \ + echo "nagios-plugins needs a mounted /proc to correctly build"; \ + exit 1; \ + fi + ln -sf /usr/share/misc/config.sub . ln -sf /usr/share/misc/config.guess . rm -f config.cache