Bug#885697: speech-tools FTCBFS: does not propagate CC/CXX from configure to make

Helmut Grohne helmut at subdivi.de
Fri Dec 29 09:36:26 UTC 2017


Source: speech-tools
Version: 1:2.4~release-6
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

speech-tools fails to cross build from source, because it does not
propagate the correctly identified cross compiler from configure to
make. The makefiles seem rather non-standard, so the easiest fix is to
simply override CC and CXX there. After doing so, speech-tools cross
builds successfully. Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru speech-tools-2.4~release/debian/changelog speech-tools-2.4~release/debian/changelog
--- speech-tools-2.4~release/debian/changelog	2017-10-22 17:34:44.000000000 +0200
+++ speech-tools-2.4~release/debian/changelog	2017-12-29 10:25:34.000000000 +0100
@@ -1,3 +1,10 @@
+speech-tools (1:2.4~release-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CC and CXX to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 29 Dec 2017 10:25:34 +0100
+
 speech-tools (1:2.4~release-6) unstable; urgency=medium
 
   * Use canonical anonscm vcs URL.
diff --minimal -Nru speech-tools-2.4~release/debian/rules speech-tools-2.4~release/debian/rules
--- speech-tools-2.4~release/debian/rules	2017-10-22 17:34:44.000000000 +0200
+++ speech-tools-2.4~release/debian/rules	2017-12-29 10:25:34.000000000 +0100
@@ -2,7 +2,8 @@
 
 # export DH_VERBOSE=1
 
-DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+-include /usr/share/dpkg/buildtools.mk
 
 MAJORVER=$(shell sh ./debian/get_version.sh|awk '{print $$2}')
 FULLVER=$(shell sh ./debian/get_version.sh|awk '{print $$1}')
@@ -41,7 +42,7 @@
 #Upstream states test is only for their local development not a functional test
 
 override_dh_auto_build:
-	$(MAKE) PROJECT_VERSION=$(shell dpkg-parsechangelog|grep "Version:"|sed 's/^.*://;s/~.*$$//') PROJECT_MAJOR_VERSION=$(MAJORVER)
+	$(MAKE) PROJECT_VERSION=$(shell dpkg-parsechangelog|grep "Version:"|sed 's/^.*://;s/~.*$$//') PROJECT_MAJOR_VERSION=$(MAJORVER) CC='$(CC)' CXX='$(CXX) -fno-delete-null-pointer-checks'
 	(cd doc && $(MAKE) doc PROJECT_VERSION=$(shell dpkg-parsechangelog|grep "Version:"|sed 's/^.*://;s/~.*$$//') PROJECT_MAJOR_VERSION=$(MAJORVER) )
 
 override_dh_auto_clean:


More information about the Pkg-a11y-devel mailing list