[Debichem-devel] Bug#970872: libpwiz FTCBFS: configures for the build architecture
Helmut Grohne
helmut at subdivi.de
Thu Sep 24 19:56:07 BST 2020
Source: libpwiz
Version: 3.0.18342-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
libpwiz fails to cross build from source, because it does not pass
--host to the configure script. Unfortunately, we cannot easily use
dh_auto_configure, because the script resides in a subdirectory of the
source. Explicitly passing the option makes cross building work anyhow.
Please consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru libpwiz-3.0.18342/debian/changelog libpwiz-3.0.18342/debian/changelog
--- libpwiz-3.0.18342/debian/changelog 2020-06-11 23:29:40.000000000 +0200
+++ libpwiz-3.0.18342/debian/changelog 2020-09-24 20:04:27.000000000 +0200
@@ -1,3 +1,10 @@
+libpwiz (3.0.18342-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Pass --host to configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 24 Sep 2020 20:04:27 +0200
+
libpwiz (3.0.18342-3) unstable; urgency=low
* Add patch by Dimitri John Ledkov <xnox at ubuntu.com> forwarded by Adrian
diff --minimal -Nru libpwiz-3.0.18342/debian/rules libpwiz-3.0.18342/debian/rules
--- libpwiz-3.0.18342/debian/rules 2020-06-11 23:29:40.000000000 +0200
+++ libpwiz-3.0.18342/debian/rules 2020-09-24 20:04:26.000000000 +0200
@@ -3,10 +3,7 @@
export DH_VERBOSE=1
export DH_OPTIONS=-v
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
DEBIAN_DIR = $(CURDIR)/debian
BUILD_DIR = $(DEBIAN_DIR)/build
@@ -111,7 +108,7 @@
# Regenerate the configure script
cd $(BUILD_DIR)/autotools && autoreconf --force -i && cd .. && \
- autotools/configure --prefix=/usr
+ autotools/configure --prefix=/usr --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
configure-stamp: configure
@echo "entering the configure-stamp target"
More information about the Debichem-devel
mailing list