Source: sapphire
Version: 0.15.8-9.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

sapphire fails to cross build from source, because it does not pass
cross tools to make. The easiest way of fixing that would be using
dh_auto_build if sapphire's Makefile were using the standard variables
with the standard meanings. Unfortunately, it uses CC, which is normally
used for the C compiler, for a C++ compiler and that's not what
dh_auto_build passes there. The attached patch makes sapphire cross
buildable anyhow. Please consider applying it.

Helmut
diff -u sapphire-0.15.8/debian/changelog sapphire-0.15.8/debian/changelog
--- sapphire-0.15.8/debian/changelog
+++ sapphire-0.15.8/debian/changelog
@@ -1,3 +1,11 @@
+sapphire (0.15.8-9.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make, but pass a C++
+    compiler via CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 14 Sep 2020 22:21:11 +0200
+
 sapphire (0.15.8-9.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u sapphire-0.15.8/debian/rules sapphire-0.15.8/debian/rules
--- sapphire-0.15.8/debian/rules
+++ sapphire-0.15.8/debian/rules
@@ -23,10 +23,7 @@
 build: build-stamp
 build-stamp:
        dh_testdir
-
-       # compile the package
-       $(MAKE) $(COMPILER_FLAGS)
-
+       dh_auto_build -- CC='$$(CXX)' $(COMPILER_FLAGS)
        /usr/bin/docbook-to-man debian/sapphire.sgml > debian/sapphire.1
 
        touch build-stamp

Reply via email to