Source: unbound
Version: 1.7.3-1
Severity: important
Tags: ftbfs, patch
User: debian-h...@lists.debian.org, debian-k...@lists.debian.org
Usertags: hurd-i386, kfreebsd-any
Hello,
Currently unbound FTBFS on GNU/Hurd and GNU/kFreeBSD-any due to a
dependency on libsystemd-dev. As is well known that library does not
exist on non-linux systems. Attached are two patches for debian/rules
and debian/control to exclude libsystemd from the build.
Thanks!
--- a/debian/control.orig 2017-07-03 22:30:17.000000000 +0200
+++ b/debian/control 2017-07-14 11:21:44.000000000 +0200
@@ -20,7 +20,7 @@
libfstrm-dev <!pkg.unbound.libonly>,
libprotobuf-c-dev <!pkg.unbound.libonly>,
libssl-dev <!pkg.unbound.libonly>,
- libsystemd-dev <!pkg.unbound.libonly>,
+ libsystemd-dev [linux-any] <!pkg.unbound.libonly>,
libtool,
nettle-dev,
pkg-config,
--- a/debian/rules.orig 2017-07-03 22:30:17.000000000 +0200
+++ b/debian/rules 2017-07-14 11:08:38.000000000 +0200
@@ -7,7 +7,9 @@
CONFIGURE_ARGS = --disable-flto
endif
-ifneq ($(DEB_HOST_ARCH_OS), linux)
+ifeq ($(DEB_HOST_ARCH_OS), linux)
+CONFIGURE_ARGS = --enable-systemd
+else
CONFIGURE_ARGS = --with-libbsd
endif
@@ -44,7 +46,6 @@
--with-pythonmodule \
--enable-subnet \
--enable-dnstap \
- --enable-systemd \
--with-dnstap-socket-path=/run/dnstap.sock \
--libdir=/usr/lib \
$(CONFIGURE_ARGS)