🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1156152: sgt-puzzles FTCBFS for amd64/arm64: passes host CFLAGS to build compiler

#7158
From: Helmut Grohne
Date: Wed, 02 Dec 2026 13:30
52 lines
3655 bytes
--6LEnTOiDxZb0KWCy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: sgt-puzzles
Version: 20250730.a7c7826-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

sgt-puzzles fails to cross build from source for amd64 and arm64
architectures. Those have architecture-specific CFLAGS. When sgt-puzzles
performs its native build pass, the host's CFLAGS are inherited and
things go wrong. The CFLAGS_FOR_BUILD need to be passed to the native
cmake invocation. I'm attaching a patch for your convenience.

Helmut

--6LEnTOiDxZb0KWCy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment;
	filename="sgt-puzzles_20250730.a7c7826-1.1.debdiff"

diff -Nru sgt-puzzles-20250730.a7c7826/debian/changelog sgt-puzzles-20250730.a7c7826/debian/changelog
--- sgt-puzzles-20250730.a7c7826/debian/changelog	2026-03-03 16:19:06.000000000 +0100
+++ sgt-puzzles-20250730.a7c7826/debian/changelog	2026-11-29 21:20:30.000000000 +0100
@@ -1,3 +1,10 @@
+sgt-puzzles (20250730.a7c7826-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCFBS for amd64/arm64: Adapt CFLAGS for native build. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 29 Nov 2026 21:20:30 +0100
+
 sgt-puzzles (20250730.a7c7826-1) unstable; urgency=medium
 
   * New upstream version:
diff -Nru sgt-puzzles-20250730.a7c7826/debian/rules sgt-puzzles-20250730.a7c7826/debian/rules
--- sgt-puzzles-20250730.a7c7826/debian/rules	2025-08-25 17:58:17.000000000 +0200
+++ sgt-puzzles-20250730.a7c7826/debian/rules	2026-11-29 21:20:29.000000000 +0100
@@ -28,7 +28,7 @@
 # icon files.  In a fully native build this is done automatically.
 ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
 	mkdir -p obj-$(DEB_BUILD_GNU_TYPE)
-	cd obj-$(DEB_BUILD_GNU_TYPE) && cmake $(CMAKE_OPTS) ..
+	cd obj-$(DEB_BUILD_GNU_TYPE) && CFLAGS='$(CFLAGS_FOR_BUILD)' cmake $(CMAKE_OPTS) ..
 	$(MAKE) -C obj-$(DEB_BUILD_GNU_TYPE) VERBOSE=$(if $(filter terse,$(DEB_BUILD_OPTIONS)),0,1)
 	cp obj-$(DEB_BUILD_GNU_TYPE)/icons/*-icon.c icons/
 endif

--6LEnTOiDxZb0KWCy--
Technical Details
Message-ID: <O5Szf-fy45-19@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!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!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Helmut Grohne <helmut@subdivi.de>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1156152: sgt-puzzles FTCBFS for amd64/arm64: passes host CFLAGS to build compiler
Date: Wed, 02 Dec 2026 14:30:01 +0100
Message-ID: <O5Szf-fy45-19@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Dec  2 13:27:21 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: Helmut Grohne <helmut@subdivi.de>, 1156152@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: benh@debian.org
X-Debian-Pr-Message: report 1156152
X-Debian-Pr-Package: src:sgt-puzzles
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: sgt-puzzles
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="6LEnTOiDxZb0KWCy"
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/2006513
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 52
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Sun, 29 Nov 2026 21:29:08 +0100
X-Original-Message-ID: <20261129202908.GA760329@subdivi.de>