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

snowball fails to cross build from source, because it fails running the
built snowball compiler. The compiler is not installed anywhere and
produces source code as output. It should be built for the build
architecture rather than the host architecture. I'm attaching a patch
for your convenience.

Helmut
diff --minimal -Nru snowball-2.2.0/debian/changelog 
snowball-2.2.0/debian/changelog
--- snowball-2.2.0/debian/changelog     2022-10-18 18:07:33.000000000 +0200
+++ snowball-2.2.0/debian/changelog     2023-04-12 10:07:12.000000000 +0200
@@ -1,3 +1,11 @@
+snowball (2.2.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Build snowball compiler for the build architecture. (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 12 Apr 2023 10:07:12 +0200
+
 snowball (2.2.0-2) unstable; urgency=medium
 
   * Bump Standards-Version to 4.6.1, no changes needed.
diff --minimal -Nru snowball-2.2.0/debian/rules snowball-2.2.0/debian/rules
--- snowball-2.2.0/debian/rules 2022-10-18 18:07:33.000000000 +0200
+++ snowball-2.2.0/debian/rules 2023-04-12 10:07:12.000000000 +0200
@@ -1,11 +1,13 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
 
 %:
        dh $@
 
 override_dh_auto_build:
+       dpkg-architecture -a$(DEB_BUILD_ARCH) -f -c dh_auto_build -- snowball
        dh_auto_build -- $(shell dpkg-buildflags --export=configure)
 ifneq (,$(filter python3-snowballstemmer,$(shell dh_listpackages)))
        $(MAKE) dist_libstemmer_python

Reply via email to