[Filesystems-devel] Bug#845724: aufs-tools FTCBFS: uses host architecture compiler for build tools
Helmut Grohne
helmut at subdivi.de
Sat Nov 26 08:25:06 UTC 2016
Source: aufs-tools
Version: 1:4.1+20161010-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
aufs-tools fails to cross build from source, because it compiles a few
build tools using the host architecture compiler. Recent debhelper
started to pass cross compilers via the CC command line variable to
make. This does not work well with aufs-tools as it needs to locally
reassign CC. Thus the attached patch stops using dh_auto_build to let
the upstream Makefile override CC and thus succeed in cross building.
Please consider applying it.
Helmut
-------------- next part --------------
--- aufs-tools-4.1+20161010/debian/changelog
+++ aufs-tools-4.1+20161010/debian/changelog
@@ -1,3 +1,11 @@
+aufs-tools (1:4.1+20161010-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Pass triplet-prefixed CC via environment rather than make
+ command line. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 26 Nov 2016 08:47:03 +0100
+
aufs-tools (1:4.1+20161010-1) unstable; urgency=medium
* New upstream release.
--- aufs-tools-4.1+20161010/debian/rules
+++ aufs-tools-4.1+20161010/debian/rules
@@ -6,8 +6,17 @@
# Set LibAuDir to proper directory
export LibAuDir = /usr/lib
+include /usr/share/dpkg/architecture.mk
+ifeq ($(origin CC),default)
+export CC=$(DEB_HOST_GNU_TYPE)-gcc
+endif
+
%:
dh ${@}
+override_dh_auto_build:
+ # avoid passing CC to the make command line via dh_auto_build
+ $(MAKE)
+
override_dh_strip:
dh_strip --dbgsym-migration='aufs-tools-dbg (<< 1:4.0+20160822-1)'
More information about the Filesystems-devel
mailing list