Source: gzip
Version: 1.12-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

gzip fails to cross build from source when building for i386 on amd64.
In this scenario, ./configure does not detect a cross build and thinks
we are doing a native build on i386. When it comes to detecting time_t,
it notices that time_t is Y2038-buggy. It then looks into whether files
can represent larger timestamps and concludes that time_t should be
working. This later logic is guarded by a test for cross compiling and
would be skipped if a cross build were to be detected. On real native
i386, the test with a file fails and prevents the failure. The easy
solution here is to explicitly pass the build architecture thus fixing
the cross compilation detection. Please consider applying the attached
patch.

Helmut
diff --minimal -Nru gzip-1.12/debian/changelog gzip-1.12/debian/changelog
--- gzip-1.12/debian/changelog  2022-04-10 04:22:26.000000000 +0200
+++ gzip-1.12/debian/changelog  2022-04-20 06:58:46.000000000 +0200
@@ -1,3 +1,10 @@
+gzip (1.12-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS from 64bit to 32bit: Pass --build to configure (closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 20 Apr 2022 06:58:46 +0200
+
 gzip (1.12-1) sid; urgency=high
 
   * new upstream release
diff --minimal -Nru gzip-1.12/debian/rules gzip-1.12/debian/rules
--- gzip-1.12/debian/rules      2022-04-09 04:15:18.000000000 +0200
+++ gzip-1.12/debian/rules      2022-04-20 06:58:45.000000000 +0200
@@ -53,7 +53,7 @@
                        --disable-silent-rules
 
 ifneq (${DEB_BUILD_ARCH},${DEB_HOST_ARCH})
-CONFIGURE_ARGS+=       --host=${DEB_HOST_GNU_TYPE}
+CONFIGURE_ARGS+=       --build=${DEB_BUILD_GNU_TYPE} 
--host=${DEB_HOST_GNU_TYPE}
 endif
 
 reconf-stamp:

Reply via email to