[Pkg-phototools-devel] Bug#944439: libimagequant FTCBFS: uses the build architecture compiler

Helmut Grohne helmut at subdivi.de
Sun Nov 10 05:55:09 GMT 2019


Source: libimagequant
Version: 2.12.2-1.1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

libimagequant fails to cross build from source. It has a hand-written
configure script that fails to understand the --host flag passed by
dh_auto_configure. Instead, one is supposed to pass a CC assignment.
That mostly fixes the build, except when building from a !x86 to an
x86 architecture: There SSE is supposed to be detected from uname, so
the build becomes unreproducible. Instead, a --enable-sse or
--disable-sse flag should always be passed. Please consider applying the
attached patch.

Helmut
-------------- next part --------------
diff --minimal -Nru libimagequant-2.12.2/debian/changelog libimagequant-2.12.2/debian/changelog
--- libimagequant-2.12.2/debian/changelog	2019-02-07 19:39:50.000000000 +0100
+++ libimagequant-2.12.2/debian/changelog	2019-11-09 21:37:26.000000000 +0100
@@ -1,3 +1,12 @@
+libimagequant (2.12.2-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Pass a suitable CC to the hand-written configure.
+    + Always force the decision for SSE.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 09 Nov 2019 21:37:26 +0100
+
 libimagequant (2.12.2-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru libimagequant-2.12.2/debian/rules libimagequant-2.12.2/debian/rules
--- libimagequant-2.12.2/debian/rules	2019-02-07 19:39:50.000000000 +0100
+++ libimagequant-2.12.2/debian/rules	2019-11-09 21:37:25.000000000 +0100
@@ -5,14 +5,14 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEB_CFLAGS_MAINT_APPEND=-D_FORTIFY_SOURCE=2
 
+include /usr/share/dpkg/buildtools.mk
+
 
 %:
 	dh $@
 
-ifeq (,$(filter $(DEB_HOST_ARCH), amd64 x32))
 override_dh_auto_configure:
-	dh_auto_configure -- --disable-sse
-endif
+	dh_auto_configure -- 'CC=$(CC)' --$(if $(filter $(DEB_HOST_ARCH),amd64 x32),en,dis)able-sse
 
 override_dh_install:
 	dh_install


More information about the Pkg-phototools-devel mailing list