🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #7461

Bug#1156341: tchbench FTCBFS: Hard-codes pkgconf and passes `install -s`

#7461
From: Tobias Heider
Date: Fri, 04 Dec 2026 14:00
76 lines
4672 bytes

On 4 December 2026 14:17:52 CET, Nilesh Patra <nilesh@debian.org> wrote:
>
>
>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: debian-cross@lists.debian.org
>>> Usertags: ftcbfs
>>> X-Debbugs-Cc: debian-cross@lists.debian.org
>>>
>>> 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
>
>No, that is not really a fix. The cross-pkgconfig needs to be an arch-prefixed triplet.
>You could enable cross-builds in salsa ci to check as well.
>

My bad, i should have read your report more carefully.

I will forward your fix to upstream and ask them to tag a new release then, they are pretty quick usually.

>> I'll just update to the latest version, that should fix it.
>> I suppose we could still propose your patch to upstream.
>> 
>>>
>>> diff --git a/debian/patches/cross.patch b/debian/patches/cross.patch
>>> new file mode 100644
>>> index 0000000..d2972fe
>>> --- /dev/null
>>> +++ b/debian/patches/cross.patch
>>> @@ -0,0 +1,22 @@
>>> +--- a/GNUmakefile
>>> ++++ b/GNUmakefile
>>> +@@ -1,7 +1,8 @@
>>> ++PKG_CONFIG ?= pkgconf
>>> + 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 +16,7 @@
>>> +       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}
>>> +       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
Technical Details
Message-ID: <O6BZn-fWD7-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <O6AJX-fW11-5@gated-at.bofh.it> <O6BcZ-fWkS-5@gated-at.bofh.it> <O6AJX-fW11-5@gated-at.bofh.it> <O6BmF-fWoR-13@gated-at.bofh.it> <O6AJX-fW11-5@gated-at.bofh.it> <O6BmF-fWoR-13@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Tobias Heider <me@tobhe.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156341: tchbench FTCBFS: Hard-codes pkgconf and passes `install -s`
Date: Fri, 04 Dec 2026 15:00:01 +0100
Message-ID: <O6BZn-fWD7-1@gated-at.bofh.it>
References: <O6AJX-fW11-5@gated-at.bofh.it> <O6BcZ-fWkS-5@gated-at.bofh.it> <O6AJX-fW11-5@gated-at.bofh.it> <O6BmF-fWoR-13@gated-at.bofh.it> <O6AJX-fW11-5@gated-at.bofh.it> <O6BmF-fWoR-13@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Dec  4 13:51:06 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Tobias Heider <me@tobhe.de>, 1156341@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: me@tobhe.de
X-Debian-Pr-Message: followup 1156341
X-Debian-Pr-Package: src:tcpbench
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: tcpbench
User-Agent: Thunderbird for Android
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006931
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 76
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 04 Dec 2026 14:49:50 +0100
X-Original-Message-ID: <51E6A2E5-A95B-44B3-889C-C9015B1B4522@tobhe.de>
X-Original-References: <0f271204-5504-4694-91a0-d00bea251e34@debian.org> <axK2xZXFd6JoC9fS@shodan.l0w.de> <0f271204-5504-4694-91a0-d00bea251e34@debian.org> <392db485-3dfb-4bfa-9f8e-49ba3f3a4d37@debian.org> <0f271204-5504-4694-91a0-d00bea251e34@debian.org> <392db485-3dfb-4bfa-9f8e-49ba3f3a4d37@debian.org>