public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/squid/, net-proxy/squid/files/
Date: Fri, 17 Nov 2023 15:09:00 +0000 (UTC)	[thread overview]
Message-ID: <1700233643.031e513506d3d9b474f8a5df01994578f531f1eb.sam@gentoo> (raw)

commit:     031e513506d3d9b474f8a5df01994578f531f1eb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 17 14:54:17 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 17 15:07:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=031e5135

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 <AT> gentoo.org>

 net-proxy/squid/files/squid-6.4-gcc14-algorithm.patch | 12 ++++++++++++
 net-proxy/squid/squid-6.4.ebuild                      |  3 +++
 2 files changed, 15 insertions(+)

diff --git a/net-proxy/squid/files/squid-6.4-gcc14-algorithm.patch b/net-proxy/squid/files/squid-6.4-gcc14-algorithm.patch
new file mode 100644
index 000000000000..3a509e029eb5
--- /dev/null
+++ b/net-proxy/squid/files/squid-6.4-gcc14-algorithm.patch
@@ -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)
+ {

diff --git a/net-proxy/squid/squid-6.4.ebuild b/net-proxy/squid/squid-6.4.ebuild
index 9b116ab8ff58..0ecdce7be628 100644
--- a/net-proxy/squid/squid-6.4.ebuild
+++ b/net-proxy/squid/squid-6.4.ebuild
@@ -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


             reply	other threads:[~2023-11-17 15:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-17 15:09 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-03 13:26 [gentoo-commits] repo/gentoo:master commit in: net-proxy/squid/, net-proxy/squid/files/ Joonas Niilola
2024-07-03 13:26 Joonas Niilola
2023-01-15  2:08 Sam James
2020-06-29 18:14 Mikle Kolyada
2019-03-04 19:57 Mikle Kolyada
2016-07-12 12:50 Eray Aslan
2016-05-24  6:56 Eray Aslan
2015-09-17  7:53 Eray Aslan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1700233643.031e513506d3d9b474f8a5df01994578f531f1eb.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox