Saturday, March 29, 2025

www/varnish: update to 7.7.0

ports@,

I'd like to update www/varnish to 7.7.0

It builds and passed trivial testing on -current/amd64.

I also sucefully used to build it my custom vmod.

Ok?

Index: www/varnish/Makefile
===================================================================
RCS file: /home/cvs/ports/www/varnish/Makefile,v
diff -u -p -r1.83 Makefile
--- www/varnish/Makefile 21 Dec 2024 11:39:15 -0000 1.83
+++ www/varnish/Makefile 29 Mar 2025 22:39:36 -0000
@@ -1,6 +1,6 @@
COMMENT = high-performance HTTP accelerator

-DISTNAME = varnish-7.6.1
+DISTNAME = varnish-7.7.0

CATEGORIES = www

Index: www/varnish/distinfo
===================================================================
RCS file: /home/cvs/ports/www/varnish/distinfo,v
diff -u -p -r1.38 distinfo
--- www/varnish/distinfo 8 Nov 2024 20:03:18 -0000 1.38
+++ www/varnish/distinfo 29 Mar 2025 22:40:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (varnish-7.6.1.tgz) = Wpu1oUn/J4Z7VKZs4W0qS5Pt/6VHPLh8nHH3aZz4Rbo=
-SIZE (varnish-7.6.1.tgz) = 4254330
+SHA256 (varnish-7.7.0.tgz) = aZSPIVEfgc548JqXFdmodQ6BEWGb1gVaPIYTFaIQtOQ=
+SIZE (varnish-7.7.0.tgz) = 4318349
Index: www/varnish/patches/patch-bin_varnishd_acceptor_cache_acceptor_h
===================================================================
RCS file: www/varnish/patches/patch-bin_varnishd_acceptor_cache_acceptor_h
diff -N www/varnish/patches/patch-bin_varnishd_acceptor_cache_acceptor_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ www/varnish/patches/patch-bin_varnishd_acceptor_cache_acceptor_h 29 Mar 2025 22:44:28 -0000
@@ -0,0 +1,14 @@
+https://github.com/varnishcache/varnish-cache/pull/4231
+
+Index: bin/varnishd/acceptor/cache_acceptor.h
+--- bin/varnishd/acceptor/cache_acceptor.h.orig
++++ bin/varnishd/acceptor/cache_acceptor.h
+@@ -30,6 +30,8 @@
+ *
+ */
+
++#include <pthread.h>
++
+ /* cache_acceptor.c */
+ struct listen_sock;
+ struct listen_arg;
Index: www/varnish/patches/patch-bin_varnishd_cache_cache_main_c
===================================================================
RCS file: /home/cvs/ports/www/varnish/patches/patch-bin_varnishd_cache_cache_main_c,v
diff -u -p -r1.1 patch-bin_varnishd_cache_cache_main_c
--- www/varnish/patches/patch-bin_varnishd_cache_cache_main_c 8 Nov 2024 20:03:18 -0000 1.1
+++ www/varnish/patches/patch-bin_varnishd_cache_cache_main_c 29 Mar 2025 22:44:40 -0000
@@ -1,22 +1,14 @@
-https://github.com/varnishcache/varnish-cache/pull/4103
+https://github.com/varnishcache/varnish-cache/pull/4231
+
Index: bin/varnishd/cache/cache_main.c
--- bin/varnishd/cache/cache_main.c.orig
+++ bin/varnishd/cache/cache_main.c
-@@ -134,12 +134,14 @@ THR_SetName(const char *name)
- {
-
- PTOK(pthread_setspecific(name_key, name));
--#if defined(__APPLE__)
-+#if defined(HAVE_PTHREAD_SETNAME_NP)
-+# if defined(__APPLE__)
- (void)pthread_setname_np(name);
--#elif defined(__NetBSD__)
-+# elif defined(__NetBSD__)
- (void)pthread_setname_np(pthread_self(), "%s", (char *)(uintptr_t)name);
--#else
-+# else
- (void)pthread_setname_np(pthread_self(), name);
-+# endif
+@@ -163,6 +163,8 @@ THR_SetName(const char *name)
+ # else
+ thr_setname_generic(name);
+ # endif
++#elif defined(HAVE_PTHREAD_SET_NAME_NP)
++ (void)pthread_set_name_np(pthread_self(), name);

No comments:

Post a Comment