[Debian-med-packaging] Bug#940692: gffread FTCBFS: uses the build architecture compiler as linker

Helmut Grohne helmut at subdivi.de
Thu Sep 19 05:13:02 BST 2019


Source: gffread
Version: 0.11.4-1
Tags: patch
User: debian-cross at 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
-------------- next part --------------
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 <helmut at 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)))


More information about the Debian-med-packaging mailing list