[Debian-med-packaging] Bug#968435: mlv-smile FTCBFS: hard codes gcc

Helmut Grohne helmut at subdivi.de
Sat Aug 15 09:47:53 BST 2020


Source: mlv-smile
Version: 1.47-7
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

mlv-smile fails to cross build from source, because debian/rules hard
codes the build architecture compiler gcc. Please consider applying the
attached patch to seed it from dpkg's buildtools.mk.

Helmut
-------------- next part --------------
diff --minimal -Nru mlv-smile-1.47/debian/changelog mlv-smile-1.47/debian/changelog
--- mlv-smile-1.47/debian/changelog	2020-07-23 17:34:17.000000000 +0200
+++ mlv-smile-1.47/debian/changelog	2020-08-15 10:01:24.000000000 +0200
@@ -1,3 +1,10 @@
+mlv-smile (1.47-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply the C compiler. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 15 Aug 2020 10:01:24 +0200
+
 mlv-smile (1.47-7) unstable; urgency=medium
 
   * Team Upload.
diff --minimal -Nru mlv-smile-1.47/debian/rules mlv-smile-1.47/debian/rules
--- mlv-smile-1.47/debian/rules	2020-07-23 17:28:41.000000000 +0200
+++ mlv-smile-1.47/debian/rules	2020-08-15 10:01:23.000000000 +0200
@@ -4,12 +4,13 @@
 # GPL
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+-include /usr/share/dpkg/buildtools.mk
 
 %:
 	dh $@
 
 override_dh_auto_build:
-	dh_auto_build --no-parallel -- CC="gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)"
+	dh_auto_build --no-parallel -- CC="$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)"
 
 override_dh_auto_install:
 	zcat smile.1.gz |sed "s/\.\.\.which/which/g"|\


More information about the Debian-med-packaging mailing list