Source: snowball Version: 2.1.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability
snowball cannot be cross built from source, because its Build-Depends are not satisfiable. Instead of looking into such a difficult problem, I looked into easily droppable dependencies and noticed that the python module resides in an Arch:all package. The relevant build instruction can easily be conditionalized to an indep build and all of the python dependencies can thus be moved to Build-Depends-Indep. Please consider applying the attached patch. Helmut
diff --minimal -Nru snowball-2.1.0/debian/changelog snowball-2.1.0/debian/changelog --- snowball-2.1.0/debian/changelog 2021-01-25 08:13:13.000000000 +0100 +++ snowball-2.1.0/debian/changelog 2021-03-07 22:37:12.000000000 +0100 @@ -1,3 +1,13 @@ +snowball (2.1.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Reduce Build-Depends: (Closes: #-1) + + Declaratively request dh addon python3. + + Skip python build during arch-only. + + Move python dependencies to Build-Depends-Indep. + + -- Helmut Grohne <hel...@subdivi.de> Sun, 07 Mar 2021 22:37:12 +0100 + snowball (2.1.0-1) unstable; urgency=low [ Stefano Rivera ] diff --minimal -Nru snowball-2.1.0/debian/control snowball-2.1.0/debian/control --- snowball-2.1.0/debian/control 2021-01-25 08:13:13.000000000 +0100 +++ snowball-2.1.0/debian/control 2021-03-07 22:37:09.000000000 +0100 @@ -4,10 +4,11 @@ Maintainer: Stefano Rivera <stefa...@debian.org> Build-Depends: debhelper-compat (= 13), - dh-python, + snowball-data (>= 0+20210120) +Build-Depends-Indep: + dh-sequence-python3, python3-all, python3-setuptools, - snowball-data (>= 0+20210120) Standards-Version: 4.5.1 Homepage: https://snowballstem.org/ Vcs-Git: https://salsa.debian.org/debian/snowball.git diff --minimal -Nru snowball-2.1.0/debian/rules snowball-2.1.0/debian/rules --- snowball-2.1.0/debian/rules 2021-01-25 08:13:13.000000000 +0100 +++ snowball-2.1.0/debian/rules 2021-03-07 22:36:55.000000000 +0100 @@ -3,12 +3,14 @@ include /usr/share/dpkg/pkg-info.mk %: - dh $@ --with python3 + dh $@ override_dh_auto_build: dh_auto_build -- $(shell dpkg-buildflags --export=configure) +ifneq (,$(filter python3-snowballstemmer,$(shell dh_listpackages))) $(MAKE) dist_libstemmer_python dh_auto_build --buildsystem=pybuild -- --dir dist/snowballstemmer-$(DEB_VERSION_UPSTREAM) --name snowballstemmer +endif override_dh_auto_install-indep: dh_auto_install --buildsystem=pybuild -- --dir dist/snowballstemmer-$(DEB_VERSION_UPSTREAM) --name snowballstemmer