[Pkg-pdns-maintainers] Bug#752678: Bug#752678: pdns: FTBFS on hurd-i386

Svante Signell svante.signell at gmail.com
Wed Jul 9 09:23:19 UTC 2014


On Fri, 2014-06-27 at 09:51 +0200, Peter van Dijk wrote:
> Hello,
> 
> On 25 Jun 2014, at 23:06 , Christian Hofstaedtler <zeha at debian.org> wrote:
> 
> >> 2) pdns/nameserver.c: IPV6_RECVPKTINFO is not defined on GNU/Hurd, use
> >> IPV6_RXINFO instead.
> >> 
> >> Index: pdns-3.3.1/pdns/nameserver.cc
> >> ===================================================================
> >> --- pdns-3.3.1.orig/pdns/nameserver.cc
> >> +++ pdns-3.3.1/pdns/nameserver.cc

> > Could you turn that into an autoconf thing? I think having it as an autoconf-
> > detected and aliased thing would be preferred upstream (CC'ed
> > upstream for their opinion).
> 
> We would prefer that, but we would accept something like #ifndef
> IPV6_RECVPKTINFO #define IPV6_RECVPKTINFO IPV6_RXINFO #endif in a
> suitable header file.

Hi, attached is a solution I found out for GNU/Hurd in configure.ac.
AC_EGREP_CPP is used to find out if IPV6_RECVPKTINFO is defined in
<netinet/in.h>. If not it is defined as IPV6_RXINFO.

Since autoreconf is used in the build there is no need to modify
config.h.in, it is generated by autoheader. Build tested on both
GNU/Hurd and GNU/Linux.

Unfortunately I have not found the time to check the latest upstream
from git. Isn't this a little cumbersome to do, adding all the debian/*
to the git sources, etc?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-gnu-in-configure.ac
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-pdns-maintainers/attachments/20140709/b5cf46fe/attachment.bin>


More information about the Pkg-pdns-maintainers mailing list