Source: fbset
Version: 2.1-28
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

fbset fails to cross build from source, because it uses the build
architecture compiler. Using dh_auto_build makes it cross build
successfully, because debhelper places cross compilers into CC and CXX.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru fbset-2.1/debian/changelog fbset-2.1/debian/changelog
--- fbset-2.1/debian/changelog  2014-03-02 20:55:01.000000000 +0100
+++ fbset-2.1/debian/changelog  2017-01-13 19:45:01.000000000 +0100
@@ -1,3 +1,10 @@
+fbset (2.1-28.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross compilers. Closes: #-1.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 13 Jan 2017 19:45:01 +0100
+
 fbset (2.1-28) unstable; urgency=low
 
   * Orphan package, set maintainer to Debian QA Group.
diff --minimal -Nru fbset-2.1/debian/rules fbset-2.1/debian/rules
--- fbset-2.1/debian/rules      2014-03-02 20:39:24.000000000 +0100
+++ fbset-2.1/debian/rules      2017-01-13 19:44:58.000000000 +0100
@@ -26,12 +26,12 @@
        
        mkdir -p build-udeb
        ln -f Makefile build-udeb/Makefile
-       $(MAKE) -C build-udeb $(DIR_FLAGS) CPPFLAGS="-I.. $(CPPFLAGS)" \
+       dh_auto_build --builddirectory=build-udeb -- $(DIR_FLAGS) 
CPPFLAGS="-I.. $(CPPFLAGS)" \
          CFLAGS="$(CFLAGS_UDEB)" LDFLAGS="$(LDFLAGS)"
        
        mkdir -p build-tree
        ln -f Makefile build-tree/Makefile
-       $(MAKE) -C build-tree $(DIR_FLAGS) CPPFLAGS="-I.. $(CPPFLAGS)" \
+       dh_auto_build --builddirectory=build-tree -- $(DIR_FLAGS) 
CPPFLAGS="-I.. $(CPPFLAGS)" \
          CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
 
 build: build-indep build-arch

Reply via email to