Package: dhcpcd
Version: 1:3.2.3-1.1

The source package's debian/rules build dhcpcd with:
  $(MAKE) CFLAGS="$(CFLAGS)"

However, this clobbers any CFLAGS set by dhcpcd's own build system.
The following is an extract of how the debian package builds dhcp.c:
$ dpkg-buildpackage
...
gcc -g -O2 -Wall -W -DENABLE_INFO_COMPAT   -c -o dhcp.o dhcp.c
...

Compare to how dhcpcd would compile it (ignore linewraps):
$ make
...
gcc -D_BSD_SOURCE -D_XOPEN_SOURCE=600 -std=c99 -pedantic -Wall -Wunused
-Wimplicit -Wshadow -Wformat=2 -Wmissing-declarations
-Wno-missing-prototypes -Wwrite-strings -Wbad-function-cast
-Wnested-externs -Wcomment -Winline -Wchar-subscripts -Wcast-align
-Wno-format-nonliteral -Wdeclaration-after-statement -Wsequence-point
-Wextra -DINFODIR=\"/var/lib/dhcpcd\"  -DENABLE_SYSV   -c -o dhcp.o
dhcp.c
...

This results in config.h undefining ENABLE_NTP and ENABLE_NIS, and
producing a deficient binary.

I believe this also applies to other versions.

regards,
..david



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to