Source: bibclean
Version: 2.11.4.1-4
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

bibclean fails to cross build from source. The packaging takes care of
passing the relevant --host flag, but the ./configure is too old to
recognize it. Rather we should be passing a CC environment variable
here. Please consider applying the attached patch.

Helmut
diff --minimal -Nru bibclean-2.11.4.1/debian/changelog 
bibclean-2.11.4.1/debian/changelog
--- bibclean-2.11.4.1/debian/changelog  2011-12-07 14:26:23.000000000 +0100
+++ bibclean-2.11.4.1/debian/changelog  2019-05-15 22:04:10.000000000 +0200
@@ -1,3 +1,10 @@
+bibclean (2.11.4.1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export a suitable CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 15 May 2019 22:04:10 +0200
+
 bibclean (2.11.4.1-4) unstable; urgency=low
 
   * build targets changed to recommendation from lintian
diff --minimal -Nru bibclean-2.11.4.1/debian/rules 
bibclean-2.11.4.1/debian/rules
--- bibclean-2.11.4.1/debian/rules      2011-12-07 14:17:38.000000000 +0100
+++ bibclean-2.11.4.1/debian/rules      2019-05-15 22:04:09.000000000 +0200
@@ -4,10 +4,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# 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)
+-include /usr/share/dpkg/buildtools.mk
+export CC
 
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -29,7 +27,6 @@
 config.status: autogen-check
        CFLAGS="$(CFLAGS)" ./configure \
                --with-pager=/usr/bin/pager --with-fhs-rcfiles \
-               --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
                 --prefix=/usr --mandir=\$${prefix}/share/man
 
 build: build-arch build-indep

Reply via email to