X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx7.valuehost.ru (mx7.valuehost.ru [217.112.42.214]) by lists.alpinelinux.org (Postfix) with ESMTP id 0018A5C6634 for ; Mon, 26 Nov 2018 22:55:21 +0000 (GMT) Received: from mx7.valuehost.ru (unknown [127.0.0.255]) by mx7.valuehost.ru (Postfix) with ESMTP id 3BCB764017 for ; Tue, 27 Nov 2018 01:55:21 +0300 (MSK) From: alpine-mips-patches Date: Mon, 26 Nov 2018 22:05:43 +0000 Subject: [alpine-aports] [PATCH] main/squid: fix build on mips{el} (-latomic) To: alpine-aports@lists.alpinelinux.org Message-Id: <20181126225521.3BCB764017@mx7.valuehost.ru> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: While squid uses the proper autoconf logic to check if the -latomic is required for 64-bit atomics, its conftest.cpp fails to compile without -fpermissive thus yielding wrong result on 32-bit MIPS (which, until R6, lacks 64-bit atomics). Do not bother with configure{.ac} patches (too bulky), do not add -fpermissive to CXXFLAGS just to fix the conftest.cpp compilation (may affect too much) but simply pass -latomic preemptibly on mips{el}. As usual (no previous mips* apks exist, other architectures are unaffected), keep pkgrel intact. This commit should be removed when (if) upstream (or, really, autoconf) fixes the problem. --- main/squid/APKBUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/main/squid/APKBUILD b/main/squid/APKBUILD index b7af679439..e4af2bde22 100644 --- a/main/squid/APKBUILD +++ b/main/squid/APKBUILD @@ -36,6 +36,7 @@ options="!check" # does not work. Error message is about "applet not found", so build() { cd "$builddir" + case "$CARCH" in mips|mipsel) export ac_cv_search___atomic_load_8=-latomic ;; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ -- 2.19.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---