Source: sgt-puzzles Version: 20250730.a7c7826-1 Tags: patch User: [email protected] 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
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 <[email protected]> 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

