🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1155169: squid FTCBFS for amd64/arm64: passes host compiler flags to the build compiler

#6001
From: Helmut Grohne
Date: Tue, 24 Nov 2026 21:00
50 lines
3234 bytes
--HDS6WBREk6cFQtek
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: squid
Version: 7.8-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

squid fails to cross build from source, because it passes compiler flags
meant for the host compiler to the build compiler. Since amd64 and arm64
have architecture-specific compiler flags, cross building for these is
broken. I'm attaching a patch to fix this. Please consider applying it.

Helmut

--HDS6WBREk6cFQtek
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="squid_7.8-1.1.debdiff"

diff -Nru squid-7.8/debian/changelog squid-7.8/debian/changelog
--- squid-7.8/debian/changelog	2026-11-03 14:58:11.000000000 +0100
+++ squid-7.8/debian/changelog	2026-11-22 16:56:35.000000000 +0100
@@ -1,3 +1,10 @@
+squid (7.8-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS for amd64/arm64: Pass suitable build compiler flags. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 22 Nov 2026 16:56:35 +0100
+
 squid (7.8-1) unstable; urgency=high
 
   [ Amos Jeffries <amosjeffries@squid-cache.org> ]
diff -Nru squid-7.8/debian/rules squid-7.8/debian/rules
--- squid-7.8/debian/rules	2026-11-03 14:58:11.000000000 +0100
+++ squid-7.8/debian/rules	2026-11-22 16:56:34.000000000 +0100
@@ -21,7 +21,7 @@
 
 # Build Environment settings
 DEB_CONFIGURE_EXTRA_FLAGS := \
-		BUILDCXXFLAGS="$(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS)" \
+		BUILDCXXFLAGS="$(CXXFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD)" \
 		BUILDCXX=$(CXX_FOR_BUILD) \
 		--disable-arch-native \
 		--disable-translation \

--HDS6WBREk6cFQtek--
Technical Details
Message-ID: <O35Ml-dWvb-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!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!news.mb-net.net!open-news-network.org!news.nntp4.net!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#1155169: squid FTCBFS for amd64/arm64: passes host compiler flags to the build compiler
Date: Tue, 24 Nov 2026 22:00:01 +0100
Message-ID: <O35Ml-dWvb-11@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Tue Nov 24 20:51:22 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1155169@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: luigi@debian.org
X-Debian-Pr-Message: report 1155169
X-Debian-Pr-Package: src:squid
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: squid
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="HDS6WBREk6cFQtek"
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/2004781
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 50
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 22 Nov 2026 18:49:27 +0100
X-Original-Message-ID: <20261122174927.GA4033403@subdivi.de>