Source: dhcping
Version: 1.2-4.1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dhcping successfully performs a native build when asked for performing a
cross build and thus produces very broken packages. It should be passing
--host to ./configure and needs to use the right strip. After doing so,
cross builds just work. Please consider applying the attached patch.

Helmut
diff -u dhcping-1.2/debian/changelog dhcping-1.2/debian/changelog
--- dhcping-1.2/debian/changelog
+++ dhcping-1.2/debian/changelog
@@ -1,3 +1,10 @@
+dhcping (1.2-4.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use cross tools (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 03 Aug 2017 13:58:08 +0200
+
 dhcping (1.2-4.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u dhcping-1.2/debian/rules dhcping-1.2/debian/rules
--- dhcping-1.2/debian/rules
+++ dhcping-1.2/debian/rules
@@ -17,6 +17,8 @@
 #
 SHELL=/bin/bash
 
+include /usr/share/dpkg/architecture.mk
+
 # The name and version of the source
 #
 source = $(shell grep "^Source: " debian/control|head -1|sed 's/Source: 
\(.*\)/\1/g')
@@ -33,12 +35,12 @@
 CFLAGS = -O2
 endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-STRIP = -s
+STRIP = -s --strip-program=$(DEB_HOST_GNU_TYPE)-strip
 endif
 
 build:
        cp -f /usr/share/misc/config.{sub,guess} .
-       test -f config.cache || ./configure
+       test -f config.cache || ./configure --build=$(DEB_BUILD_GNU_TYPE) 
--host=$(DEB_HOST_GNU_TYPE)
        $(MAKE) CFLAGS="$(CFLAGS)"
        touch stamp-build
        cat debian/copyright LICENSE > copyright.txt

Reply via email to