squid: bump to release 5.7
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Thu, 9 Feb 2023 18:05:30 +0000 (15:05 -0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 15 Feb 2024 06:48:32 +0000 (07:48 +0100)
This is the latest version and brings compatibility with OpenSSL 3.0.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 78dcc29e47079b6f5aad917dcdf935325b5e4fdf)

net/squid/Makefile
net/squid/patches/001-glibc-compile.patch [deleted file]
net/squid/patches/010-no-buildbxxflags.patch [deleted file]
net/squid/patches/010-no-buildcxxflags.patch [new file with mode: 0644]
net/squid/patches/020-libxml-drop-xmlSetFeature.patch [deleted file]

index f55dcf84106a04cfdc96d2b99e1e1b3e23ce0cae..79299e0b7554a857ab915babb1f2a562b8a4acc6 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=squid
-PKG_VERSION:=4.17
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_VERSION:=5.7
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_SOURCE_URL:=http://www2.pl.squid-cache.org/Versions/v4/ \
-       http://www.squid-cache.org/Versions/v4/
-PKG_HASH:=cb928ac08c7c86b151b1c8f827abe1a84d83181a2a86e0d512286163e1e31418
+PKG_SOURCE_URL:=http://www2.pl.squid-cache.org/Versions/v5/ \
+       http://www.squid-cache.org/Versions/v5/
+PKG_HASH:=6b0753aaba4c9c4efd333e67124caecf7ad6cc2d38581f19d2f0321f5b7ecd81
 
 PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
 PKG_LICENSE:=GPL-2.0-or-later
diff --git a/net/squid/patches/001-glibc-compile.patch b/net/squid/patches/001-glibc-compile.patch
deleted file mode 100644 (file)
index fd11e85..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/src/tools.cc
-+++ b/src/tools.cc
-@@ -582,7 +582,8 @@ enter_suid(void)
-     }
- #else
--    setuid(0);
-+    if (setuid(0) < 0)
-+      debugs(50, 1, "no_suid: setuid (0)");
- #endif
- #if HAVE_PRCTL && defined(PR_SET_DUMPABLE)
-     /* Set Linux DUMPABLE flag */
diff --git a/net/squid/patches/010-no-buildbxxflags.patch b/net/squid/patches/010-no-buildbxxflags.patch
deleted file mode 100644 (file)
index 1632485..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -765,7 +765,7 @@ cache_cf.o: cf_parser.cci
- # cf_gen builds the configuration files.
- cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
--      $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
-+      $(BUILDCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
- # squid.conf.default is built by cf_gen when making cf_parser.cci
- squid.conf.default squid.conf.documented: cf_parser.cci
diff --git a/net/squid/patches/010-no-buildcxxflags.patch b/net/squid/patches/010-no-buildcxxflags.patch
new file mode 100644 (file)
index 0000000..c5a5eb6
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -761,7 +761,7 @@ cache_cf.o: cf_parser.cci
+ # cf_gen builds the configuration files.
+ cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES) cf_gen_defines.cci
+-      $(BUILDCXX) $(BUILDCXXFLAGS) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
++      $(BUILDCXX) -o $@ $(srcdir)/cf_gen.cc -I$(srcdir) -I$(top_builddir)/include/ -I$(top_builddir)/src
+ # squid.conf.default is built by cf_gen when making cf_parser.cci
+ squid.conf.default squid.conf.documented: cf_parser.cci
diff --git a/net/squid/patches/020-libxml-drop-xmlSetFeature.patch b/net/squid/patches/020-libxml-drop-xmlSetFeature.patch
deleted file mode 100644 (file)
index 02be06a..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/esi/Libxml2Parser.cc
-+++ b/src/esi/Libxml2Parser.cc
-@@ -91,7 +91,6 @@ ESILibxml2Parser::ESILibxml2Parser(ESIPa
-     /* TODO: grab the document encoding from the headers */
-     parser = xmlCreatePushParserCtxt(&sax, static_cast<void *>(this), NULL, 0, NULL);
--    xmlSetFeature(parser, "substitute entities", 0);
-     if (entity_doc == NULL)
-         entity_doc = htmlNewDoc(NULL, NULL);