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

ldns fails to cross build from source, because the python build
misdetects the python libraries and attempts to use the build
architecture ones. To fix this, one has to export
_PYTHON_SYSCONFIGDATA_NAME. When building a python extension with
pybuild, this is handled by pybuild, but we don't have automation for
this case. Please consider applying the attached patch.

Helmut
diff --minimal -Nru ldns-1.7.1/debian/changelog ldns-1.7.1/debian/changelog
--- ldns-1.7.1/debian/changelog 2020-06-24 14:08:14.000000000 +0200
+++ ldns-1.7.1/debian/changelog 2021-12-03 16:58:34.000000000 +0100
@@ -1,3 +1,10 @@
+ldns (1.7.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Set _PYTHON_SYSCONFIGDATA_NAME for python builds. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 03 Dec 2021 16:58:34 +0100
+
 ldns (1.7.1-2) unstable; urgency=low
 
   * Team upload.
diff --minimal -Nru ldns-1.7.1/debian/rules ldns-1.7.1/debian/rules
--- ldns-1.7.1/debian/rules     2020-06-03 22:55:03.000000000 +0200
+++ ldns-1.7.1/debian/rules     2021-12-03 16:58:28.000000000 +0100
@@ -21,6 +21,7 @@
 override_dh_auto_configure:
        dh_auto_configure -- $(CONFIGFLAGS) --with-examples --with-drill
        for pyvers in $(PYVERS); do \
+               
_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_ARCH_OS)_$(DEB_HOST_MULTIARCH)
 \
                PYTHON_VERSION=$$pyvers dh_auto_configure -B 
build/python-$$pyvers -- $(CONFIGFLAGS) --with-pyldns; \
                done
 

Reply via email to