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

Bug#877591: hfsutils FTCBFS: uses the build architecture compiler



Source: hfsutils
Version: 3.2.6-13
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

hfsutils fails to cross build from source, because it uses the build
architecture compiler. After exporting a suitable CC, hfsutils cross
builds successfully. Please consider applying the attached patch.

Helmut
diff --minimal -Nru hfsutils-3.2.6/debian/changelog hfsutils-3.2.6/debian/changelog
--- hfsutils-3.2.6/debian/changelog	2014-08-10 17:52:16.000000000 +0200
+++ hfsutils-3.2.6/debian/changelog	2017-10-03 10:52:31.000000000 +0200
@@ -1,3 +1,10 @@
+hfsutils (3.2.6-13.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export a triplet-prefixed CC. Closes: #-1.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Tue, 03 Oct 2017 10:52:31 +0200
+
 hfsutils (3.2.6-13) unstable; urgency=medium
 
   * QA upload.
diff --minimal -Nru hfsutils-3.2.6/debian/rules hfsutils-3.2.6/debian/rules
--- hfsutils-3.2.6/debian/rules	2013-03-14 21:45:13.000000000 +0100
+++ hfsutils-3.2.6/debian/rules	2017-10-03 10:52:27.000000000 +0200
@@ -7,6 +7,12 @@
 
 MAKE += -o configure.in
 
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(origin CC),default)
+CC := $(DEB_HOST_GNU_TYPE)-gcc
+endif
+export CC
 CFLAGS = -Wall $(shell dpkg-buildflags --get CPPFLAGS; dpkg-buildflags --get CFLAGS)
 LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
 

Reply to: