Source: libselinux Version: 3.9-1 Severity: important Justification: breaks essential architecture cross bootstrap Tags: patch User: [email protected] Usertags: ftcbfs User: [email protected] Usertags: rebootstrap
Hi, libselinux broke cross compilation. It now uses the build architecture toolchain. I tracked it down to https://salsa.debian.org/selinux-team/libselinux/-/commit/75ab1387129f90dd910aa1f20f399ebd126379f9 where CC stops being exported. I propose telling dpkg's builtools.mk to export the variables. Please find a patch attached. Helmut
diff -Nru libselinux-3.9/debian/changelog libselinux-3.9/debian/changelog --- libselinux-3.9/debian/changelog 2025-10-19 06:31:28.000000000 +0200 +++ libselinux-3.9/debian/changelog 2025-10-27 17:35:24.000000000 +0100 @@ -1,3 +1,10 @@ +libselinux (3.9-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Export variables set by dpkg's buildtools.mk Closes: #-1 + + -- Helmut Grohne <[email protected]> Mon, 27 Oct 2025 17:35:24 +0100 + libselinux (3.9-2) unstable; urgency=medium * Fix race condition in build Closes: #1118350 diff -Nru libselinux-3.9/debian/rules libselinux-3.9/debian/rules --- libselinux-3.9/debian/rules 2025-10-19 06:31:28.000000000 +0200 +++ libselinux-3.9/debian/rules 2025-10-27 17:35:23.000000000 +0100 @@ -8,6 +8,7 @@ include /usr/share/dpkg/architecture.mk libdir := /usr/lib/$(DEB_HOST_MULTIARCH) +DPKG_EXPORT_BUILDTOOLS := 1 include /usr/share/dpkg/buildtools.mk # for cross compilation ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))

