Bug#1126660: togl FTCBFS: debian/rules uses the build architecture compiler as a make default

Helmut Grohne helmut at subdivi.de
Thu Jan 29 06:54:04 GMT 2026


Source: togl
Version: 2.0-5
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs

togl fails to cross build from source, because debian/rules uses $(CC),
which ends up being the build architecture compiler as a GNU make
default value. The easiest way to initialize CC to a cross compiler when
needed is including /usr/share/dpkg/buildtools.mk. Doing so makes togl
cross buildable. I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff -Nru togl-2.0/debian/changelog togl-2.0/debian/changelog
--- togl-2.0/debian/changelog	2025-09-20 17:46:06.000000000 +0200
+++ togl-2.0/debian/changelog	2026-01-29 07:50:28.000000000 +0100
@@ -1,3 +1,10 @@
+togl (2.0-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk set CC. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Thu, 29 Jan 2026 07:50:28 +0100
+
 togl (2.0-5) unstable; urgency=medium
 
   * Team upload.
diff -Nru togl-2.0/debian/rules togl-2.0/debian/rules
--- togl-2.0/debian/rules	2025-09-20 17:46:06.000000000 +0200
+++ togl-2.0/debian/rules	2026-01-29 07:50:26.000000000 +0100
@@ -2,6 +2,8 @@
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+include /usr/share/dpkg/buildtools.mk
+
 %:
 	dh $@
 


More information about the debian-science-maintainers mailing list