Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 7742] New: dhcp lacks important features when BR2_ENABLE_DEBUG
@ 2014-12-22 16:14 bugzilla at busybox.net
  2014-12-23 11:24 ` [Buildroot] [Bug 7742] " bugzilla at busybox.net
  2015-07-30 10:12 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2014-12-22 16:14 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=7742

           Summary: dhcp lacks important features when BR2_ENABLE_DEBUG
           Product: buildroot
           Version: 2014.11
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: thomas.claveirole at green-communications.fr
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Created attachment 5804
  --> https://bugs.busybox.net/attachment.cgi?id=5804
Fix the reported bug at least partially.

Hi,

When configured with --enable-debug, the DHCP server built from the dhcp
package has some important features disabled.  Most notably, it cannot go
background, change its UID and GID, nor create PID files (see server/dhcpd.c
from the package's sources)...

... and setting BR2_ENABLE_DEBUG does add a --enable-debug option to all target
packages that use the Autotools, including the dhcp package (code is in
package/Makefile.in:387 and package/pkg-autotools.mk:205).  

However, the help for BR2_ENABLE_DEBUG states that this option should only
impact debugging symbols.  Therefore, disabling dhcp features when
BR2_ENABLE_DEBUG is on is a bit harsh.

I am not sure what a proper fix for this would be.  *Maybe* a solution is not
to give --enable-debug to dhcp when BR2_ENABLE_DEBUG, but the Autotools
infrastructure does not allow this.  Attached is a patch I use for the dhcp
package that keeps the aforementioned features even when one configures the
package with --enable-debug.  But I only looked quickly at dhcpd's source code,
and --enable-debug might disable other features I am not aware of (and possibly
in other programs, e.g., the DHCP client).

Cheers,
Thomas

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 7742] dhcp lacks important features when BR2_ENABLE_DEBUG
  2014-12-22 16:14 [Buildroot] [Bug 7742] New: dhcp lacks important features when BR2_ENABLE_DEBUG bugzilla at busybox.net
@ 2014-12-23 11:24 ` bugzilla at busybox.net
  2015-07-30 10:12 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2014-12-23 11:24 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=7742

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2014-12-23 11:24:02 UTC ---
Interesting, thanks for the report.

We have seen several cases of --enable-debug causing problems, and indeed the
help text of BR2_ENABLE_DEBUG only mentions that it's causing the packages to
be built with debugging symbols.

So, I would personally suggest that we simply do not pass --enable-debug when
BR2_ENABLE_DEBUG is set, and make BR2_ENABLE_DEBUG only enable debugging
symbols.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 7742] dhcp lacks important features when BR2_ENABLE_DEBUG
  2014-12-22 16:14 [Buildroot] [Bug 7742] New: dhcp lacks important features when BR2_ENABLE_DEBUG bugzilla at busybox.net
  2014-12-23 11:24 ` [Buildroot] [Bug 7742] " bugzilla at busybox.net
@ 2015-07-30 10:12 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-07-30 10:12 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=7742

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-07-30 10:12:08 UTC ---
We are no longer passing --enable-debug to all packages when BR2_ENABLE_DEBUG=y
since commit
http://git.buildroot.net/buildroot/commit/package/Makefile.in?id=0552a367dbdc27a211daaac3359d81dd537e384f.
Therefore, this bug is fixed.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-30 10:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-22 16:14 [Buildroot] [Bug 7742] New: dhcp lacks important features when BR2_ENABLE_DEBUG bugzilla at busybox.net
2014-12-23 11:24 ` [Buildroot] [Bug 7742] " bugzilla at busybox.net
2015-07-30 10:12 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox