[Debian-med-packaging] Bug#928856: pirs FTCBFS: does not pass cross tools to plain make

Helmut Grohne helmut at subdivi.de
Sun May 12 09:04:03 BST 2019


Source: pirs
Version: 2.0.2+dfsg-7
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

pirs fails to cross build from source, because it does not pass cross
tools to make while building src/stator/gcContCvgBias. The easiest way
of fixing that - using dh_auto_build - does not quite work, because that
Makefile expects the C++ compiler in CC, but dh_auto_build supplies a C
compiler there. It has to be renamed as well. Please consider applying
the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru pirs-2.0.2+dfsg/debian/changelog pirs-2.0.2+dfsg/debian/changelog
--- pirs-2.0.2+dfsg/debian/changelog	2018-09-27 21:35:39.000000000 +0200
+++ pirs-2.0.2+dfsg/debian/changelog	2019-05-12 09:51:09.000000000 +0200
@@ -1,3 +1,12 @@
+pirs (2.0.2+dfsg-7.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Pass C++ compiler as CC.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 12 May 2019 09:51:09 +0200
+
 pirs (2.0.2+dfsg-7) unstable; urgency=medium
 
   * debhelper 11
diff --minimal -Nru pirs-2.0.2+dfsg/debian/rules pirs-2.0.2+dfsg/debian/rules
--- pirs-2.0.2+dfsg/debian/rules	2018-09-27 21:35:39.000000000 +0200
+++ pirs-2.0.2+dfsg/debian/rules	2019-05-12 09:51:09.000000000 +0200
@@ -34,7 +34,7 @@
 
 override_dh_auto_build:
 	dh_auto_build
-	cd src/stator/gcContCvgBias && make
+	dh_auto_build --sourcedirectory=src/stator/gcContCvgBias -- CC='$$(CXX)'
 
 override_dh_auto_install:
 	dh_auto_install --sourcedirectory=src/stator/gcContCvgBias


More information about the Debian-med-packaging mailing list