Report information
The Basics
Id:
24697
Status:
open
Worked:
1.17 hours (70 minutes)
Priority:
Medium/Medium
Queue:

BugTracker
Version Fixed:
(no value)
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
(no value)
Severity:
S3 Low
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
(no value)
Area:
bug

Attachments
dhclient-script.hurd dhclient-script.hurd.udeb rfc3442-classless-routes.hurd rt25979.rdiff signature.asc Show all

Dates
Created:Tue, 31 May 2011 00:11:58 -0400
Updated:Fri, 07 Jul 2017 01:31:27 -0400
Closed:Mon, 03 Dec 2012 17:09:36 -0500



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

CC: Svante Signell <svante.signell@telia.com>, 616290-forwarded@bugs.debian.org, 616290@bugs.debian.org
Subject: Patches solving build failure for GNU/Hurd
Date: Mon, 30 May 2011 21:11:34 -0700
To: dhcp-bugs@isc.org
From: Andrew Pollock <apollock@debian.org>
Hello, Please find attached a patch that was submitted to fix failure to build on GNU/Hurd. The patch touches a bit, and applies cleanly to 4.2.1-P1 as well. I'd like to get some sort of feedback on the validity of it and likelyhood of it being applied upstream before I go applying it to the Debian version. Please preserve the Cc list on this message so that our bug tracking system is kept in the loop. regards Andrew On Thu, Mar 03, 2011 at 09:42:10AM +0100, Svante Signell wrote: > Package: isc-dhcp > Version: 4.1.1-P1-16 > Severity: important > Tags: patch, upstream > User: debian-hurd@lists.debian.org > Usertags: hurd > > Attached are four patches to the isc-dhcp package to enable a successful > build for GNU/Hurd. This patch has been developed together with Samuel > Thibault, who improved my initial patches. > > For a successful build from source, the one-line patch by Colin Watson > in bug #602312, has to be applied to the dhcp-4.1.0-ldap-code.dpatch in > debian/patches. This is needed to cope with the new behavior of the > linker: --no-add-needed since gcc-4.4.5-11 > http://wiki.debian.org/ToolChain/DSOLinking > > The patches are: > > 1) "patch" is a patch against the debian/ directory to update package > dependencies and the patch order in 00list. > > 2) "fix_ftbfs4hurd.dpatch", containing only upstream changes, to be > added to debian/patches. > > The following two files for debian/ are attached separately, to make > them more readable for review: > > 3) dhclient-script.hurd > 4) dh-client-script.hurd.udeb > > Thanks, > Svante Signell > _______________________________________________ > pkg-dhcp-devel mailing list > pkg-dhcp-devel@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-dhcp-devel

Message body is not shown because sender requested not to inline it.

Message body not shown because it is not plain text.

