Package: monitoring-plugins-basic
Version: 2.1.2-1
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

I have only systems with hardened security settings like a /proc that do
not show not owned stuff to users. For this reason the /proc check in
control file fails and so do build.

See attached patch to fix that.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (800, 'unstable'), (500, 'testing'), (110, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.0.7 (SMP w/8 CPU cores)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages monitoring-plugins-basic depends on:
ii  iputils-ping               3:20121221-5+b2
ii  libc6                      2.19-22
ii  libssl1.0.0                1.0.2d-1
ii  monitoring-plugins-common  2.1.2-1
ii  procps                     2:3.3.10-4
ii  ucf                        3.0030

Versions of packages monitoring-plugins-basic recommends:
ii  libcap2-bin  1:2.24-12

Versions of packages monitoring-plugins-basic suggests:
pn  icinga | icinga | nagios3  <none>

-- no debconf information

-- 
Klaus Ethgen                              http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16   Klaus Ethgen <kl...@ethgen.de>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
commit 8aef581146a792933ec4da3d22d12f3f8aaef980
Author: Klaus Ethgen <kl...@ethgen.de>
Date:   Tue Oct 27 13:13:01 2015 +0100

    Fix /proc check on systems that have hardened system

diff --git a/debian/rules b/debian/rules
index c6cd1fc..902074e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -69,7 +69,7 @@ config.status: configure
 	
 	# if /proc is not mounted, check_nagios and check_procs are
 	# silently omitted from build.
-	@if ! [ -d /proc/1 ]; then \
+	@if ! [ -d /proc/$$$$ ]; then \
 	  echo "monitoring-plugins needs a mounted /proc to correctly build"; \
 	  exit 1; \
 	fi

Attachment: signature.asc
Description: PGP signature

Reply via email to