Bug#888868: squid3 FTCBFS for 32bit archs on amd64: adds -m64 to CFLAGS via getconf for LFS

2018-06-12 Thread Amos Jeffries
Can you provide the command used to cross-build for replicating this bug?


Amos



Bug#888868: squid3 FTCBFS for 32bit archs on amd64: adds -m64 to CFLAGS via getconf for LFS

2018-01-30 Thread Helmut Grohne
Source: squid3
Version: 3.5.23-5
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

squid3 fails to cross build from source for 32bit architectures when
built on amd64, because getconf yields -m64 for LFS CFLAGS. The key here
is to avoid calling into getconf at all by passing
--with-build-environment=default to configure. After doing so, the build
fails with #853668/#55. Please consider applying the attached patch.

Helmut
diff --minimal -Nru squid3-3.5.23/debian/changelog 
squid3-3.5.23/debian/changelog
--- squid3-3.5.23/debian/changelog  2017-06-03 00:36:55.0 +0200
+++ squid3-3.5.23/debian/changelog  2018-01-30 16:44:35.0 +0100
@@ -1,3 +1,10 @@
+squid3 (3.5.23-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Avoid obtaining build arch specific CFLAGS from getconf. 
(Closes: #-1)
+
+ -- Helmut Grohne   Tue, 30 Jan 2018 16:44:35 +0100
+
 squid3 (3.5.23-5) unstable; urgency=medium
 
   * Reload squid so that it uses modified config, not default one.
diff --minimal -Nru squid3-3.5.23/debian/rules squid3-3.5.23/debian/rules
--- squid3-3.5.23/debian/rules  2017-06-03 00:36:55.0 +0200
+++ squid3-3.5.23/debian/rules  2018-01-30 16:44:35.0 +0100
@@ -46,7 +46,8 @@
--with-pidfile=/var/run/squid.pid \
--with-filedescriptors=65536 \
--with-large-files \
-   --with-default-user=proxy
+   --with-default-user=proxy \
+   --with-build-environment=default
 
 BUILDINFO := $(shell lsb_release -si 2>/dev/null)