Source: cfourcc
Version: 0.1.2-9
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

cfourcc fails to cross build from source, because debian/rules hard
codes the build architecture compiler. Seeding the compiler from dpkg's
buildtools.mk fixes the cross build. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru cfourcc-0.1.2/debian/changelog 
cfourcc-0.1.2/debian/changelog
--- cfourcc-0.1.2/debian/changelog      2014-02-21 20:59:50.000000000 +0100
+++ cfourcc-0.1.2/debian/changelog      2019-04-30 16:51:19.000000000 +0200
@@ -1,3 +1,10 @@
+cfourcc (0.1.2-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use compiler from dpkg's buildtools.mk. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 30 Apr 2019 16:51:19 +0200
+
 cfourcc (0.1.2-9) unstable; urgency=low
 
   * debian/control
diff --minimal -Nru cfourcc-0.1.2/debian/rules cfourcc-0.1.2/debian/rules
--- cfourcc-0.1.2/debian/rules  2014-02-21 13:58:59.000000000 +0100
+++ cfourcc-0.1.2/debian/rules  2019-04-30 16:51:18.000000000 +0200
@@ -2,6 +2,8 @@
 
 PACKAGE = cfourcc
 
+-include /usr/share/dpkg/buildtools.mk
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic -std=c99
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
@@ -10,7 +12,7 @@
        $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) makeman
 
 override_dh_auto_build:
-       gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(PACKAGE).c -o $(PACKAGE)
+       $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(PACKAGE).c -o $(PACKAGE)
 
 override_dh_auto_install: man
        # Upstream Makefile is no good. Use debian/install

Reply via email to