Source: pycurl Version: 7.45.1-3 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability ftcbfs
pycurl cannot be cross built from source, because it requests the host architecture python development tools. It also doesn't instruct setup.py about the host architecture. The attached patch fixes both and makes pycurl cross builadble. Please consider applying it. Helmut
diff --minimal -Nru pycurl-7.45.1/debian/changelog pycurl-7.45.1/debian/changelog --- pycurl-7.45.1/debian/changelog 2022-09-18 22:04:13.000000000 +0200 +++ pycurl-7.45.1/debian/changelog 2022-10-28 14:41:49.000000000 +0200 @@ -1,3 +1,13 @@ +pycurl (7.45.1-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Multiarchify python Build-Depends. + + Export _PYTHON_SYSCONFIGDATA_NAME. + * Declaratively request python3 debhelper addon. + + -- Helmut Grohne <hel...@subdivi.de> Fri, 28 Oct 2022 14:41:49 +0200 + pycurl (7.45.1-3) unstable; urgency=medium * Fix FTBFS with newer setuptools (Closes: #1020052) diff --minimal -Nru pycurl-7.45.1/debian/control pycurl-7.45.1/debian/control --- pycurl-7.45.1/debian/control 2022-08-03 05:01:36.000000000 +0200 +++ pycurl-7.45.1/debian/control 2022-10-28 14:41:19.000000000 +0200 @@ -4,11 +4,12 @@ Maintainer: Debian Python Team <team+pyt...@tracker.debian.org> Uploaders: Scott Talbert <s...@techie.net> Build-Depends: debhelper-compat (= 13), - dh-python, + dh-sequence-python3, libcurl4-gnutls-dev (>= 7.57.0), libgnutls28-dev, + libpython3-all-dev, libssh2-1-dev, - python3-all-dev, + python3-all-dev:any, python3-bottle <!nocheck>, python3-flaky <!nocheck>, python3-pyflakes <!nocheck>, diff --minimal -Nru pycurl-7.45.1/debian/rules pycurl-7.45.1/debian/rules --- pycurl-7.45.1/debian/rules 2022-08-03 04:57:20.000000000 +0200 +++ pycurl-7.45.1/debian/rules 2022-10-28 14:41:49.000000000 +0200 @@ -6,6 +6,8 @@ # This has to be exported to make some magic below work. export DH_OPTIONS +include /usr/share/dpkg/architecture.mk + PY3VERS := $(shell py3versions -vs) CURLVERS := $(strip $(shell /usr/bin/curl-config --version | awk '{print $$2}')) @@ -13,8 +15,12 @@ DO_PACKAGES = $(shell dh_listpackages) +ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) +export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_MULTIARCH) +endif + %: - dh $@ --with python3 + dh $@ override_dh_auto_build: $(MAKE) gen PYTHON=python3