[Pkg-opt-media-team] Bug#872639: cdparanoia FTCBFS: confuses ./configure with a CC that doesn't match host

Helmut Grohne helmut at subdivi.de
Sat Aug 19 16:15:18 UTC 2017


Source: cdparanoia
Version: 3.10.2+debian-11
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

cdparanoia fails to cross build from source, because ./configure is
confused about the (implicit) --host not matching CC. It believes we are
building for the build architecture with a cross compiler and thus fails
finding anything reasonabl. It finally gives up after failing to
discover a 16bit integer type.

cdparanoia is sufficiently recent that it should no longer be passed
CC=, but rather --host. After doing that, it cross builds. Please
consider applying the attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru cdparanoia-3.10.2+debian/debian/changelog cdparanoia-3.10.2+debian/debian/changelog
--- cdparanoia-3.10.2+debian/debian/changelog	2012-07-14 08:46:36.000000000 +0200
+++ cdparanoia-3.10.2+debian/debian/changelog	2017-08-19 18:09:43.000000000 +0200
@@ -1,3 +1,10 @@
+cdparanoia (3.10.2+debian-11.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host= to ./configure rather than CC=. (Closes: -1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 19 Aug 2017 18:09:43 +0200
+
 cdparanoia (3.10.2+debian-11) unstable; urgency=low
 
   [ TANIGUCHI Takaki ]
diff --minimal -Nru cdparanoia-3.10.2+debian/debian/rules cdparanoia-3.10.2+debian/debian/rules
--- cdparanoia-3.10.2+debian/debian/rules	2012-07-14 08:46:36.000000000 +0200
+++ cdparanoia-3.10.2+debian/debian/rules	2017-08-19 18:09:43.000000000 +0200
@@ -10,7 +10,7 @@
 
 
 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
-	CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
+	CROSS=--build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
 else
 	CROSS=
 endif


More information about the Pkg-opt-media-team mailing list