Source: t-coffee
Version: 12.00.7fb08c2-3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Hi Andreas,

thank you for quickly removing the -i flag. Now diagnosing why t-coffee
fails to cross build became a lot easier. As it happens, the upstream
Makefile stores g++ in CC, but for cross compilation dh_auto_build
overrides that with a C cross compiler. That doesn't work well. All we
need to do here is store the C++ compiler in CC. Please consider
applying the attached patch (possibly after buster).

Helmut
diff --minimal -Nru t-coffee-12.00.7fb08c2/debian/changelog 
t-coffee-12.00.7fb08c2/debian/changelog
--- t-coffee-12.00.7fb08c2/debian/changelog     2019-02-12 19:37:40.000000000 
+0100
+++ t-coffee-12.00.7fb08c2/debian/changelog     2019-02-13 06:40:44.000000000 
+0100
@@ -1,3 +1,10 @@
+t-coffee (12.00.7fb08c2-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass C++ compiler as CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 13 Feb 2019 06:40:44 +0100
+
 t-coffee (12.00.7fb08c2-3) unstable; urgency=medium
 
   * Do not use -i flag to ignore build failures
diff --minimal -Nru t-coffee-12.00.7fb08c2/debian/rules 
t-coffee-12.00.7fb08c2/debian/rules
--- t-coffee-12.00.7fb08c2/debian/rules 2019-02-12 19:37:40.000000000 +0100
+++ t-coffee-12.00.7fb08c2/debian/rules 2019-02-13 06:40:43.000000000 +0100
@@ -11,7 +11,7 @@
        dh $@ --sourcedirectory=t_coffee_source
 
 override_dh_auto_build:
-       dh_auto_build -- USER_BIN=../bin/ FCC="$(FCC)" all
+       dh_auto_build -- USER_BIN=../bin/ FCC="$(FCC)" 'CC=$$(CXX)' all
 
 override_dh_auto_clean:
        rm -rf t_coffee_source/*.o t_coffee_source/t_coffee bin/t_coffee 
$(shell find example/ -size 0) bin/t_coffee

Reply via email to