Source: cd-hit
Version: 4.6.8-2
Tags: patch
User: [email protected]
Usertags: ftcbfs

cd-hit fails to cross build from source, because the upstream Makefile
stores the C++ compiler in the variable CC while dh_auto_build passes a
C compiler there. Please consider applying the attached patch.

Helmut
diff --minimal -Nru cd-hit-4.6.8/debian/changelog cd-hit-4.6.8/debian/changelog
--- cd-hit-4.6.8/debian/changelog       2018-09-19 14:47:50.000000000 +0200
+++ cd-hit-4.6.8/debian/changelog       2019-07-21 17:52:27.000000000 +0200
@@ -1,3 +1,10 @@
+cd-hit (4.6.8-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Makefile expects a C++ compiler in $CC. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 21 Jul 2019 17:52:27 +0200
+
 cd-hit (4.6.8-2) unstable; urgency=medium
 
   * debhelper 11
diff --minimal -Nru cd-hit-4.6.8/debian/rules cd-hit-4.6.8/debian/rules
--- cd-hit-4.6.8/debian/rules   2018-09-19 14:47:50.000000000 +0200
+++ cd-hit-4.6.8/debian/rules   2019-07-21 17:52:26.000000000 +0200
@@ -18,7 +18,7 @@
        dh $@
 
 override_dh_auto_build:
-       dh_auto_build -- openmp=yes
+       dh_auto_build -- openmp=yes CC='$$(CXX)'
 
 override_dh_installman:
        mkdir -p $(mandir)

Reply via email to