Source: bind9-libs
Version: 1:9.11.18+dfsg-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

bind9-libs fails to cross build from source. It mostly works, but there
are three minor issues that need attention:
 * During cross compilation, it cannot figure out whether openssl
   supports ecdsa. One needs to pass --with-ecdsa=yes. During native
   builds, this flag will be verified and the build is aborted if ecdsa
   doesn't work.
 * Likewise for openssl eddsa.
 * The makefiles expect that one export a variable BUILD_CC containing
   the build architecture compilier.

Please consider applying the attached patch to make cross compilation
work for bind9-libs.

Helmut
diff --minimal -Nru bind9-libs-9.11.18+dfsg/debian/changelog 
bind9-libs-9.11.18+dfsg/debian/changelog
--- bind9-libs-9.11.18+dfsg/debian/changelog    2020-04-16 08:44:01.000000000 
+0200
+++ bind9-libs-9.11.18+dfsg/debian/changelog    2020-05-03 10:18:04.000000000 
+0200
@@ -1,3 +1,12 @@
+bind9-libs (1:9.11.18+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Explicitly configure --with-ecdsa=yes and --with-eddsa=all.
+    + Export BUILD_CC.
+
+ -- Helmut Grohne <[email protected]>  Sun, 03 May 2020 10:18:04 +0200
+
 bind9-libs (1:9.11.18+dfsg-1) unstable; urgency=medium
 
   * New upstream version 9.11.18+dfsg
diff --minimal -Nru bind9-libs-9.11.18+dfsg/debian/rules 
bind9-libs-9.11.18+dfsg/debian/rules
--- bind9-libs-9.11.18+dfsg/debian/rules        2020-04-16 08:44:01.000000000 
+0200
+++ bind9-libs-9.11.18+dfsg/debian/rules        2020-05-03 10:18:04.000000000 
+0200
@@ -10,6 +10,9 @@
 export DPKG_GENSYMBOLS_CHECK_LEVEL := 4
 
 include /usr/share/dpkg/default.mk
+-include /usr/share/dpkg/buildtools.mk
+CC_FOR_BUILD ?= $(CC)
+export BUILD_CC = $(CC_FOR_BUILD)
 
 DEB_REVISION = $(call dpkg_late_eval,DEB_REVISION,echo '$(DEB_VERSION)' | sed 
-e 's/^.*-/-/')
 
@@ -52,7 +55,9 @@
        --sysconfdir=/etc/bind \
        --with-atf=no \
        --with-gnu-ld \
+       --with-ecdsa=yes \
        --with-gost=no \
+       --with-eddsa=all \
        --with-libtool \
        --with-openssl=/usr \
        --without-geoip2 \

Reply via email to