Source: dhcpdump Version: 2.00-1 Tags: patch User: [email protected] Usertags: ftcbfs
dhcpdump regressed cross building as its upstream Makefile now checks for dependencies in the clean target using the build architecture pkg-config. It should be using the host's pkg-config as it will not be able to find dependencies otherwise. I'm attaching a patch for your convenience. Helmut
diff -Nru dhcpdump-2.00/debian/changelog dhcpdump-2.00/debian/changelog --- dhcpdump-2.00/debian/changelog 2026-07-27 06:54:55.000000000 +0200 +++ dhcpdump-2.00/debian/changelog 2026-11-27 11:25:13.000000000 +0100 @@ -1,3 +1,10 @@ +dhcpdump (2.00-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Use the host's pkg-config. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Fri, 27 Nov 2026 11:25:13 +0100 + dhcpdump (2.00-1) unstable; urgency=medium * Latest upstream 2.00 diff -Nru dhcpdump-2.00/debian/patches/cross.patch dhcpdump-2.00/debian/patches/cross.patch --- dhcpdump-2.00/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ dhcpdump-2.00/debian/patches/cross.patch 2026-11-27 11:24:25.000000000 +0100 @@ -0,0 +1,23 @@ +--- dhcpdump-2.00.orig/Makefile ++++ dhcpdump-2.00/Makefile +@@ -11,6 +11,7 @@ + # if neither works the build stops with a clear message rather than a cryptic + # link error. libpcap is always required; yascreen only unless NO_TUI is set. + ++PKG_CONFIG?=pkg-config + CFLAGS+=${CPPFLAGS} + CFLAGS+=-Wall -Wextra -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -O3 -fPIE + LDFLAGS+=-g -Wl,-z,relro -Wl,-z,now -fPIE -pie +@@ -36,9 +37,9 @@ + # Prefer pkg-config; else fall back to the link flag only if it actually links; + # else fail with an explanatory error. + define check_dep +-ifeq ($$(shell pkg-config --exists $(1) 2>/dev/null && echo y),y) +-CFLAGS+=$$(shell pkg-config --cflags $(1)) +-LIBS+=$$(shell pkg-config --libs $(1)) ++ifeq ($$(shell $(PKG_CONFIG) --exists $(1) 2>/dev/null && echo y),y) ++CFLAGS+=$$(shell $(PKG_CONFIG) --cflags $(1)) ++LIBS+=$$(shell $(PKG_CONFIG) --libs $(1)) + else ifeq ($$(shell printf 'int main(void){return 0;}\n' | $$(CC) -x c - $(2) -o /dev/null >/dev/null 2>&1 && echo y),y) + LIBS+=$(2) + else diff -Nru dhcpdump-2.00/debian/patches/series dhcpdump-2.00/debian/patches/series --- dhcpdump-2.00/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ dhcpdump-2.00/debian/patches/series 2026-11-27 11:23:36.000000000 +0100 @@ -0,0 +1 @@ +cross.patch diff -Nru dhcpdump-2.00/debian/rules dhcpdump-2.00/debian/rules --- dhcpdump-2.00/debian/rules 2023-06-21 22:18:39.000000000 +0200 +++ dhcpdump-2.00/debian/rules 2026-11-27 11:25:10.000000000 +0100 @@ -1,6 +1,9 @@ #! /usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=+all +# Cross tools required for all targets including clean +DPKG_EXPORT_BUILDTOOLS=1 +include /usr/share/dpkg/buildtools.mk %: dh $@

