Article View: linux.debian.bugs.dist
Article #7160Bug#1156149: dhcpdump FTCBFS: hard codes the build architecture pkg-config
From: Helmut Grohne
Date: Wed, 02 Dec 2026 13:30
Date: Wed, 02 Dec 2026 13:30
84 lines
4885 bytes
4885 bytes
--9HtM5b4rR0B/bRrK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Source: dhcpdump
Version: 2.00-1
Tags: patch
User: debian-cross@lists.debian.org
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
--9HtM5b4rR0B/bRrK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="dhcpdump_2.00-1.1.debdiff"
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 <helmut@subdivi.de> 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 $@
--9HtM5b4rR0B/bRrK--
Technical Details
Message-ID:
<O5Szf-fy45-21@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1156149: dhcpdump FTCBFS: hard codes the build architecture pkg-config Date: Wed, 02 Dec 2026 14:30:01 +0100 Message-ID: <O5Szf-fy45-21@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Dec 2 13:27:18 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1156149@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: bbonev@ipacct.com X-Debian-Pr-Message: report 1156149 X-Debian-Pr-Package: src:dhcpdump X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: dhcpdump MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="9HtM5b4rR0B/bRrK" Content-Disposition: inline X-Reportbug-Version: 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006511 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 84 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2026 11:29:20 +0100 X-Original-Message-ID: <20261127102920.GA3317314@subdivi.de>