Source: cconv
Version: 0.6.2-1.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

cconv fails to cross build from source, because it does not pass --host
to configure. The easiest way of doing so - using dh_auto_configure -
makes cconv cross buildable. Please consider applying the attached
patch.

Helmut
diff -u cconv-0.6.2/debian/changelog cconv-0.6.2/debian/changelog
--- cconv-0.6.2/debian/changelog
+++ cconv-0.6.2/debian/changelog
@@ -1,3 +1,10 @@
+cconv (0.6.2-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 16 Jul 2021 09:19:05 +0200
+
 cconv (0.6.2-1.1) unstable; urgency=medium
 
   [ Aurelien Jarno
diff -u cconv-0.6.2/debian/rules cconv-0.6.2/debian/rules
--- cconv-0.6.2/debian/rules
+++ cconv-0.6.2/debian/rules
@@ -1,16 +1,9 @@
 #!/usr/bin/make -f
 
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
 config.status: configure
        dh_testdir
        dh_autoreconf
-       ./configure --prefix=/usr \
-               --mandir=\$${prefix}/share/man \
-               --infodir=\$${prefix}/share/info \
+       dh_auto_configure -- \
                CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 build: build-stamp

Reply via email to