Source: bcpp
Version: 0.0.20131209-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

bcpp fails to cross build from source, because it does not pass --host
to ./configure. The easiest way of doing so is deferring the task to
dh_auto_configure. After doing so, bcpp cross builds successfully.
Please consider applying the attached patch.

Helmut
diff --minimal -Nru bcpp-0.0.20131209/debian/changelog 
bcpp-0.0.20131209/debian/changelog
--- bcpp-0.0.20131209/debian/changelog  2015-08-02 13:56:56.000000000 +0200
+++ bcpp-0.0.20131209/debian/changelog  2018-05-21 16:56:06.000000000 +0200
@@ -1,3 +1,10 @@
+bcpp (0.0.20131209-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host to ./configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 21 May 2018 16:56:06 +0200
+
 bcpp (0.0.20131209-1) unstable; urgency=medium
 
   * New Upstream Release
diff --minimal -Nru bcpp-0.0.20131209/debian/rules 
bcpp-0.0.20131209/debian/rules
--- bcpp-0.0.20131209/debian/rules      2015-08-02 16:47:59.000000000 +0200
+++ bcpp-0.0.20131209/debian/rules      2018-05-21 16:55:15.000000000 +0200
@@ -21,10 +21,7 @@
        cp -f /usr/share/misc/config.guess config.guess
 endif
 
-       ./configure \
-               --prefix=/usr \
-               --mandir=\$${prefix}/share/man \
-               --infodir=\$${prefix}/share/info \
+       dh_auto_configure -- \
                CFLAGS="$(CFLAGS) $(CPPFLAGS) 
-DBCPP_CONFIG_DIR=\\\"/etc/bcpp/\\\"" \
                CXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) 
-DBCPP_CONFIG_DIR=\\\"/etc/bcpp/\\\"" \
                LDFLAGS="$(LDFLAGS) $(LDFLAGS2)"

Reply via email to