Control: forwarded -1 https://github.com/bluhm/tcpbench-portable/pull/47
On 04/12/26 6:21 pm, Tobias Heider wrote: > On Fri, Dec 04, 2026 at 06:04:00PM +0530, Nilesh Patra wrote: >> Source: tcpbench >> Version: 2.02-2 >> Tags: patch >> User: [email protected] >> Usertags: ftcbfs >> X-Debbugs-Cc: [email protected] >> >> tcpbench FTCBFS because >> >> a) It hard-codes pkgconf so the arch-prefixed pkg-config does not work >> b) strips the binary which at install step. This is already done by >> `dh_strip` >> >> The patch below fixes it. Please consider applying. > > Looks like this is also fixed in 3.03 with > https://github.com/bluhm/tcpbench-portable/commit/d42678446a275c6ee90929264c9cac239ce784d6 > > I'll just update to the latest version, that should fix it. > I suppose we could still propose your patch to upstream. I needed to change one little thing regarding strip to make it upstreamable. I've opened a Pull request for that. On the debian front all you need is a `export STRIP=true` in d/rules once this is merged. Full patch wrt version in debian is attached for your convenience. Best, Nilesh
commit 99b3a1dc0ba22abe0a6979e7c2ba1b511b07fd24 Author: Nilesh Patra <[email protected]> Date: Fri Dec 4 13:31:26 2026 +0100 Get tcpbench cross-building diff --git a/debian/patches/cross.patch b/debian/patches/cross.patch new file mode 100644 index 0000000..5f9631f --- /dev/null +++ b/debian/patches/cross.patch @@ -0,0 +1,24 @@ +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -1,7 +1,9 @@ ++PKG_CONFIG ?= pkgconf ++STRIP ?= strip + CFLAGS+= -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall \ +- $(shell pkgconf --cflags libbsd-overlay) ++ $(shell $(PKG_CONFIG) --cflags libbsd-overlay) + LDFLAGS+= -levent -lm \ +- $(shell pkgconf --libs libbsd-overlay) ++ $(shell $(PKG_CONFIG) --libs libbsd-overlay) + BINDIR?= /usr/local/bin + MANDIR?= /usr/local/man/man + +@@ -15,7 +17,8 @@ + rm -f tcpbench tcpbench.o out + + install: +- install -c -m 555 -s tcpbench -D -t ${DESTDIR}${BINDIR} ++ install -c -m 555 tcpbench -D -t ${DESTDIR}${BINDIR} ++ $(STRIP) ${DESTDIR}${BINDIR}/tcpbench + install -c -m 444 tcpbench.1 -D -t ${DESTDIR}${MANDIR}1 + + .PHONY: test test-localhost test-localhost6 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..def274a --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +cross.patch diff --git a/debian/rules b/debian/rules index 8afa342..710fbf7 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,7 @@ #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export STRIP=true %: dh $@

