🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1155167: libtraceevent FTCBFS for armhf: hard codes the build architecture nm

#6003
From: Helmut Grohne
Date: Tue, 24 Nov 2026 21:00
35 lines
2908 bytes
--imFblXDUTpVGEccx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: libtraceevent
Version: 1:1.9.0-2
Tags: patch upstream
User: debian-arm@lists.debian.org
Usertags: armhf
User: debian-cross@lists.debian.org
Usertags: ftcbfs

libtraceevent fails to cross build from source for armhf. I'm not sure
why it only appears to affect arm as the root cause resides in the build
architecture nm being used when the host one should have been. I'm
attaching a patch for your convenience.

Helmut

--imFblXDUTpVGEccx
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="cross.patch"

--- libtraceevent-1.9.0.orig/scripts/utils.mk
+++ libtraceevent-1.9.0/scripts/utils.mk
@@ -183,5 +183,5 @@
 
 # Make all global functions that do not start with "tep_" have a unique name.
 redefine_local = \
-	$(shell nm $(2) 2>/dev/null | grep '[0-9a-f] t ' > .tmp.func-list; for f in a `nm $(1) 2>/dev/null | grep ' t ' | cut -d' ' -f3 | sort -u`;  do \
+	$(shell $(NM) $(2) 2>/dev/null | grep '[0-9a-f] t ' > .tmp.func-list; for f in a `$(NM) $(1) 2>/dev/null | grep ' t ' | cut -d' ' -f3 | sort -u`;  do \
 	 if [ "$${f#tep_}" = "$$f" ]; then if grep -q $$f .tmp.func-list; then echo --redefine-sym $$f=_tep_local_$$f; fi; fi; done)

--imFblXDUTpVGEccx--
Technical Details
Message-ID: <O35Ml-dWvb-21@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155167: libtraceevent FTCBFS for armhf: hard codes the build architecture nm
Date: Tue, 24 Nov 2026 22:00:01 +0100
Message-ID: <O35Ml-dWvb-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  Tue Nov 24 20:51:14 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1155167@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: sudipm.mukherjee@gmail.com
X-Debian-Pr-Message: report 1155167
X-Debian-Pr-Package: src:libtraceevent
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: libtraceevent
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="imFblXDUTpVGEccx"
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/2004778
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 35
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 24 Nov 2026 21:48:27 +0100
X-Original-Message-ID: <20261124204827.GA1589486@subdivi.de>