Source: flasm
Version: 1.62-8
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

flasm fails to cross build from source, because it uses the build
architecture compiler and thus fails finding libraries, which are only
requested for the host architecture by its Build-Depends. After letting
dh_auto_build pass cross compilers to make, it cross builds
successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru flasm-1.62/debian/changelog flasm-1.62/debian/changelog
--- flasm-1.62/debian/changelog 2017-07-30 05:20:39.000000000 +0200
+++ flasm-1.62/debian/changelog 2017-11-21 21:09:38.000000000 +0100
@@ -1,3 +1,10 @@
+flasm (1.62-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers to make. (closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 21 Nov 2017 21:09:38 +0100
+
 flasm (1.62-8) unstable; urgency=medium
 
   * Fix FTBFS with new gperf by updating copy of function prototype
diff --minimal -Nru flasm-1.62/debian/rules flasm-1.62/debian/rules
--- flasm-1.62/debian/rules     2013-06-02 10:07:08.000000000 +0200
+++ flasm-1.62/debian/rules     2017-11-21 21:09:36.000000000 +0100
@@ -7,7 +7,7 @@
        dh $@ --parallel
 
 override_dh_auto_build:
-       $(MAKE) LIBS="$(LDFLAGS) -lz" CFLAGS="$(CPPFLAGS) $(CFLAGS) -Wall 
-DCONFIG_PATH=\\\"/etc/flasm.ini\\\""
+       dh_auto_build -- LIBS="$(LDFLAGS) -lz" CFLAGS="$(CPPFLAGS) $(CFLAGS) 
-Wall -DCONFIG_PATH=\\\"/etc/flasm.ini\\\""
        mkdir -p build
        for f in flasm.ini classic.css flasm.html ; do sed 's/\r//' $$f > 
build/$$f ; done
        iconv -f ISO_8859-1 -t UTF-8 < CHANGES.TXT > build/NEWS

Reply via email to