Bug#969121: cbp2make FTCBFS: builds for the build architecture

Helmut Grohne helmut at subdivi.de
Thu Aug 27 21:28:34 BST 2020


Source: cbp2make
Version: 147+dfsg-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

cbp2make fails to cross build from source, because it does not pass
cross tools to make. Using dh_auto_build almost fixes that except that
it does not pass LD, because that variable isn't used consistently. Thus
passing LD should be done explicitly. Once doing so, cbp2make can be
cross built. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru cbp2make-147+dfsg/debian/changelog cbp2make-147+dfsg/debian/changelog
--- cbp2make-147+dfsg/debian/changelog	2020-04-16 11:35:31.000000000 +0200
+++ cbp2make-147+dfsg/debian/changelog	2020-08-27 22:23:57.000000000 +0200
@@ -1,3 +1,11 @@
+cbp2make (147+dfsg-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make and pass LD
+    explicitly. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 27 Aug 2020 22:23:57 +0200
+
 cbp2make (147+dfsg-3) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru cbp2make-147+dfsg/debian/rules cbp2make-147+dfsg/debian/rules
--- cbp2make-147+dfsg/debian/rules	2020-04-16 10:53:27.000000000 +0200
+++ cbp2make-147+dfsg/debian/rules	2020-08-27 22:23:57.000000000 +0200
@@ -10,11 +10,10 @@
 include /usr/share/dpkg/buildflags.mk
 
 %:
-	dh $@
+	dh $@ --buildsystem=makefile
 
 override_dh_auto_build-arch:
-	ln -sf cbp2make.cbp.mak.unix Makefile
-	$(MAKE) release
+	dh_auto_build -- -f cbp2make.cbp.mak.unix release 'LD=$$(CXX)'
 
 #build-indep:
 #	ln -sf cbp2make.cbp.mak.unix Makefile


More information about the debian-science-maintainers mailing list