Source: mlv-smile
Version: 1.47-7
Tags: patch
User: debian-cr...@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
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 <hel...@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"|\

Reply via email to