[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930710: apngasm FTCBFS: uses the build architecture compiler



Source: apngasm
Version: 2.7-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

apngasm fails to cross build from source, because it uses the build
architecture compiler as a make default. The easiest way of fixing that
- using dpkg's buildtools.mk - makes apngasm cross buildable. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru apngasm-2.7/debian/changelog apngasm-2.7/debian/changelog
--- apngasm-2.7/debian/changelog	2016-05-26 12:36:23.000000000 +0200
+++ apngasm-2.7/debian/changelog	2019-06-19 06:20:52.000000000 +0200
@@ -1,3 +1,9 @@
+apngasm (2.7-3) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply $(CC). (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Wed, 19 Jun 2019 06:20:52 +0200
+
 apngasm (2.7-2) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru apngasm-2.7/debian/rules apngasm-2.7/debian/rules
--- apngasm-2.7/debian/rules	2013-06-04 18:13:59.000000000 +0200
+++ apngasm-2.7/debian/rules	2019-06-19 06:20:51.000000000 +0200
@@ -2,7 +2,7 @@
 
 PACKAGE = apngasm
 BIN	= $(PACKAGE)
-CC     ?= gcc
+-include /usr/share/dpkg/buildtools.mk
 LIBS	= -lz -lpng
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all

Reply to: