Source: dialign
Version: 2.2.1-8
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

dialign fails to cross build from source, because it uses the build
architecture compiler. Ultimately dh_strip fails operating on build
architecture ELF objects. Fortunately, dh_auto_build knows how to pass
cross compilers for the makefile buildsystem. Indirecting the explicit
$(MAKE) invocation through dh_auto_build thus fixes cross compilation.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru dialign-2.2.1/debian/changelog 
dialign-2.2.1/debian/changelog
--- dialign-2.2.1/debian/changelog      2016-07-19 07:55:08.000000000 +0200
+++ dialign-2.2.1/debian/changelog      2017-01-26 22:07:54.000000000 +0100
@@ -1,3 +1,11 @@
+dialign (2.2.1-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers
+    Closes: #-1
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 26 Jan 2017 22:07:54 +0100
+
 dialign (2.2.1-8) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru dialign-2.2.1/debian/rules dialign-2.2.1/debian/rules
--- dialign-2.2.1/debian/rules  2016-07-19 07:55:08.000000000 +0200
+++ dialign-2.2.1/debian/rules  2017-01-26 22:07:51.000000000 +0100
@@ -11,4 +11,4 @@
 
 override_dh_auto_build:
        ## CFLAGS = -c -I$ -DCONS -O2
-       $(MAKE) -C src
+       dh_auto_build --sourcedirectory=src

Reply via email to