Re: git: 62983916db3a - main - www/nginx: Update to 1.23.0

From: Sergey A. Osokin <osa_at_freebsd.org>
Date: Tue, 12 Jul 2022 13:16:35 UTC
Why?  1.23.0 is from the mainline, and www/nginx for stable versions.

On Tue, Jul 12, 2022 at 08:27:15AM +0000, Jochen Neumeister wrote:
> The branch main has been updated by joneum:
> 
> URL: https://cgit.FreeBSD.org/ports/commit/?id=62983916db3a439c2c8cd5ea3445e26e49200507
> 
> commit 62983916db3a439c2c8cd5ea3445e26e49200507
> Author:     Jochen Neumeister <joneum@FreeBSD.org>
> AuthorDate: 2022-07-12 08:25:18 +0000
> Commit:     Jochen Neumeister <joneum@FreeBSD.org>
> CommitDate: 2022-07-12 08:25:18 +0000
> 
>     www/nginx: Update to 1.23.0
>     
>     Changes with nginx 1.23.0                                        21 Jun 2022
>     
>         *) Change in internal API: now header lines are represented as linked
>            lists.
>     
>         *) Change: now nginx combines arbitrary header lines with identical
>            names when sending to FastCGI, SCGI, and uwsgi backends, in the
>            $r->header_in() method of the ngx_http_perl_module, and during lookup
>            of the "$http_...", "$sent_http_...", "$sent_trailer_...",
>            "$upstream_http_...", and "$upstream_trailer_..." variables.
>     
>         *) Bugfix: if there were multiple "Vary" header lines in the backend
>            response, nginx only used the last of them when caching.
>     
>         *) Bugfix: if there were multiple "WWW-Authenticate" header lines in the
>            backend response and errors with code 401 were intercepted or the
>            "auth_request" directive was used, nginx only sent the first of the
>            header lines to the client.
>     
>         *) Change: the logging level of the "application data after close
>            notify" SSL errors has been lowered from "crit" to "info".
>     
>         *) Bugfix: connections might hang if nginx was built on Linux 2.6.17 or
>            newer, but was used on systems without EPOLLRDHUP support, notably
>            with epoll emulation layers; the bug had appeared in 1.17.5.
>            Thanks to Marcus Ball.
>     
>         *) Bugfix: nginx did not cache the response if the "Expires" response
>            header line disabled caching, but following "Cache-Control" header
>            line enabled caching.
>     
>     Fix the build for the 3rd Party Module CLOJURE
>     
>     Sponsored by:   Netzkommune GmbH
> ---
>  www/nginx/Makefile                                 |  4 ++--
>  www/nginx/Makefile.extmod                          |  3 ++-
>  www/nginx/distinfo                                 | 10 +++++-----
>  www/nginx/files/extra-patch-ngx_http_clojure_mem.h | 11 +++++++++++
>  4 files changed, 20 insertions(+), 8 deletions(-)
> 
> diff --git a/www/nginx/Makefile b/www/nginx/Makefile
> index 598634276db3..e622929f7d57 100644
> --- a/www/nginx/Makefile
> +++ b/www/nginx/Makefile
> @@ -1,8 +1,8 @@
>  # Created by: Sergey A. Osokin <osa@FreeBSD.org>
>  
>  PORTNAME=	nginx
> -PORTVERSION=	1.22.0
> -PORTREVISION?=	6
> +PORTVERSION=	1.23.0
> +PORTREVISION?=	0
>  PORTEPOCH=	2
>  CATEGORIES=	www
>  MASTER_SITES=	https://nginx.org/download/ \
> diff --git a/www/nginx/Makefile.extmod b/www/nginx/Makefile.extmod
> index e03071ed5fc0..f68cb18edc23 100644
> --- a/www/nginx/Makefile.extmod
> +++ b/www/nginx/Makefile.extmod
> @@ -19,9 +19,10 @@ CACHE_PURGE_CONFIGURE_ON=	--add-module=${WRKDIR}/ngx_cache_purge-4746629
>  CLOJURE_CATEGORIES+=	java
>  CLOJURE_USE=		JAVA=yes JAVA_OS=native JAVA_VERSION=1.8 \
>  			JAVA_VENDOR=openjdk JAVA_BUILD=yes JAVA_RUN=yes
> -CLOJURE_GH_TUPLE=	nginx-clojure:nginx-clojure:v0.5.2:clojure
> +CLOJURE_GH_TUPLE=	nginx-clojure:nginx-clojure:4347955:clojure
>  CLOJURE_CONFIGURE_ENV=	"JNI_INCS=-I${LOCALBASE}/openjdk8/include -I${LOCALBASE}/openjdk8/include/freebsd"
>  CLOJURE_VARS=		DSO_EXTMODS+=clojure CLOJURE_SUBDIR=/src/c
> +CLOJURE_EXTRA_PATCHES=	${PATCHDIR}/extra-patch-ngx_http_clojure_mem.h
>  
>  CT_IMPLIES=		HTTP_SSL
>  CT_GH_TUPLE=		grahamedgecombe:nginx-ct:v1.3.2:ct
> diff --git a/www/nginx/distinfo b/www/nginx/distinfo
> index 1f316aa5d817..08422342f4c9 100644
> --- a/www/nginx/distinfo
> +++ b/www/nginx/distinfo
> @@ -1,6 +1,6 @@
> -TIMESTAMP = 1655831672
> -SHA256 (nginx-1.22.0.tar.gz) = b33d569a6f11a01433a57ce17e83935e953ad4dc77cdd4d40f896c88ac26eb53
> -SIZE (nginx-1.22.0.tar.gz) = 1073322
> +TIMESTAMP = 1657613920
> +SHA256 (nginx-1.23.0.tar.gz) = 820acaa35b9272be9e9e72f6defa4a5f2921824709f8aa4772c78ab31ed94cd1
> +SIZE (nginx-1.23.0.tar.gz) = 1102940
>  SHA256 (nginx_mogilefs_module-1.0.4.tar.gz) = 7ac230d30907f013dff8d435a118619ea6168aa3714dba62c6962d350c6295ae
>  SIZE (nginx_mogilefs_module-1.0.4.tar.gz) = 11208
>  SHA256 (nginx_mod_h264_streaming-2.2.7.tar.gz) = 6d974ba630cef59de1f60996c66b401264a345d25988a76037c2856cec756c19
> @@ -21,8 +21,8 @@ SHA256 (google-ngx_brotli-9aec15e_GH0.tar.gz) = 0177b1158ff7092b9996346de28a0b29
>  SIZE (google-ngx_brotli-9aec15e_GH0.tar.gz) = 16194
>  SHA256 (nginx-modules-ngx_cache_purge-4746629_GH0.tar.gz) = 68debae40722e15a70f37e10d20a4d3b9a26597457f1dd639e903b62c0a2f689
>  SIZE (nginx-modules-ngx_cache_purge-4746629_GH0.tar.gz) = 17114
> -SHA256 (nginx-clojure-nginx-clojure-v0.5.2_GH0.tar.gz) = cb8bc0bef5d298df55fb625400cb77c4145dc5167483e111ff2b90d4d3396200
> -SIZE (nginx-clojure-nginx-clojure-v0.5.2_GH0.tar.gz) = 755650
> +SHA256 (nginx-clojure-nginx-clojure-4347955_GH0.tar.gz) = 9f0fc3b479936fc5b20101c6d238bff5a6f4a32b28d8ec4a511f902abe2abc1f
> +SIZE (nginx-clojure-nginx-clojure-4347955_GH0.tar.gz) = 756519
>  SHA256 (grahamedgecombe-nginx-ct-v1.3.2_GH0.tar.gz) = b4ceae549b9dbf84b2e511633982e4efeee0388e3b7a038a8bac555008a77b88
>  SIZE (grahamedgecombe-nginx-ct-v1.3.2_GH0.tar.gz) = 6844
>  SHA256 (simpl-ngx_devel_kit-v0.3.1_GH0.tar.gz) = 0e971105e210d272a497567fa2e2c256f4e39b845a5ba80d373e26ba1abfbd85
> diff --git a/www/nginx/files/extra-patch-ngx_http_clojure_mem.h b/www/nginx/files/extra-patch-ngx_http_clojure_mem.h
> new file mode 100644
> index 000000000000..8ccf7ea4ba2b
> --- /dev/null
> +++ b/www/nginx/files/extra-patch-ngx_http_clojure_mem.h
> @@ -0,0 +1,11 @@
> +--- ../nginx-clojure-4347955/src/c/ngx_http_clojure_mem.h.orig	2022-07-11 13:38:32.426478000 -0400
> ++++ ../nginx-clojure-4347955/src/c/ngx_http_clojure_mem.h	2022-07-11 13:38:45.346434000 -0400
> +@@ -421,7 +421,7 @@
> + #define NGX_HTTP_CLOJURE_HEADERSI_PASSWD_IDX  90
> + #define NGX_HTTP_CLOJURE_HEADERSI_PASSWD_OFFSET offsetof(ngx_http_headers_in_t, passwd)
> + #define NGX_HTTP_CLOJURE_HEADERSI_COOKIE_IDX  91
> +-#define NGX_HTTP_CLOJURE_HEADERSI_COOKIE_OFFSET offsetof(ngx_http_headers_in_t, cookies)
> ++#define NGX_HTTP_CLOJURE_HEADERSI_COOKIE_OFFSET offsetof(ngx_http_headers_in_t, cookie)
> + #define NGX_HTTP_CLOJURE_HEADERSI_SERVER_IDX  92
> + #define NGX_HTTP_CLOJURE_HEADERSI_SERVER_OFFSET offsetof(ngx_http_headers_in_t, server)
> + #define NGX_HTTP_CLOJURE_HEADERSI_CONTENT_LENGTH_N_IDX  93