🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1156154: audit FTCBFS: uses wrong compiler for build tool

#7162
From: Helmut Grohne
Date: Wed, 02 Dec 2026 13:30
45 lines
3208 bytes
--IMNRZc6RPc86XndD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: audit
Version: 1:4.2.1-1.3
Severity: important
Tags: patch upstream
Justification: regresses architecture cross bootstrap
User: debian-cross@lists.debian.org
Usertags: ftcbfs
User: helmutg@debian.org
Usertags: rebootstrap
X-Debbugs-Cc: doko@debian.org

audit regressed cross compilation when loong64 support was enabled,
because the relevant generator misses tool overrides in the upstream
Makefile.am. I'm attaching a patch.

Helmut

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

--- audit-4.2.1.orig/lib/Makefile.am
+++ audit-4.2.1/lib/Makefile.am
@@ -151,6 +151,14 @@
 if USE_LOONGARCH64
 gen_loongarch64_tables_h_SOURCES = gen_tables.c gen_tables.h loongarch64_table.h
 gen_loongarch64_tables_h_CFLAGS = '-DTABLE_H="loongarch64_table.h"'
+$(gen_loongarch64_tables_h_OBJECTS): CC=$(CC_FOR_BUILD)
+$(gen_loongarch64_tables_h_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)
+$(gen_loongarch64_tables_h_OBJECTS): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+$(gen_loongarch64_tables_h_OBJECTS): LDFLAGS=$(LDFLAGS_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): CC=$(CC_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): CFLAGS=$(CFLAGS_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): CPPFLAGS=$(CPPFLAGS_FOR_BUILD)
+gen_loongarch64_tables_h$(BUILD_EXEEXT): LDFLAGS=$(LDFLAGS_FOR_BUILD)
 loongarch64_tables.h: gen_loongarch64_tables_h Makefile
 	./gen_loongarch64_tables_h --lowercase --i2s --s2i loongarch64_syscall > $@
 endif

--IMNRZc6RPc86XndD--
Technical Details
Message-ID: <O5Szf-fy45-25@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156154: audit FTCBFS: uses wrong compiler for build tool
Date: Wed, 02 Dec 2026 14:30:01 +0100
Message-ID: <O5Szf-fy45-25@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:24 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1156154@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: doko@debian.org, bigon@debian.org
X-Debian-Pr-Message: report 1156154
X-Debian-Pr-Package: src:audit
X-Debian-Pr-Keywords: patch upstream
X-Debian-Pr-Source: audit
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="IMNRZc6RPc86XndD"
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/2006516
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 45
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 1 Dec 2026 14:46:24 +0100
X-Original-Message-ID: <20261201134624.GA2653639@subdivi.de>