Source: libpwquality Version: 1.4.0-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
libpwquality fails to cross build from source. Its Build-Depends ask for python-all-dev, but that's a host architecture python. It wants a build architecture python plus host architecture development headers. In general, we typically replace python(.*)-dev with "libpython\1-dev, python\1-dev:any". Then setup.py uses the build architecture compiler. The method to tell python to cross build is prepending a host specific path to PYTHONPATH. The attached patch makes libpwquality cross build successfully. Please consider applying it. Helmut
diff --minimal -Nru libpwquality-1.4.0/debian/changelog libpwquality-1.4.0/debian/changelog --- libpwquality-1.4.0/debian/changelog 2017-12-20 02:54:12.000000000 +0100 +++ libpwquality-1.4.0/debian/changelog 2018-11-07 15:39:04.000000000 +0100 @@ -1,3 +1,12 @@ +libpwquality (1.4.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Transform Build-Depends. + + Export PYTHONPATH for python2.7. + + -- Helmut Grohne <hel...@subdivi.de> Wed, 07 Nov 2018 15:39:04 +0100 + libpwquality (1.4.0-2) unstable; urgency=medium * Update Vcs fields for conversion to git diff --minimal -Nru libpwquality-1.4.0/debian/control libpwquality-1.4.0/debian/control --- libpwquality-1.4.0/debian/control 2017-12-20 02:54:12.000000000 +0100 +++ libpwquality-1.4.0/debian/control 2018-11-07 15:39:02.000000000 +0100 @@ -11,7 +11,8 @@ dh-python, libcrack2-dev, libpam0g-dev, - python-all-dev (>= 2.6.6-3~), + libpython-all-dev (>= 2.6.6-3~), + python-all-dev:any (>= 2.6.6-3~), gnome-pkg-tools Homepage: https://github.com/libpwquality/libpwquality Standards-Version: 4.1.2 diff --minimal -Nru libpwquality-1.4.0/debian/rules libpwquality-1.4.0/debian/rules --- libpwquality-1.4.0/debian/rules 2017-12-20 02:54:12.000000000 +0100 +++ libpwquality-1.4.0/debian/rules 2018-11-07 15:39:04.000000000 +0100 @@ -1,4 +1,5 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk TARBALL_EXT = tar.bz2 @@ -8,6 +9,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +export PYTHONPATH:=/usr/lib/python2.7/plat-$(DEB_HOST_MULTIARCH)$(if $(PYTHONPATH),:$(PYTHONPATH)) %: dh $@ --with python2,gnome