Source: s390-tools
Version: 2.35.0-3
Tags: patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: s390x
User: [email protected]
Usertags: ftcbfs

s390-tools fails to cross build from source, because it runs bare make
without passing any cross tools. I'm attaching a patch to fix that for
your convenience. Once applying it, s390-tools can be cross built.

Helmut
diff -Nru s390-tools-2.35.0/debian/changelog s390-tools-2.35.0/debian/changelog
--- s390-tools-2.35.0/debian/changelog  2026-01-12 19:03:46.000000000 +0100
+++ s390-tools-2.35.0/debian/changelog  2026-01-15 07:26:28.000000000 +0100
@@ -1,3 +1,9 @@
+s390-tools (2.35.0-4) UNRELEASED; urgency=medium
+
+  * Fix FTCBFS: Pass required variables to make. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 15 Jan 2026 07:26:28 +0100
+
 s390-tools (2.35.0-3) unstable; urgency=medium
 
   * QA upload.
diff -Nru s390-tools-2.35.0/debian/rules s390-tools-2.35.0/debian/rules
--- s390-tools-2.35.0/debian/rules      2024-11-25 07:40:09.000000000 +0100
+++ s390-tools-2.35.0/debian/rules      2026-01-15 07:26:28.000000000 +0100
@@ -5,6 +5,14 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
 export HAVE_CARGO=0
 
+include /usr/share/dpkg/architecture.mk
+include /usr/share/dpkg/buildtools.mk
+
+MAKE_VARS := V=1
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+MAKE_VARS += HOST_ARCH=$(DEB_HOST_GNU_CPU) CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- 
PKG_CONFIG=$(PKG_CONFIG)
+endif
+
 %:
        dh $@
 
@@ -13,10 +21,10 @@
        dh_auto_clean
 
 override_dh_auto_build:
-       make V=1
+       make $(MAKE_VARS)
 
 override_dh_auto_install:
-       make install DESTDIR=$(CURDIR)/debian/tmp
+       make install DESTDIR=$(CURDIR)/debian/tmp $(MAKE_VARS)
        dh_install
 
 override_dh_fixperms:

Reply via email to