[Pkg-dns-devel] Bug#845941: unbound FTCBFS: uninstallable python Build-Depends, configures for the build architecture
Helmut Grohne
helmut at subdivi.de
Sun Nov 27 06:50:26 UTC 2016
Source: unbound
Version: 1.5.10-2
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap
unbound fails to cross build from source for a number of reasons. First
of all, its python Build-Depends are not installable as Python cannot be
installed for foreign architectures (its postinst fails). What is needed
here is not a host architecture Python, but a build architecture Python
and host architecture Python development files.
Secondly, it configures for the build architecture, because none of the
explicit ./configure invocations carry the necessary --host flag.
Indirecting them through dh_auto_configure fixes that as debhelper knows
when to pass --host.
And the final problem is #840080 and not fixable in unbound. I expect it
to be fixed in a week.
Can you apply the attached patch?
Helmut
-------------- next part --------------
--- unbound-1.5.10/debian/changelog
+++ unbound-1.5.10/debian/changelog
@@ -1,3 +1,11 @@
+unbound (1.5.10-2.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Convert python Build-Depends to cross-friendly ones.
+ + Let dh_auto_configure pass --host to ./configure.
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 27 Nov 2016 07:07:27 +0100
+
unbound (1.5.10-2) unstable; urgency=medium
* debian/unbound.install: Install usr/sbin/unbound-checkconf
--- unbound-1.5.10/debian/control
+++ unbound-1.5.10/debian/control
@@ -24,8 +24,10 @@
nettle-dev,
pkg-config,
protobuf-c-compiler,
- python-all-dev (>= 2.6.6-3~),
- python3-all-dev,
+ python-all-dev:any (>= 2.6.6-3~),
+ libpython-all-dev (>= 2.6.6-3~),
+ python3-all-dev:any,
+ libpython3-all-dev,
swig,
Standards-Version: 3.9.8
Homepage: https://www.unbound.net/
--- unbound-1.5.10/debian/rules
+++ unbound-1.5.10/debian/rules
@@ -30,9 +30,7 @@
# first build -- build unbound daemon
PYTHON_VERSION="$(shell py3versions -vd)" \
CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
+ dh_auto_configure -- \
--disable-rpath \
--with-pidfile=/run/unbound.pid \
--with-rootkey-file=/var/lib/unbound/root.key \
@@ -40,6 +38,7 @@
--with-pythonmodule \
--enable-dnstap \
--with-dnstap-socket-path=/run/dnstap.sock \
+ --libdir=/usr/lib \
$(CONFIGURE_ARGS)
$(MAKE)
$(MAKE) install DESTDIR="$(CURDIR)/debian/tmp"
@@ -47,9 +46,7 @@
# second build -- build libunbound only, against nettle
CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
+ dh_auto_configure -- \
--disable-rpath \
--with-libunbound-only \
--with-nettle \
@@ -57,7 +54,6 @@
--without-libevent \
--without-pythonmodule \
--without-pyunbound \
- --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
$(CONFIGURE_ARGS)
$(MAKE)
$(MAKE) install DESTDIR="$(CURDIR)/debian/tmp-lib"
@@ -68,8 +64,7 @@
# third build - pyunbound for Python 2
PYTHON_VERSION="$(shell pyversions -vd)" \
CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
- ./configure \
- --prefix=/usr \
+ dh_auto_configure -- \
--disable-rpath \
--with-pythonmodule \
--with-pyunbound \
@@ -86,8 +81,7 @@
# fourth build - pyunbound for Python 3
PYTHON_VERSION="$(shell py3versions -vd)" \
CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)" \
- ./configure \
- --prefix=/usr \
+ dh_auto_configure -- \
--disable-rpath \
--with-pythonmodule \
--with-pyunbound \
More information about the pkg-dns-devel
mailing list