🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#7458
From: Nilesh Patra
Date: Fri, 04 Dec 2026 13:20
63 lines
4806 bytes

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.

> 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: <O6BmF-fWoR-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!news.nntp4.net!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> <O6BcZ-fWkS-5@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!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Nilesh Patra <nilesh@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156341: tchbench FTCBFS: Hard-codes pkgconf and passes `install -s`
Date: Fri, 04 Dec 2026 14:20:01 +0100
Message-ID: <O6BmF-fWoR-13@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> <O6BcZ-fWkS-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Dec  4 13:19:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Nilesh Patra <nilesh@debian.org>, 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
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
Autocrypt: addr=nilesh@debian.org; keydata=
 xjMEYzwXMxYJKwYBBAHaRw8BAQdAsv3h7PxLm3vMbvdmN1bVnqUGyr3k2CKtdRmMDrX/jSXN
 IE5pbGVzaCBQYXRyYSA8bmlsZXNoQGRlYmlhbi5vcmc+wpAEExYIADgWIQSglbZu4JAkvuai
 8HIqJ5BL1yQ+2gUCYzwXMwIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRAqJ5BL1yQ+
 2hfuAQDBmH+Sec1bAb/BQNlnNOn7+o69yLi1S7bIQA67WpjCBwD9HoQ3dFMmHbDwu5Mi18z+
 0HoPHLKwQYWJCkOLn9vMFAHOOARjPBczEgorBgEEAZdVAQUBAQdAlnuvB8w06//G6pFqAo98
 IrNeskq+iLAbSPZ0Tse9zUIDAQgHwngEGBYIACAWIQSglbZu4JAkvuai8HIqJ5BL1yQ+2gUC
 YzwXMwIbDAAKCRAqJ5BL1yQ+2mzwAP0SR+JseZKh5BThCb5VijeJD2mCNhZFhvKYmlb8y6nb
 HwD/d3PmHHDDi6JR4oPGuYK/Z+j9tAiV5q8hGZilIFqfgQU=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Debian-User: nilesh
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006927
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 63
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 4 Dec 2026 18:47:52 +0530
X-Original-Message-ID: <392db485-3dfb-4bfa-9f8e-49ba3f3a4d37@debian.org>
X-Original-References: <0f271204-5504-4694-91a0-d00bea251e34@debian.org> <axK2xZXFd6JoC9fS@shodan.l0w.de> <0f271204-5504-4694-91a0-d00bea251e34@debian.org> <axK2xZXFd6JoC9fS@shodan.l0w.de>