[Debichem-devel] Bug#959825: libwildmagic FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Tue May 5 17:17:23 BST 2020


Source: libwildmagic
Version: 5.13-1.1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libwildmagic fails to cross build from source, because it does not pass
cross tools to make. Beyond that, libwildmagic is a bit unconventional
in that it uses the CC variable (normally used for the C compiler) to
record a C++ compiler. Thus we need to pass the compiler explicitly and
seed it appropriately from dpkg's buildtools.mk.  Please consider
applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru libwildmagic-5.13/debian/changelog libwildmagic-5.13/debian/changelog
--- libwildmagic-5.13/debian/changelog	2020-04-06 13:53:56.000000000 +0200
+++ libwildmagic-5.13/debian/changelog	2020-05-05 17:54:04.000000000 +0200
@@ -1,3 +1,10 @@
+libwildmagic (5.13-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass C++ compiler as CC. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 05 May 2020 17:54:04 +0200
+
 libwildmagic (5.13-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff --minimal -Nru libwildmagic-5.13/debian/rules libwildmagic-5.13/debian/rules
--- libwildmagic-5.13/debian/rules	2014-08-13 12:04:25.000000000 +0200
+++ libwildmagic-5.13/debian/rules	2020-05-05 17:54:03.000000000 +0200
@@ -6,6 +6,7 @@
 
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
+-include /usr/share/dpkg/buildtools.mk
 
 
 VERSION=5.13
@@ -29,7 +30,7 @@
 
 override_dh_auto_build: manpage
 	dh_quilt_patch
-	make CFG=DebugDynamic -f makefile.wm5 
+	make CFG=DebugDynamic -f makefile.wm5 'CC=$(CXX)'
 
 	# Now make sure we reproduce the example files hierarchy in
 	# some clean location for later shipping by the .install file.


More information about the Debichem-devel mailing list