Source: dsh
Version: 0.25.10-1.3
Tags: patch
User: [email protected]
Usertags: rebootstrap

dsh fails to cross build from source for three reasons:
1) It configures for the build architecture by failing to pass the
   relevant --host flag. Indirecting configuration through
   dh_auto_configure fixes that.
2) It runs tests despite DEB_BUILD_OPTIONS=nocheck. Indirecting the
   check target through dh_auto_test fixes that.
3) It strips with the build architecture strip at installation time.
   Not stripping and thus letting dh_strip perform that step fixes that
   and results in useful -dbgsym packages.

The attached patch fixes all of the above. Please consider applying it.

Helmut
diff -u dsh-0.25.10/debian/changelog dsh-0.25.10/debian/changelog
--- dsh-0.25.10/debian/changelog
+++ dsh-0.25.10/debian/changelog
@@ -1,3 +1,13 @@
+dsh (0.25.10-1.4) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_configure pass cross compilers to ./configure.
+    + Let dh_auto_test honour DEB_BUILD_OPTIONS=nocheck.
+    + Do not strip at install time, let dh_strip do it.
+
+ -- Helmut Grohne <[email protected]>  Sun, 23 Jul 2017 16:38:54 +0200
+
 dsh (0.25.10-1.3) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u dsh-0.25.10/debian/rules dsh-0.25.10/debian/rules
--- dsh-0.25.10/debian/rules
+++ dsh-0.25.10/debian/rules
@@ -17,9 +17,6 @@
 else
 CFLAGS += -O2
 endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-INSTALL_PROGRAM += -s
-endif
 
 
 configure: configure-stamp
@@ -27,14 +24,14 @@
        dh_testdir
        dh_autotools-dev_updateconfig
        INSTALL_PROGRAM='${INSTALL_PROGRAM}' CFLAGS='${CFLAGS}' \
-        ./configure --prefix=/usr --sysconfdir=/etc/dsh --mandir=/usr/share/man
+        dh_auto_configure -- --sysconfdir=/etc/dsh
        touch configure-stamp
 
 build: configure-stamp build-stamp
 build-stamp:
        dh_testdir
        $(MAKE)
-       $(MAKE) check
+       dh_auto_test
        touch build-stamp
 
 clean:

Reply via email to