notforwarded 616290
found 616290 4.3.0a1-2
tags 616290 + experimental
tags 616290 - upstream
thanks

Hi,

Attached are updated patches to enable a successful build of isc-dhcp
from experimental on GNU/Hurd. The first two, patch-bind and
patch-osdep, are upstream material, while the remaining four are
debian-specific.

Hoping for a final closing of this long-lasting bug report.

Thanks!

--- a/bind/bind-9.9.5b1/configure.in.orig	2013-12-12 06:59:59.000000000 +0100
+++ b/bind/bind-9.9.5b1/configure.in	2014-03-25 09:33:41.000000000 +0100
@@ -352,7 +352,7 @@ case "$host" in
 	# as it breaks how the two halves (Basic and Advanced) of the IPv6
 	# Socket API were designed to be used but we have to live with it.
 	# Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
-	*-linux* | *-kfreebsd*-gnu)
+	*-linux* | *-kfreebsd*-gnu | *-gnu*)
 		STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
 		CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 		;;
--- a/bind_bind-9.9.5b1/lib/isc/unix/net.c.orig	2013-12-12 06:59:59.000000000 +0100
+++ b/bind/bind-9.9.5b1/lib/isc/unix/net.c	2014-03-25 10:21:08.000000000 +0100
@@ -130,6 +130,9 @@ try_proto(int domain) {
 #ifdef EAFNOSUPPORT
 		case EAFNOSUPPORT:
 #endif
+#ifdef EPFNOSUPPORT
+		case EPFNOSUPPORT:
+#endif
 #ifdef EPROTONOSUPPORT
 		case EPROTONOSUPPORT:
 #endif
--- a/includes/osdep.h.orig	2013-12-11 01:01:03.000000000 +0100
+++ b/includes/osdep.h	2014-03-25 10:43:26.000000000 +0100
@@ -108,7 +108,7 @@
 #  define USE_SOCKET_RECEIVE
 #  if defined(HAVE_DLPI)
 #    define USE_DLPI_HWADDR
-#  elif defined(HAVE_LPF)
+#  elif defined(HAVE_LPF) || defined(__GNU__)
 #    define USE_LPF_HWADDR
 #  elif defined(HAVE_BPF)
 #    define USE_BPF_HWADDR
--- a/debian/rules.orig	2013-12-22 04:36:57.000000000 +0100
+++ b/debian/rules	2014-03-25 10:26:24.000000000 +0100
@@ -19,8 +19,15 @@ CFLAGS+=-D_PATH_DHCPD_CONF='"/etc/dhcp/d
 CFLAGS+=-D_PATH_DHCLIENT_CONF='"/etc/dhcp/dhclient.conf"'
 CFLAGS+=-DNOMINUM
 
+ifeq ($(DEB_HOST_ARCH_OS), hurd)
+CONFIG=--enable-use-sockets
+else
+CONFIG=
+endif
+
 CONFFLAGS=--prefix=/usr \
           --sysconfdir=/etc/dhcp \
+          $(CONFIG) \
           --with-srv-lease-file=/var/lib/dhcp/dhcpd.leases \
 	  --with-srv6-lease-file=/var/lib/dhcp/dhcpd6.leases \
 	  --with-cli-lease-file=/var/lib/dhcp/dhclient.leases \
:

Attachment: dhclient-script.hurd.udeb
Description: application/shellscript

Attachment: dhclient-script.hurd
Description: application/shellscript

Reply via email to