diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2016-04-04 00:07:42 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2016-04-04 00:07:42 -0500 |
commit | 7380a0a7582e45160ec1a1f29d6d9ed60da7b91b (patch) | |
tree | c2e495eac2d7c7b81470bdd7bf131a9b2b869d48 /network | |
parent | a60d6cca8dd55484ea26f9ebdfc2325df901c384 (diff) | |
download | slackbuilds-7380a0a7582e45160ec1a1f29d6d9ed60da7b91b.tar.gz |
network/squid: Included upstream patches to 3.4.x branch
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/squid/patches/squid-3.4-13228.patch | 35 | ||||
-rw-r--r-- | network/squid/patches/squid-3.4-13229.patch | 46 | ||||
-rw-r--r-- | network/squid/patches/squid-3.4-13230.patch | 44 | ||||
-rw-r--r-- | network/squid/patches/squid-3.4-13231.patch | 48 | ||||
-rw-r--r-- | network/squid/patches/squid-3.4-13232.patch | 51 | ||||
-rw-r--r-- | network/squid/squid.SlackBuild | 10 |
6 files changed, 233 insertions, 1 deletions
diff --git a/network/squid/patches/squid-3.4-13228.patch b/network/squid/patches/squid-3.4-13228.patch new file mode 100644 index 0000000000..7f7d16f5bd --- /dev/null +++ b/network/squid/patches/squid-3.4-13228.patch @@ -0,0 +1,35 @@ +------------------------------------------------------------ +revno: 13228 +revision-id: squid3@treenet.co.nz-20150828132334-3r7v4kh1lrqprrqg +parent: squid3@treenet.co.nz-20150801072237-5tzh2dczozz1e8sq +fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=3696 +committer: Amos Jeffries <squid3@treenet.co.nz> +branch nick: 3.4 +timestamp: Fri 2015-08-28 06:23:34 -0700 +message: + Bug 3696: crash when client delay pools are activated +------------------------------------------------------------ +# Bazaar merge directive format 2 (Bazaar 0.90) +# revision_id: squid3@treenet.co.nz-20150828132334-3r7v4kh1lrqprrqg +# target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# testament_sha1: d193928c4656282187f2a31bf66d43fd4c247177 +# timestamp: 2015-08-28 13:33:44 +0000 +# source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# base_revision_id: squid3@treenet.co.nz-20150801072237-\ +# 5tzh2dczozz1e8sq +# +# Begin patch +=== modified file 'src/client_side.cc' +--- src/client_side.cc 2014-06-21 04:24:37 +0000 ++++ src/client_side.cc 2015-08-28 13:23:34 +0000 +@@ -3447,7 +3447,8 @@ + + /* pools require explicit 'allow' to assign a client into them */ + if (pools[pool].access) { +- ch.accessList = pools[pool].access; ++ cbdataReferenceDone(ch.accessList); ++ ch.accessList = cbdataReference(pools[pool].access); + allow_t answer = ch.fastCheck(); + if (answer == ACCESS_ALLOWED) { + + diff --git a/network/squid/patches/squid-3.4-13229.patch b/network/squid/patches/squid-3.4-13229.patch new file mode 100644 index 0000000000..3f7cdfd476 --- /dev/null +++ b/network/squid/patches/squid-3.4-13229.patch @@ -0,0 +1,46 @@ +------------------------------------------------------------ +revno: 13229 +revision-id: squid3@treenet.co.nz-20151119051038-vwclso11p68sgvxc +parent: squid3@treenet.co.nz-20150828132334-3r7v4kh1lrqprrqg +committer: Amos Jeffries <squid3@treenet.co.nz> +branch nick: 3.4 +timestamp: Wed 2015-11-18 21:10:38 -0800 +message: + Fix delay_parameters documentation +------------------------------------------------------------ +# Bazaar merge directive format 2 (Bazaar 0.90) +# revision_id: squid3@treenet.co.nz-20151119051038-vwclso11p68sgvxc +# target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# testament_sha1: 2531c5b2bc5fd88d4a875d2d4fa5750f41b0414b +# timestamp: 2015-11-19 05:12:06 +0000 +# source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# base_revision_id: squid3@treenet.co.nz-20150828132334-\ +# 3r7v4kh1lrqprrqg +# +# Begin patch +=== modified file 'src/cf.data.pre' +--- src/cf.data.pre 2015-01-24 05:13:20 +0000 ++++ src/cf.data.pre 2015-11-19 05:10:38 +0000 +@@ -6173,7 +6173,7 @@ + + delay_parameters 1 -1/-1 8000/8000 + +- Note that 8 x 8000 KByte/sec -> 64Kbit/sec. ++ Note that 8 x 8K Byte/sec -> 64K bit/sec. + + Note that the figure -1 is used to represent "unlimited". + +@@ -6188,9 +6188,9 @@ + + delay_parameters 2 32000/32000 8000/8000 600/8000 + +- Note that 8 x 32000 KByte/sec -> 256Kbit/sec. +- 8 x 8000 KByte/sec -> 64Kbit/sec. +- 8 x 600 Byte/sec -> 4800bit/sec. ++ Note that 8 x 32K Byte/sec -> 256K bit/sec. ++ 8 x 8K Byte/sec -> 64K bit/sec. ++ 8 x 600 Byte/sec -> 4800 bit/sec. + + + Finally, for a class 4 delay pool as in the example - each user will + diff --git a/network/squid/patches/squid-3.4-13230.patch b/network/squid/patches/squid-3.4-13230.patch new file mode 100644 index 0000000000..597d135209 --- /dev/null +++ b/network/squid/patches/squid-3.4-13230.patch @@ -0,0 +1,44 @@ +------------------------------------------------------------ +revno: 13230 +revision-id: squid3@treenet.co.nz-20160212045316-zwx4r9we4gf27rx3 +parent: squid3@treenet.co.nz-20151119051038-vwclso11p68sgvxc +fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4431 +author: Marcos Mello <marcosfrm@gmail.com> +committer: Amos Jeffries <squid3@treenet.co.nz> +branch nick: 3.4 +timestamp: Fri 2016-02-12 17:53:16 +1300 +message: + Bug 4431: C code is not compiled with CFLAGS +------------------------------------------------------------ +# Bazaar merge directive format 2 (Bazaar 0.90) +# revision_id: squid3@treenet.co.nz-20160212045316-zwx4r9we4gf27rx3 +# target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# testament_sha1: 53c8d70db04dad826815fb86995cda7e99f1d8e2 +# timestamp: 2016-02-12 05:50:53 +0000 +# source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# base_revision_id: squid3@treenet.co.nz-20151119051038-\ +# vwclso11p68sgvxc +# +# Begin patch +=== modified file 'acinclude/compiler-flags.m4' +--- acinclude/compiler-flags.m4 2015-01-09 10:30:44 +0000 ++++ acinclude/compiler-flags.m4 2016-02-12 04:53:16 +0000 +@@ -36,7 +36,7 @@ + AC_CACHE_CHECK([whether compiler accepts $2],[$1], + [{ + AC_REQUIRE([AC_PROG_CC]) +- SAVED_FLAGS="$CFLAGS" ++ SAVED_CFLAGS="$CFLAGS" + SAVED_CXXFLAGS="$CXXFLAGS" + CFLAGS="$CFLAGS $2" + CXXFLAGS="$CXXFLAGS $2" +@@ -60,7 +60,7 @@ + AC_CACHE_CHECK([whether compiler requires $2],[$1], + [{ + AC_REQUIRE([AC_PROG_CC]) +- SAVED_FLAGS="$CFLAGS" ++ SAVED_CFLAGS="$CFLAGS" + SAVED_CXXFLAGS="$CXXFLAGS" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM($3,$4)],[$1=no],[],[$1=no]) + if test "x$1" != "xno" ; then + diff --git a/network/squid/patches/squid-3.4-13231.patch b/network/squid/patches/squid-3.4-13231.patch new file mode 100644 index 0000000000..045ad7092f --- /dev/null +++ b/network/squid/patches/squid-3.4-13231.patch @@ -0,0 +1,48 @@ +------------------------------------------------------------ +revno: 13231 +revision-id: squid3@treenet.co.nz-20160220150859-3unryicod1rcx9rm +parent: squid3@treenet.co.nz-20160212045316-zwx4r9we4gf27rx3 +fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4323 +author: Francesco Chemolli <kinkie@squid-cache.org> +committer: Amos Jeffries <squid3@treenet.co.nz> +branch nick: 3.4 +timestamp: Sun 2016-02-21 04:08:59 +1300 +message: + Bug 4323: Netfilter broken cross-includes with Linux 4.2 +------------------------------------------------------------ +# Bazaar merge directive format 2 (Bazaar 0.90) +# revision_id: squid3@treenet.co.nz-20160220150859-3unryicod1rcx9rm +# target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# testament_sha1: 10fa174d2821207d0bf89ef3013e8f4c3f99f9e3 +# timestamp: 2016-02-20 15:50:56 +0000 +# source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# base_revision_id: squid3@treenet.co.nz-20160212045316-\ +# zwx4r9we4gf27rx3 +# +# Begin patch +=== modified file 'compat/os/linux.h' +--- compat/os/linux.h 2012-08-28 13:00:30 +0000 ++++ compat/os/linux.h 2016-02-20 15:08:59 +0000 +@@ -22,6 +22,21 @@ + #endif + + /* ++ * Netfilter header madness. (see Bug 4323) ++ * ++ * Netfilter have a history of defining their own versions of network protocol ++ * primitives without sufficient protection against the POSIX defines which are ++ * aways present in Linux. ++ * ++ * netinet/in.h must be included before any other sys header in order to properly ++ * activate include guards in <linux/libc-compat.h> the kernel maintainers added ++ * to workaround it. ++ */ ++#if HAVE_NETINET_IN_H ++#include <netinet/in.h> ++#endif ++ ++/* + * sys/capability.h is only needed in Linux apparently. + * + * HACK: LIBCAP_BROKEN Ugly glue to get around linux header madness colliding with glibc + diff --git a/network/squid/patches/squid-3.4-13232.patch b/network/squid/patches/squid-3.4-13232.patch new file mode 100644 index 0000000000..442c34b16f --- /dev/null +++ b/network/squid/patches/squid-3.4-13232.patch @@ -0,0 +1,51 @@ +------------------------------------------------------------ +revno: 13232 +revision-id: squid3@treenet.co.nz-20160330141410-t6p2dhzr8ri36fap +parent: squid3@treenet.co.nz-20160220150859-3unryicod1rcx9rm +author: Yuriy M. Kaminskiy <yumkam@gmail.com> +committer: Amos Jeffries <squid3@treenet.co.nz> +branch nick: 3.4 +timestamp: Thu 2016-03-31 03:14:10 +1300 +message: + pinger: Fix buffer overflow in Icmp6::Recv +------------------------------------------------------------ +# Bazaar merge directive format 2 (Bazaar 0.90) +# revision_id: squid3@treenet.co.nz-20160330141410-t6p2dhzr8ri36fap +# target_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# testament_sha1: e404755509c03ec58c0c293552a7f2a579810fd3 +# timestamp: 2016-03-30 14:51:02 +0000 +# source_branch: http://bzr.squid-cache.org/bzr/squid3/3.4 +# base_revision_id: squid3@treenet.co.nz-20160220150859-\ +# 3unryicod1rcx9rm +# +# Begin patch +=== modified file 'src/icmp/Icmp6.cc' +--- src/icmp/Icmp6.cc 2014-09-15 05:06:14 +0000 ++++ src/icmp/Icmp6.cc 2016-03-30 14:14:10 +0000 +@@ -277,7 +277,7 @@ + #define ip6_hops // HOPS!!! (can it be true??) + + ip = (struct ip6_hdr *) pkt; +- pkt += sizeof(ip6_hdr); ++ NP: echo size needs to +sizeof(ip6_hdr); + + debugs(42, DBG_CRITICAL, HERE << "ip6_nxt=" << ip->ip6_nxt << + ", ip6_plen=" << ip->ip6_plen << +@@ -288,7 +288,6 @@ + */ + + icmp6header = (struct icmp6_hdr *) pkt; +- pkt += sizeof(icmp6_hdr); + + if (icmp6header->icmp6_type != ICMP6_ECHO_REPLY) { + +@@ -313,7 +312,7 @@ + return; + } + +- echo = (icmpEchoData *) pkt; ++ echo = (icmpEchoData *) (pkt + sizeof(icmp6_hdr)); + + preply.opcode = echo->opcode; + + diff --git a/network/squid/squid.SlackBuild b/network/squid/squid.SlackBuild index 6182991c7f..9a41802cb0 100644 --- a/network/squid/squid.SlackBuild +++ b/network/squid/squid.SlackBuild @@ -25,7 +25,7 @@ PRGNAM=squid VERSION=${VERSION:-3.4.14} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,6 +73,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Include patches intended for inclusion in 3.4.next +# http://www.squid-cache.org/Versions/v3/3.4/changesets/ +patch -p0 < $CWD/patches/squid-3.4-13228.patch +patch -p0 < $CWD/patches/squid-3.4-13229.patch +patch -p0 < $CWD/patches/squid-3.4-13230.patch +patch -p0 < $CWD/patches/squid-3.4-13231.patch +patch -p0 < $CWD/patches/squid-3.4-13232.patch + # last option is needed on current CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ |