Source: gkrellm
Version: 2.4.0-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

gkrellm recently regressed cross building. Its makefile now errors out
when required packages go missing. This is also checked when requesting
the clean target and since debhelper does not pass cross tools there,
the build architecture pkg-config fails to locate host packages and
clean fails. A typical workaround is exporting tools from dpkg's
buildtools.mk for all targets. Once doing so STRIP is changed from empty
to an actual stripping tool and that ends up breaking make install. So
STRIP should be skipped. I'm attaching a patch with these changes.
Please consider applying it as it makes gkrellm cross buildable again.

Helmut
diff -Nru gkrellm-2.4.0/debian/changelog gkrellm-2.4.0/debian/changelog
--- gkrellm-2.4.0/debian/changelog      2025-11-18 08:18:50.000000000 +0100
+++ gkrellm-2.4.0/debian/changelog      2025-12-01 09:22:06.000000000 +0100
@@ -1,3 +1,10 @@
+gkrellm (2.4.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export build tools for all targets except for strip. (Closes: 
#-1)
+
+ -- Helmut Grohne <[email protected]>  Mon, 01 Dec 2025 09:22:06 +0100
+
 gkrellm (2.4.0-1) unstable; urgency=medium
 
   [ Sandro Tosi ]
diff -Nru gkrellm-2.4.0/debian/rules gkrellm-2.4.0/debian/rules
--- gkrellm-2.4.0/debian/rules  2025-11-18 08:18:50.000000000 +0100
+++ gkrellm-2.4.0/debian/rules  2025-12-01 09:22:06.000000000 +0100
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+DPKG_EXPORT_BUILDTOOLS = 1
+include /usr/share/dpkg/buildtools.mk
+export STRIP :=
 include /usr/share/dpkg/buildflags.mk
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 export DEB_CFLAGS_MAINT_APPEND = -std=gnu17

Reply via email to