Source: gffread
Version: 0.11.4-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

gffread fails to cross build from source, because it uses the build
architecture compiler as linker. The upstream Makefile stores the linker
in the non-standard LINKER variable, which dh_auto_build does not
supply. We'll have to supply it manually. Alternatively, you can propose
that upstream defaults LINKER to CXX (which should be sane almost
everywhere). I'm attaching a patch for supplying LINKER for your
convenience.

Helmut
diff --minimal -Nru gffread-0.11.4/debian/changelog 
gffread-0.11.4/debian/changelog
--- gffread-0.11.4/debian/changelog     2019-08-08 11:54:09.000000000 +0200
+++ gffread-0.11.4/debian/changelog     2019-09-19 06:09:33.000000000 +0200
@@ -1,3 +1,10 @@
+gffread (0.11.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass LINKER to make. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 19 Sep 2019 06:09:33 +0200
+
 gffread (0.11.4-1) unstable; urgency=medium
 
   * New upstream version
diff --minimal -Nru gffread-0.11.4/debian/rules gffread-0.11.4/debian/rules
--- gffread-0.11.4/debian/rules 2019-08-08 11:54:09.000000000 +0200
+++ gffread-0.11.4/debian/rules 2019-09-19 06:09:30.000000000 +0200
@@ -12,6 +12,9 @@
 %:
        dh $@
 
+override_dh_auto_build:
+       dh_auto_build -- 'LINKER=$$(CXX)'
+
 ### When overriding auto_test make sure DEB_BUILD_OPTIONS will be respected
 #override_dh_auto_test:
 #ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))

Reply via email to