On Tue May 31 04:11:58 2011, apollock@debian.org wrote: > Hello, > > Please find attached a patch that was submitted to fix failure to build on > GNU/Hurd. This build issue is being addressed in the next release of ISC DHCP (the "fix" has already been created). I'll pass this on to engineering to have a quick look (for the interim). Thanks for the interest and letting us know about the patches before they are applied "downstream". AlanC
CC: svante.signell@telia.com, apollock@debian.org, 616290@bugs.debian.org
Subject: Re: [ISC-Bugs #24697] Hurd dhcp patch (Debian Bug #616290)?
Date: Fri, 11 May 2012 02:27:50 +0200
To: Tomasz Mrugalski via RT <dhcp-bugs@isc.org>
From: Samuel Thibault <sthibault@debian.org>
Hello, Tomasz Mrugalski via RT, le Tue 28 Feb 2012 15:57:14 +0000, a écrit : > None of those issues are very serious. We have solved those problems and doing > internal review. i must honestly admit that due to other, higher priority tasks > this review may take a while. Any news on this? We really need to get some patch integrated in Debian, either the one we proposed, as an interim, or something from upstream, or something else? Samuel
RT-Send-CC: svante.signell@telia.com, sthibault@debian.org, 616290@bugs.debian.org
On Fri May 11 02:28:09 2012, sthibault@debian.org wrote:
> Any news on this? We really need to get some patch integrated in
> Debian, either the one we proposed, as an interim, or something from
> upstream, or something else?
I'm sorry, but due to resource limitations, we were unable to include fix for realpath and use-sockets in upcoming 4.2.4. However, we were able to update the patch to a version that is almost ready for merge.

Please find our internal patch attached. That is *not* an official ISC patch. It did not go through our normal testing process. Feel free to use it, though.

Tomek Mrugalski
ISC DHCP Engineer

Subject: use-sockets-realpath.patch
? hurd.patch Index: RELNOTES =================================================================== RCS file: /proj/cvs/prod/DHCP/RELNOTES,v retrieving revision 1.462 retrieving revision 1.462.4.2 diff -u -r1.462 -r1.462.4.2 --- RELNOTES 16 Feb 2012 22:07:04 -0000 1.462 +++ RELNOTES 28 Feb 2012 15:44:01 -0000 1.462.4.2 @@ -49,6 +49,14 @@ to perform an fsync() operation on the lease database before reply, which improves performance. [ISC-Bugs #22228] +*** mergeme +- A problem with missing get_hw_addr function when --enable-use-sockets + was used is now solved on GNU/Linux, BSD and GNU/Hurd systems. Note + that use-sockets feature was not tested on those systems. Client and + server code no longer use MAX_PATH constant that is not defined on + GNU/Hurd systems. [ISC-Bugs 25979] +*** mergeme + Changes since 4.2.3 ! Add a check for a null pointer before calling the regexec function. Index: client/dhclient.c =================================================================== RCS file: /proj/cvs/prod/DHCP/client/dhclient.c,v retrieving revision 1.185 retrieving revision 1.185.4.1 diff -u -r1.185 -r1.185.4.1 --- client/dhclient.c 3 Feb 2012 22:47:42 -0000 1.185 +++ client/dhclient.c 28 Feb 2012 15:44:01 -0000 1.185.4.1 @@ -374,21 +374,17 @@ * to be reopened after chdir() has been called */ if (path_dhclient_db[0] != '/') { - char *path = dmalloc(PATH_MAX, MDL); - if (path == NULL) - log_fatal("No memory for filename\n"); - path_dhclient_db = realpath(path_dhclient_db, path); + const char *old_path = path_dhclient_db; + path_dhclient_db = realpath(path_dhclient_db, NULL); if (path_dhclient_db == NULL) - log_fatal("%s: %s", path, strerror(errno)); + log_fatal("Failed to get realpath for %s: %s", old_path, strerror(errno)); } if (path_dhclient_script[0] != '/') { - char *path = dmalloc(PATH_MAX, MDL); - if (path == NULL) - log_fatal("No memory for filename\n"); - path_dhclient_script = realpath(path_dhclient_script, path); + const char *old_path = path_dhclient_script; + path_dhclient_script = realpath(path_dhclient_script, NULL); if (path_dhclient_script == NULL) - log_fatal("%s: %s", path, strerror(errno)); + log_fatal("Failed to get realpath for %s: %s", old_path, strerror(errno)); } /* Index: common/bpf.c =================================================================== RCS file: /proj/cvs/prod/DHCP/common/bpf.c,v retrieving revision 1.62 retrieving revision 1.62.202.1 diff -u -r1.62 -r1.62.202.1 --- common/bpf.c 24 Nov 2009 02:06:56 -0000 1.62 +++ common/bpf.c 28 Feb 2012 15:15:18 -0000 1.62.202.1 @@ -550,7 +550,9 @@ interface_dereference (&fbi, MDL); } } +#endif +#if defined(USE_BPF_RECEIVE) || defined(USE_BPF_HWADDR) void get_hw_addr(const char *name, struct hardware *hw) { struct ifaddrs *ifa; Index: common/lpf.c =================================================================== RCS file: /proj/cvs/prod/DHCP/common/lpf.c,v retrieving revision 1.41 retrieving revision 1.41.64.1 diff -u -r1.41 -r1.41.64.1 --- common/lpf.c 10 May 2011 14:27:56 -0000 1.41 +++ common/lpf.c 28 Feb 2012 15:15:18 -0000 1.41.64.1 @@ -28,7 +28,6 @@ #include "dhcpd.h" #if defined (USE_LPF_SEND) || defined (USE_LPF_RECEIVE) -#include <sys/ioctl.h> #include <sys/uio.h> #include <errno.h> @@ -40,8 +39,14 @@ #include "includes/netinet/ip.h" #include "includes/netinet/udp.h" #include "includes/netinet/if_ether.h" +#endif + +#if defined (USE_LPF_RECEIVE) || defined (USE_LPF_HWADDR) +#include <sys/ioctl.h> #include <net/if.h> +#endif +#if defined (USE_LPF_SEND) || defined (USE_LPF_RECEIVE) /* Reinitializes the specified interface after an address change. This is not required for packet-filter APIs. */ @@ -417,7 +422,9 @@ interface_dereference (&fbi, MDL); } } +#endif +#if defined (USE_LPF_RECEIVE) || defined (USE_LPF_HWADDR) void get_hw_addr(const char *name, struct hardware *hw) { int sock; Index: includes/osdep.h =================================================================== RCS file: /proj/cvs/prod/DHCP/includes/osdep.h,v retrieving revision 1.44 retrieving revision 1.44.122.1 diff -u -r1.44 -r1.44.122.1 --- includes/osdep.h 9 Sep 2010 22:18:02 -0000 1.44 +++ includes/osdep.h 28 Feb 2012 15:15:16 -0000 1.44.122.1 @@ -108,6 +108,10 @@ # define USE_SOCKET_RECEIVE # if defined(HAVE_DLPI) # define USE_DLPI_HWADDR +# elif defined(HAVE_LPF) +# define USE_LPF_HWADDR +# elif defined(HAVE_BPF) +# define USE_BPF_HWADDR # endif #endif Index: server/dhcpd.c =================================================================== RCS file: /proj/cvs/prod/DHCP/server/dhcpd.c,v retrieving revision 1.158 retrieving revision 1.158.76.1 diff -u -r1.158 -r1.158.76.1 --- server/dhcpd.c 21 Apr 2011 13:24:24 -0000 1.158 +++ server/dhcpd.c 28 Feb 2012 15:44:01 -0000 1.158.76.1 @@ -464,12 +464,11 @@ * to be reopened after chdir() has been called */ if (path_dhcpd_db[0] != '/') { - char *path = dmalloc(PATH_MAX, MDL); - if (path == NULL) - log_fatal("No memory for filename\n"); - path_dhcpd_db = realpath(path_dhcpd_db, path); + const char *path = path_dhcpd_db; + path_dhcpd_db = realpath(path_dhcpd_db, NULL); if (path_dhcpd_db == NULL) - log_fatal("%s: %s", path, strerror(errno)); + log_fatal("Failed to get realpath for %s: %s", path, + strerror(errno)); } if (!quiet) {
CC: svante.signell@telia.com
Subject: Re: [ISC-Bugs #24697] Patches solving build failure for GNU/Hurd
Date: Sat, 12 May 2012 02:20:53 +0200
To: Tomasz Mrugalski via RT <dhcp-bugs@isc.org>, 616290@bugs.debian.org
From: Samuel Thibault <sthibault@debian.org>
Tomasz Mrugalski via RT, le Fri 11 May 2012 17:14:32 +0000, a écrit : > On Fri May 11 02:28:09 2012, sthibault@debian.org wrote: > > Any news on this? We really need to get some patch integrated in > > Debian, either the one we proposed, as an interim, or something from > > upstream, or something else? > I'm sorry, but due to resource limitations, we were unable to include fix for > realpath and use-sockets in upcoming 4.2.4. However, we were able to update the > patch to a version that is almost ready for merge. Cool! That's what we really need actually. > Please find our internal patch attached. That is *not* an official ISC patch. > It did not go through our normal testing process. Feel free to use it, though. Ok. There is however just one remaining glitch: GNU/Hurd has neither linux/filter.h nor net/bpf.h, so neither HAVE_LPF nor HAVE_BPF are defined, but GNU/Hurd does have the SIOCGIFHWADDR ioctl. I don't know how you prefer how to handle that. In the attached conservative patch, we simply enable USE_LPF_HWADDR when __GNU__ is defined (i.e. GNU/Hurd). Perhaps you'd prefer to replace that with an autoconf test for SIOCGIFHWADDR. I however hope that the attached thus-fixed use-sockets-realpath.patch is OK for Debian, so we can at last get isc-dhcp to build. For the record, the other patches that are needed for the Debian package: - patch-config enables the use of the socket API on GNU/Hurd, as explained by upstream in an earlier review mail. - patch-bind has to be applied to the unpacked bind package (from bug #651001, now applied in the bind9 package). I don't know how you'd prefer to achive that patching. - dhclient-script.hurd, dhclient-script.hurd.udeb, rfc3442-classless-routes.hurd are to be put in debian/ to provide hurdish scripts. You be they applied to the Debian package? Thanks! Samuel

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

With the resolution of 25979 I think this one is
also resolved (again changes will be in the
next feature release).

If 25979 didn't resolve the issues you can
either re-open this one or open a new ticket.




CC: 616290-forwarded@bugs.debian.org, 616290@bugs.debian.org, svante.signell@telia.com
Subject: Re: [ISC-Bugs #24697] Patches solving build failure for GNU/Hurd
Date: Fri, 8 Jun 2012 16:43:57 -0700
To: Shawn Routhier via RT <dhcp-bugs@isc.org>
From: Andrew Pollock <apollock@debian.org>
On Fri, Jun 08, 2012 at 11:41:00PM +0000, Shawn Routhier via RT wrote: > With the resolution of 25979 I think this one is > also resolved (again changes will be in the > next feature release). > > If 25979 didn't resolve the issues you can > either re-open this one or open a new ticket. > Thanks! So by "next feature release" you mean this won't go into 4.2.5, it'll go into 4.3 or whatever it's going to be called?

Message body not shown because it is not plain text.

On Fri Jun 08 23:44:21 2012, apollock@debian.org wrote:
> On Fri, Jun 08, 2012 at 11:41:00PM +0000, Shawn Routhier via RT wrote:
> > With the resolution of 25979 I think this one is
> > also resolved (again changes will be in the
> > next feature release).
> >
> > If 25979 didn't resolve the issues you can
> > either re-open this one or open a new ticket.
> >
>
> Thanks! So by "next feature release" you mean this won't go into 4.2.5,
> it'll go into 4.3 or whatever it's going to be called?

That is my current plan but I'm checking internal to determine
if we think it should go into a 4.2 or 4.1-ESV.


CC: apollock@debian.org, 616290-forwarded@bugs.debian.org, svante.signell@telia.com
Subject: Re: Bug#616290: [ISC-Bugs #24697] Patches solving build failure for GNU/Hurd
Date: Sun, 10 Jun 2012 19:29:55 +0200
To: dhcp-bugs@isc.org, 616290@bugs.debian.org
From: Samuel Thibault <sthibault@debian.org>
Shawn Routhier via RT, le Fri 08 Jun 2012 23:41:00 +0000, a écrit : > With the resolution of 25979 I think this one is > also resolved It should be, yes. > If 25979 didn't resolve the issues you can > either re-open this one or open a new ticket. Is there a public repository for isc dhcp so we can try it? Samuel
On Sun Jun 10 17:30:15 2012, sthibault@debian.org wrote:
> Shawn Routhier via RT, le Fri 08 Jun 2012 23:41:00 +0000, a écrit :
>
> > If 25979 didn't resolve the issues you can
> > either re-open this one or open a new ticket.
>
> Is there a public repository for isc dhcp so we can try it?
Not really.  I can send you a copy of the final patch though.

>
> Samuel
>



CC: 616290-forwarded@bugs.debian.org, 616290@bugs.debian.org, svante.signell@telia.com
Subject: Re: [ISC-Bugs #24697] Patches solving build failure for GNU/Hurd
Date: Tue, 12 Jun 2012 17:01:53 -0700
To: Shawn Routhier via RT <dhcp-bugs@isc.org>
From: Andrew Pollock <apollock@debian.org>
On Tue, Jun 12, 2012 at 11:29:02PM +0000, Shawn Routhier via RT wrote: > On Sun Jun 10 17:30:15 2012, sthibault@debian.org wrote: > > Shawn Routhier via RT, le Fri 08 Jun 2012 23:41:00 +0000, a écrit : > > > > > If 25979 didn't resolve the issues you can > > > either re-open this one or open a new ticket. > > > > Is there a public repository for isc dhcp so we can try it? > Not really. I can send you a copy of the final patch though. Please do, I'll consider applying it to our 4.2.4 package in Debian if there's a commitment upstream to apply it in the next feature release.
I had written up this comment some time ago but
put it into rt as a comment instead of a reply.  With
this I'm resolving the ticket, if we need to do more
you can re-open it or open a new ticket.

Here's the patch.  It is in HEAD and will therefore go into

the next feature (4.3.0a1 probably) but we currently don't
plan to put it into 4.2.5 or 4.1-ESV-R6.  We are still working
on the roadmap for 4.3.0 so I'm not sure when we will
release it.

Shawn



Subject: rt25979.rdiff

Message body not shown because it is not plain text.

Subject: Re: Patches solving FTBFS of isc-dhcp for GNU/Hurd [ISC-Bugs #24697]
Date: Sat, 22 Feb 2014 23:15:16 +0100
To: 616290@bugs.debian.org, svante.signell@gmail.com, Samuel Thibault <sthibault@debian.org>, dhcp-bugs@isc.org
From: Petter Reinholdtsen <pere@hungry.com>
[Shawn Routhier 2012-12-03] > Here's the patch. It is in HEAD and will therefore go into the next > feature (4.3.0a1 probably) but we currently don't plan to put it > into 4.2.5 or 4.1-ESV-R6. We are still working on the roadmap for > 4.3.0 so I'm not sure when we will release it. The 4.3.0a1-2 version is now in experimental, and it fail to build on Hurd, according to <URL: https://buildd.debian.org/status/package.php?p=isc-dhcp&suite=experimental > with this error message: ../bind/include/isc/net.h:184:8: error: redefinition of 'struct in6_pktinfo' So I guess there is still some porting needed to get ics-dhcp building on Hurd. The isc-dhcp package is as far as I can tell the last package needed to get Hurd using only packagees in Debian Sid to boot and get an IP address using DHCP. I base it on this list of packages my test machine have installed from the porters repository and not from sid: root@hurdtest:~# aptitude search '?narrow(?version(CURRENT),?origin(Debian Ports))' i emacs - GNU Emacs editor (metapackage) i gdb - GNU Debugger i hurd-recommended - Miscellaneous translators i isc-dhcp-client - ISC DHCP client i isc-dhcp-common - common files used by all the isc-dhcp* packages i x86info - Display diagnostic information about i386 compatible root@hurdtest:~# The packages emacs, gdb, hurd-recommended and x86info other packages are not required to get a working system in a dhcp network like mine. :) -- Happy hacking Petter Reinholdtsen
CC: 616290@bugs.debian.org, svante.signell@gmail.com, dhcp-bugs@isc.org
Subject: Re: Patches solving FTBFS of isc-dhcp for GNU/Hurd [ISC-Bugs #24697]
Date: Sat, 22 Feb 2014 18:35:26 -0800
To: Petter Reinholdtsen <pere@hungry.com>
From: Samuel Thibault <sthibault@debian.org>
Petter Reinholdtsen, le Sat 22 Feb 2014 23:15:16 +0100, a écrit : > [Shawn Routhier 2012-12-03] > > Here's the patch. It is in HEAD and will therefore go into the next > > feature (4.3.0a1 probably) but we currently don't plan to put it > > into 4.2.5 or 4.1-ESV-R6. We are still working on the roadmap for > > 4.3.0 so I'm not sure when we will release it. > > The 4.3.0a1-2 version is now in experimental, and it fail to build on > Hurd, according to > <URL: https://buildd.debian.org/status/package.php?p=isc-dhcp&suite=experimental > > with this error message: > > ../bind/include/isc/net.h:184:8: error: redefinition of 'struct in6_pktinfo' > > So I guess there is still some porting needed to get ics-dhcp building > on Hurd. See the comment and patches I sent on Mon, 21 May 2012 03:39:51 +0200: an upstream bind patch is needed to fix the build. And of course the two dhclient scripts, and the rfc3442 script. IIRC unfortunately this is now not all: the new upstream version brought some new occurrence of PATH_MAX. Samuel