Source: kew
Version: 3.4.1+ds-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

kew fails to cross build from source, because the upstream Makefile uses 
uname to determine the architecture and enables e.g. -fcf-protection on 
amd64. That doesn't work well when cross building. I propose forcing the 
ARCH variable. Please consider applying the attached patch.

Helmut
diff -Nru kew-3.4.1+ds/debian/changelog kew-3.4.1+ds/debian/changelog
--- kew-3.4.1+ds/debian/changelog       2025-09-08 20:19:16.000000000 +0200
+++ kew-3.4.1+ds/debian/changelog       2025-09-13 22:47:21.000000000 +0200
@@ -1,3 +1,10 @@
+kew (3.4.1+ds-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Correctly detect the architecture. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 13 Sep 2025 22:47:21 +0200
+
 kew (3.4.1+ds-1) unstable; urgency=medium
 
   * New upstream release
diff -Nru kew-3.4.1+ds/debian/rules kew-3.4.1+ds/debian/rules
--- kew-3.4.1+ds/debian/rules   2025-08-17 18:15:43.000000000 +0200
+++ kew-3.4.1+ds/debian/rules   2025-09-13 22:47:13.000000000 +0200
@@ -3,5 +3,12 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export DEBUG=1
 
+include /usr/share/dpkg/architecture.mk
+
+ARCH_MAP_i686 = i386
+
 %:
        dh $@
+
+override_dh_auto_build:
+       dh_auto_build -- ARCH=$(or 
$(ARCH_MAP_$(DEB_HOST_GNU_CPU)),$(DEB_HOST_GNU_CPU))

Reply via email to