[Debian-med-packaging] Bug#1126383: libsort-key-top-perl FTCBFS: uses the build architecture compiler as linker
Helmut Grohne
helmut at subdivi.de
Sun Jan 25 09:24:21 GMT 2026
Source: libsort-key-top-perl
Version: 0.08-5
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
libsort-key-top-perl fails to cross build from source, because it uses
the build architecture compiler as linker. It originates from
debian/rules passing LD. The value is looked up from Perl's sysconfig
data without considering the host architecture. I propose using dpkg's
buildtools.mk as source instead. Once doing so, it cross builds
successfully. I'm attaching a patch for your convenience.
Helmut
-------------- next part --------------
diff -Nru libsort-key-top-perl-0.08/debian/changelog libsort-key-top-perl-0.08/debian/changelog
--- libsort-key-top-perl-0.08/debian/changelog 2025-11-13 22:34:44.000000000 +0100
+++ libsort-key-top-perl-0.08/debian/changelog 2026-01-25 10:11:53.000000000 +0100
@@ -1,3 +1,10 @@
+libsort-key-top-perl (0.08-5.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Use the host compiler as linker. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Sun, 25 Jan 2026 10:11:53 +0100
+
libsort-key-top-perl (0.08-5) unstable; urgency=medium
* d/control: build depends on perl-xs-dev. (Closes: #1102865)
diff -Nru libsort-key-top-perl-0.08/debian/rules libsort-key-top-perl-0.08/debian/rules
--- libsort-key-top-perl-0.08/debian/rules 2025-11-13 22:34:44.000000000 +0100
+++ libsort-key-top-perl-0.08/debian/rules 2026-01-25 10:11:53.000000000 +0100
@@ -5,8 +5,10 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+include /usr/share/dpkg/buildtools.mk
+
%:
dh $@
override_dh_auto_configure:
- dh_auto_configure -- OPTIMIZE="$(CPPFLAGS) $(CFLAGS)" LD="$(shell perl -V::ld:) $(LDFLAGS)"
+ dh_auto_configure -- OPTIMIZE="$(CPPFLAGS) $(CFLAGS)" LD="$(CC) $(LDFLAGS)"
More information about the Debian-med-packaging
mailing list