Source: unbound
Version: 1.17.0-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

unbound fails to cross build from source, because configure fails to
recognize the python installation. It needs to be told about the
architecture separately via the _PYTHON_SYSCONFIGDATA_NAME environment
variable. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru unbound-1.17.0/debian/changelog 
unbound-1.17.0/debian/changelog
--- unbound-1.17.0/debian/changelog     2022-10-13 13:01:15.000000000 +0200
+++ unbound-1.17.0/debian/changelog     2022-11-18 09:05:21.000000000 +0100
@@ -1,3 +1,10 @@
+unbound (1.17.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: export _PYTHON_SYSCONFIGDATA_NAME. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Fri, 18 Nov 2022 09:05:21 +0100
+
 unbound (1.17.0-1) unstable; urgency=medium
 
   * new upstream release
diff --minimal -Nru unbound-1.17.0/debian/rules unbound-1.17.0/debian/rules
--- unbound-1.17.0/debian/rules 2022-08-12 12:04:20.000000000 +0200
+++ unbound-1.17.0/debian/rules 2022-11-18 09:05:19.000000000 +0100
@@ -37,6 +37,10 @@
 CONFIGURE_ARGS += --enable-tfo-server
 endif
 
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+export _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__$(DEB_HOST_MULTIARCH)
+endif
+
 build-arch build-indep build \
 install-arch install-indep install \
 binary-arch binary-indep binary \

Reply via email to