[Pkg-gnupg-maint] Bug#736286: gnupg: Patch to make the gnupg cross-build to Windows more resilient
Stephen Kitt
skitt at debian.org
Tue Jan 21 22:57:53 UTC 2014
Package: gnupg
Version: 1.4.16-1
Severity: wishlist
Tags: patch
Hi,
I figured out the cause of the build failure which led me to file
#730271 - it's the cross-compilation detection. When cross-compiling,
if only --host is specified, autoconf builds a program and attempts to
run it to see if the build is actually a cross-compilation. If
something like binfmt-support allows a Windows binary to run directly
(with help from Wine), autoconf determines that it's not
cross-compiling and the build eventually fails.
The solution is to fully specify the build and host architectures, as
follows:
diff -urN gnupg-1.4.16/debian/rules gnupg-1.4.16.fixed/debian/rules
--- gnupg-1.4.16/debian/rules 2014-01-07 11:23:45.000000000 +0100
+++ gnupg-1.4.16.fixed/debian/rules 2014-01-21 23:35:02.762905060 +0100
@@ -57,7 +57,7 @@
build-win32/config.status:
dh_testdir
(mkdir -p $(@D); cd $(@D); CFLAGS="-g -Os" \
- ../configure $(CONFARGS) --host i686-w64-mingw32 \
+ ../configure $(CONFARGS) --build $(DEB_BUILD_GNU_TYPE) --host i686-w64-mingw32 \
--disable-gnupg-iconv --without-bzip2 --without-readline --without-libcurl --disable-ldap)
##################################### build ##################################
Regards,
Stephen
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gnupg depends on:
ii gpgv 1.4.16-1
ii libbz2-1.0 1.0.6-5
ii libc6 2.17-97
ii libreadline6 6.2+dfsg-0.1
ii libusb-0.1-4 2:0.1.12-23.3
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages gnupg recommends:
ii gnupg-curl 1.4.16-1
ii libldap-2.4-2 2.4.31-1+nmu2+b1
Versions of packages gnupg suggests:
pn gnupg-doc <none>
ii imagemagick 8:6.7.7.10-7
ii libpcsclite1 1.8.10-1
-- no debconf information
More information about the Pkg-gnupg-maint
mailing list