net-proxy/squid: fix build for GCC 14 (partially); use config cache for libltdl

* Fix build for GCC 14 (missing <algorithm> include for std::find, not upstreamed
  it yet). There's another issue I still need to look at to do with class visibility.

* Use config cache for libltdl which avoids some redundant configure checks.

Closes: https://bugs.gentoo.org/917161
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-11-17 14:54:17 +00:00
parent c5e3335522
commit 031e513506
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
https://bugs.gentoo.org/917161
--- a/src/helper/Reply.cc
+++ b/src/helper/Reply.cc
@@ -17,6 +17,8 @@
#include "rfc1738.h"
#include "SquidString.h"
+#include <algorithm>
+
Helper::Reply::Reply() :
result(Helper::Unknown)
{

View File

@@ -77,6 +77,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-6.2-gentoo.patch
"${FILESDIR}"/${PN}-4.17-use-system-libltdl.patch
"${FILESDIR}"/${PN}-6.4-gcc14-algorithm.patch
)
pkg_pretend() {
@@ -124,6 +125,8 @@ src_prepare() {
src_configure() {
local myeconfargs=(
--cache-file="${S}"/config.cache
--datadir=/usr/share/squid
--libexecdir=/usr/libexec/squid
--localstatedir=/var