Source: cmigemo
Version: 1:1.2+gh0.20150404-6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

cmigemo fails to cross build from source, because it uses the build
architecture compiler. It uses debhelper's autoconf build system, but
unlike autoconf, the host architecture isn't selected at configure time.
Cross compilers need to be passed to make. Thus it is more akin to the
makefile build system, where dh_auto_build passes cross compilers along.
After switching the build system to makefile, cmigemo cross builds
successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru cmigemo-1.2+gh0.20150404/debian/changelog 
cmigemo-1.2+gh0.20150404/debian/changelog
--- cmigemo-1.2+gh0.20150404/debian/changelog   2018-01-28 15:20:37.000000000 
+0100
+++ cmigemo-1.2+gh0.20150404/debian/changelog   2018-05-25 19:49:14.000000000 
+0200
@@ -1,3 +1,10 @@
+cmigemo (1:1.2+gh0.20150404-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the makefile build system. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 25 May 2018 19:49:14 +0200
+
 cmigemo (1:1.2+gh0.20150404-6) unstable; urgency=medium
 
   * Update Vcs field
diff --minimal -Nru cmigemo-1.2+gh0.20150404/debian/rules 
cmigemo-1.2+gh0.20150404/debian/rules
--- cmigemo-1.2+gh0.20150404/debian/rules       2018-01-28 07:15:55.000000000 
+0100
+++ cmigemo-1.2+gh0.20150404/debian/rules       2018-05-25 19:49:12.000000000 
+0200
@@ -4,7 +4,7 @@
 include /usr/share/dpkg/buildflags.mk
 
 %:
-       dh $@
+       dh $@ --buildsystem=makefile
 
 override_dh_auto_configure:
        $(SHELL) ./configure --prefix=$(CURDIR)/debian/tmp/usr

Reply via email to