Source: binutils-mingw-w64
Version: 8.5
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

binutils-mingw-w64 fails to cross build from source because it confuses
build architecture and host architecture in the ./configure invocation.
Please refer to man dpkg-architecture for a definition of these terms.
In the mean time, please consider applying the attached patch.

Helmut
diff --minimal -Nru binutils-mingw-w64-8.5/debian/changelog 
binutils-mingw-w64-8.5+nmu1/debian/changelog
--- binutils-mingw-w64-8.5/debian/changelog     2019-10-10 13:59:05.000000000 
+0200
+++ binutils-mingw-w64-8.5+nmu1/debian/changelog        2019-10-24 
06:03:50.000000000 +0200
@@ -1,3 +1,10 @@
+binutils-mingw-w64 (8.5+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Fix build/host confusion. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 24 Oct 2019 06:03:50 +0200
+
 binutils-mingw-w64 (8.5) unstable; urgency=medium
 
   * Correctly disable silent rules.
diff --minimal -Nru binutils-mingw-w64-8.5/debian/rules 
binutils-mingw-w64-8.5+nmu1/debian/rules
--- binutils-mingw-w64-8.5/debian/rules 2019-08-20 13:43:41.000000000 +0200
+++ binutils-mingw-w64-8.5+nmu1/debian/rules    2019-10-24 06:03:49.000000000 
+0200
@@ -77,7 +77,7 @@
 override_dh_auto_configure:
        set -e; \
        for target in $(targets); do \
-               mkdir -p $(build_dir)/$$target && cd $(build_dir)/$$target && 
$(upstream_dir)/configure --build=$(DEB_HOST_GNU_TYPE) --prefix=/usr 
--disable-silent-rules --libdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) 
--libexecdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) --disable-maintainer-mode 
--disable-dependency-tracking --disable-multilib --enable-lto --enable-plugins 
--enable-deterministic-archives --with-system-zlib --target=$$target 
--disable-werror; \
+               mkdir -p $(build_dir)/$$target && cd $(build_dir)/$$target && 
$(upstream_dir)/configure --build=$(DEB_BUILD_GNU_TYPE) 
--host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --disable-silent-rules 
--libdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) 
--libexecdir=\${prefix}/lib/$(DEB_HOST_MULTIARCH) --disable-maintainer-mode 
--disable-dependency-tracking --disable-multilib --enable-lto --enable-plugins 
--enable-deterministic-archives --with-system-zlib --target=$$target 
--disable-werror; \
        done
 
 override_dh_auto_build-arch:

Reply via email to