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

Bug#843910: cups-pdf FTCBFS: uses build architecture compiler



Source: cups-pdf
Version: 2.6.1-21
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

cups-pdf fails to cross build from source, because it uses the build
architecture compiler. Defaulting CC to a triplet-prefixed compiler
fixes the build. Please consider applying the attached patch.

Helmut
diff --minimal -Nru cups-pdf-2.6.1/debian/changelog cups-pdf-2.6.1/debian/changelog
--- cups-pdf-2.6.1/debian/changelog	2016-02-23 14:18:02.000000000 +0100
+++ cups-pdf-2.6.1/debian/changelog	2016-11-10 17:07:31.000000000 +0100
@@ -1,3 +1,10 @@
+cups-pdf (2.6.1-21.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use triplet-prefixed CC (Closes: #-1).
+
+ -- Helmut Grohne <helmut@subdivi.de>  Thu, 10 Nov 2016 17:07:31 +0100
+
 cups-pdf (2.6.1-21) unstable; urgency=medium
 
   * Fixed Lintian "W: spelling-error-in-readme-debian: debuging debugging"
diff --minimal -Nru cups-pdf-2.6.1/debian/rules cups-pdf-2.6.1/debian/rules
--- cups-pdf-2.6.1/debian/rules	2015-05-06 13:31:56.000000000 +0200
+++ cups-pdf-2.6.1/debian/rules	2016-11-10 17:07:28.000000000 +0100
@@ -7,6 +7,11 @@
 # LICENSE
 # GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
 #
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+
 export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
 export CFLAGS   := $(shell dpkg-buildflags --get CFLAGS)
 export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)

Reply to: