[Debian-med-packaging] Bug#974635: aragorn FTCBFS: debian/rules uses the build architecture compiler as a make default
Helmut Grohne
helmut at subdivi.de
Fri Nov 13 07:21:14 GMT 2020
Source: aragorn
Version: 1.2.38-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
aragorn fails to cross build from source, because it uses the build
architecture compiler in debian/rules as a make default. The simplest
way of fixing this is letting dpkg's buildtools.mk initialize CC. Please
consider applying the attached patch.
Do note that you can also simplify the initialization of CPPFLAGS and
friends using dpkg's buildflags.mk.
Helmut
-------------- next part --------------
diff --minimal -Nru aragorn-1.2.38/debian/changelog aragorn-1.2.38/debian/changelog
--- aragorn-1.2.38/debian/changelog 2020-11-06 14:25:25.000000000 +0100
+++ aragorn-1.2.38/debian/changelog 2020-11-13 08:13:53.000000000 +0100
@@ -1,3 +1,10 @@
+aragorn (1.2.38-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Seed CC from dpkg's buildtools.mk. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Fri, 13 Nov 2020 08:13:53 +0100
+
aragorn (1.2.38-3) unstable; urgency=medium
[ Jelmer Vernooij ]
diff --minimal -Nru aragorn-1.2.38/debian/rules aragorn-1.2.38/debian/rules
--- aragorn-1.2.38/debian/rules 2020-11-06 14:25:25.000000000 +0100
+++ aragorn-1.2.38/debian/rules 2020-11-13 08:13:50.000000000 +0100
@@ -5,6 +5,7 @@
export DH_ALWAYS_EXCLUDE=.gitignore
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+-include /usr/share/dpkg/buildtools.mk
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
More information about the Debian-med-packaging
mailing list