aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-12-18 17:08:24 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2018-12-18 17:08:51 +0100
commitf336e5946e812cae3b4e35746b5f14a961139c79 (patch)
treedda9fc9cab03204ae7ea36e4c73be55cbec0c9b7
parent50971f52c530b8475141661a7d05e7069608b0a3 (diff)
downloadalpine_aports-f336e5946e812cae3b4e35746b5f14a961139c79.tar.bz2
alpine_aports-f336e5946e812cae3b4e35746b5f14a961139c79.tar.xz
alpine_aports-f336e5946e812cae3b4e35746b5f14a961139c79.zip
main/varnish: upgrade to 6.0.2
fixes #9773
-rw-r--r--main/varnish/APKBUILD10
-rw-r--r--main/varnish/musl-fix-stack-overflow.patch38
2 files changed, 4 insertions, 44 deletions
diff --git a/main/varnish/APKBUILD b/main/varnish/APKBUILD
index 8f2d1fa494..5c04e82f95 100644
--- a/main/varnish/APKBUILD
+++ b/main/varnish/APKBUILD
@@ -2,8 +2,8 @@
2# Contributor: V.Krishn <vkrishn4@gmail.com> 2# Contributor: V.Krishn <vkrishn4@gmail.com>
3# Maintainer: Natanael Copa <ncopa@alpinelinux.org> 3# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
4pkgname=varnish 4pkgname=varnish
5pkgver=6.0.0 5pkgver=6.0.2
6pkgrel=1 6pkgrel=0
7pkgdesc="High-performance HTTP accelerator" 7pkgdesc="High-performance HTTP accelerator"
8url="http://www.varnish-cache.org/" 8url="http://www.varnish-cache.org/"
9arch="all" 9arch="all"
@@ -11,7 +11,7 @@ license="BSD"
11options="!check" # tests fail 11options="!check" # tests fail
12depends="gcc libc-dev libgcc" 12depends="gcc libc-dev libgcc"
13depends_dev= 13depends_dev=
14makedepends="$depends_dev pcre-dev ncurses-dev libedit-dev py-docutils 14makedepends="$depends_dev pcre-dev ncurses-dev libedit-dev py-docutils py-sphinx
15 linux-headers libexecinfo-dev" 15 linux-headers libexecinfo-dev"
16install="$pkgname.pre-install" 16install="$pkgname.pre-install"
17subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-geoip::noarch" 17subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-libs $pkgname-geoip::noarch"
@@ -20,7 +20,6 @@ pkggroups="varnish"
20source="http://varnish-cache.org/_downloads/$pkgname-$pkgver.tgz 20source="http://varnish-cache.org/_downloads/$pkgname-$pkgver.tgz
21 musl-include-vpf.patch 21 musl-include-vpf.patch
22 musl-include-vsb.patch 22 musl-include-vsb.patch
23 musl-fix-stack-overflow.patch
24 23
25 varnishd.initd 24 varnishd.initd
26 varnishd.confd 25 varnishd.confd
@@ -100,10 +99,9 @@ geoip() {
100 "$subpkgdir"/usr/lib/varnish/plugins/maxminddb.vcl 99 "$subpkgdir"/usr/lib/varnish/plugins/maxminddb.vcl
101} 100}
102 101
103sha512sums="39bae462fe40bda9b7c93114ab8256c838a7d67f1a9f7397c37ad090163a33232676120eb7609d0512684a563d8e02c1c2ff5e1b9da0ddedef2250db51c3cc79 varnish-6.0.0.tgz 102sha512sums="4bdd09f640805d061e19c7579b6f6fae908d7d9a21f268d239e38fb815c37f739068f92957ae827dfb0719e328652fb8de778374e757fa87002ceb2af6a21bd5 varnish-6.0.2.tgz
1042123668169b055f2d88f9b5b8e0877ca8b3cbfcd61e03d91fd7d0513b3267e4ef01a4d858cc6a3298cca0a49aaea2f92ff4fd9c0baf52a6c67b452a53f7e54d0 musl-include-vpf.patch 1032123668169b055f2d88f9b5b8e0877ca8b3cbfcd61e03d91fd7d0513b3267e4ef01a4d858cc6a3298cca0a49aaea2f92ff4fd9c0baf52a6c67b452a53f7e54d0 musl-include-vpf.patch
105c51c8964880990c2b01807b2a38d886b146736a918bda9ea2e032c50085bf6745cab3cccb4ee4c561ab936a8b7cfb278cfcb758543ea6c605c15b8973c9f10ce musl-include-vsb.patch 104c51c8964880990c2b01807b2a38d886b146736a918bda9ea2e032c50085bf6745cab3cccb4ee4c561ab936a8b7cfb278cfcb758543ea6c605c15b8973c9f10ce musl-include-vsb.patch
106659d2593ecb98d1abf5cf08a0de7791dab484fc33dac518e154431c0cdbb11c5ff3385465f98fc0a14c3599524d3c7d5211b2ad5bfdeb1d7b83b8e7c625664f2 musl-fix-stack-overflow.patch
1075ac7867e85cbd721f903c524ed4b524423d9dada4acfeefb0e543214a208828df5cc4efe2f012991bea6b38c2b223c24b17d3890ec4ed2c57d2b441b8e5a6900 varnishd.initd 1055ac7867e85cbd721f903c524ed4b524423d9dada4acfeefb0e543214a208828df5cc4efe2f012991bea6b38c2b223c24b17d3890ec4ed2c57d2b441b8e5a6900 varnishd.initd
10898c8901e53f3c6adb908b9eb01fd441ea53f3c54d4a79aecb1fb1eddfa2fc93de3d0de403a4464a9baff15873b3a20623837e3a37cb225e924a329e32b9e37d6 varnishd.confd 10698c8901e53f3c6adb908b9eb01fd441ea53f3c54d4a79aecb1fb1eddfa2fc93de3d0de403a4464a9baff15873b3a20623837e3a37cb225e924a329e32b9e37d6 varnishd.confd
109c67a7898f40849989edcbe74e1a418e196f48e178ca30126bc13db226e4f4c2c2ba74d9d0650ef68ed88732917fc06b80ef1f62c2d9d2c14a89f26fd25aed0f7 varnishlog.initd 107c67a7898f40849989edcbe74e1a418e196f48e178ca30126bc13db226e4f4c2c2ba74d9d0650ef68ed88732917fc06b80ef1f62c2d9d2c14a89f26fd25aed0f7 varnishlog.initd
diff --git a/main/varnish/musl-fix-stack-overflow.patch b/main/varnish/musl-fix-stack-overflow.patch
deleted file mode 100644
index aa83336ad4..0000000000
--- a/main/varnish/musl-fix-stack-overflow.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1diff --git a/bin/varnishd/waiter/cache_waiter_epoll.c b/bin/varnishd/waiter/cache_waiter_epoll.c
2index 9e2e2a3..3b0105a 100644
3--- a/bin/varnishd/waiter/cache_waiter_epoll.c
4+++ b/bin/varnishd/waiter/cache_waiter_epoll.c
5@@ -38,6 +38,7 @@
6 #include <sys/epoll.h>
7
8 #include <errno.h>
9+#include <stdlib.h>
10
11 #include "cache/cache_varnishd.h"
12
13@@ -69,7 +70,7 @@ struct vwe {
14 static void *
15 vwe_thread(void *priv)
16 {
17- struct epoll_event ev[NEEV], *ep;
18+ struct epoll_event *ev, *ep;
19 struct waited *wp;
20 struct waiter *w;
21 double now, then;
22@@ -82,6 +83,8 @@ vwe_thread(void *priv)
23 CHECK_OBJ_NOTNULL(w, WAITER_MAGIC);
24 THR_SetName("cache-epoll");
25 THR_Init();
26+ ev = malloc(sizeof(struct epoll_event) * NEEV);
27+ AN(ev);
28
29 now = VTIM_real();
30 while (1) {
31@@ -146,6 +149,7 @@ vwe_thread(void *priv)
32 if (vwe->nwaited == 0 && vwe->die)
33 break;
34 }
35+ free(ev);
36 closefd(&vwe->pipe[0]);
37 closefd(&vwe->pipe[1]);
38 closefd(&vwe->epfd);