Source: pirs
Version: 2.0.2+dfsg-7
Tags: patch
User: [email protected]
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
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 <[email protected]>  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

Reply via email to