[Debian-med-packaging] Bug#928895: kmerresistance FTCBFS: uses the build architecture compiler
Helmut Grohne
helmut at subdivi.de
Sun May 12 19:42:23 BST 2019
Source: kmerresistance
Version: 2.0+git20180205.26467e9-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
kmerresistance fails to cross build from source, because debian/rules
hard codes plain "gcc". The easiest way of discovering the correct
compiler is using dpkg's buildtools.mk. Please consider applying the
attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru kmerresistance-2.0+git20180205.26467e9/debian/changelog kmerresistance-2.0+git20180205.26467e9/debian/changelog
--- kmerresistance-2.0+git20180205.26467e9/debian/changelog 2019-02-20 12:58:24.000000000 +0100
+++ kmerresistance-2.0+git20180205.26467e9/debian/changelog 2019-05-12 20:39:44.000000000 +0200
@@ -1,3 +1,10 @@
+kmerresistance (2.0+git20180205.26467e9-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Use a CC from dpkg's buildtools.mk. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Sun, 12 May 2019 20:39:44 +0200
+
kmerresistance (2.0+git20180205.26467e9-1) unstable; urgency=medium
* Initial release (Closes: #922759)
diff --minimal -Nru kmerresistance-2.0+git20180205.26467e9/debian/rules kmerresistance-2.0+git20180205.26467e9/debian/rules
--- kmerresistance-2.0+git20180205.26467e9/debian/rules 2019-02-20 12:58:24.000000000 +0100
+++ kmerresistance-2.0+git20180205.26467e9/debian/rules 2019-05-12 20:39:42.000000000 +0200
@@ -4,8 +4,10 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+-include /usr/share/dpkg/buildtools.mk
+
%:
dh $@
override_dh_auto_build:
- gcc $(CFLAGS) -o kmerresistance KmerResistance.c -lm $(LDFLAGS)
+ $(CC) $(CFLAGS) -o kmerresistance KmerResistance.c -lm $(LDFLAGS)
More information about the Debian-med-packaging
mailing list