Source: rem
Version: 1.0.0-2
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

rem fails to cross build from source, because it reruns detection during
make install and concludes that it needs to rebuild some things. As
dh_auto_install does not pass cross tools, it uses the build
architecture toolchain and that doesn't go well. I propose exporting the
tools for all targets from debian/rules and am attaching a patch for
your convenience.

Helmut
diff --minimal -Nru rem-1.0.0/debian/changelog rem-1.0.0/debian/changelog
--- rem-1.0.0/debian/changelog  2024-05-05 20:21:06.000000000 +0200
+++ rem-1.0.0/debian/changelog  2025-02-07 13:37:48.000000000 +0100
@@ -1,3 +1,10 @@
+rem (1.0.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Export build tools for make install. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 07 Feb 2025 13:37:48 +0100
+
 rem (1.0.0-2) unstable; urgency=medium
 
   * Team upload
diff --minimal -Nru rem-1.0.0/debian/rules rem-1.0.0/debian/rules
--- rem-1.0.0/debian/rules      2024-05-05 20:21:06.000000000 +0200
+++ rem-1.0.0/debian/rules      2025-02-07 13:37:46.000000000 +0100
@@ -2,6 +2,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+DPKG_EXPORT_BUILDTOOLS := 1
+include /usr/share/dpkg/buildtools.mk
+
 MAJOR := $(shell grep -Po '\bVER_MAJOR := \K\d+' Makefile)
 LIB = librem
 

Reply via email to