[Pkg-nagios-devel] Bug#843805: nagios-nrpe FTCBFS: configures for the build architecture

Helmut Grohne helmut at subdivi.de
Wed Nov 9 19:22:41 UTC 2016


Source: nagios-nrpe
Version: 2.15-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

nagios-nrpe fails to cross build from source, because it configures for
the build architecture. One should pass --host to ./configure for cross
compilation. Since dh_auto_configure knows about these flags, the
attached patch simply replaces the explicit ./configure invocation with
an indirection through dh_auto_configure and thus makes the cross build
succeed. Please consider applying it.

Helmut
-------------- next part --------------
diff -u nagios-nrpe-2.15/debian/changelog nagios-nrpe-2.15/debian/changelog
--- nagios-nrpe-2.15/debian/changelog
+++ nagios-nrpe-2.15/debian/changelog
@@ -1,3 +1,10 @@
+nagios-nrpe (2.15-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross flags. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Wed, 09 Nov 2016 20:19:24 +0100
+
 nagios-nrpe (2.15-1) unstable; urgency=high
 
   * [f2cea9f] Imported Upstream version 2.15
diff -u nagios-nrpe-2.15/debian/rules nagios-nrpe-2.15/debian/rules
--- nagios-nrpe-2.15/debian/rules
+++ nagios-nrpe-2.15/debian/rules
@@ -10,11 +10,9 @@
 	    dh $@ --with dpatch,autotools_dev
 
 override_dh_auto_configure:
-	./configure \
-		--prefix=/usr \
+	dh_auto_configure --  \
 		--enable-ssl \
 		--with-ssl-lib=/usr/lib/$(DEB_HOST_MULTIARCH) \
-		--sysconfdir=/etc \
 		--localstatedir=/var \
 		--libexecdir=/usr/lib/nagios/plugins \
 		--libdir=/usr/lib/nagios


More information about the Pkg-nagios-devel mailing list