From: ardadem <ardadem@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] nginx: update to 1.20.1.
Date: Tue, 20 Jul 2021 21:15:03 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32070@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1725 bytes --]
There is a new pull request by ardadem against master on the void-packages repository
https://github.com/ardadem/void-packages pr-nginx-120
https://github.com/void-linux/void-packages/pull/32070
[WIP] nginx: update to 1.20.1.
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [X] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
# TODO:
- [ ] missing checkdepends
- [ ] rebase aarch patch if it's outdated
- [ ] build for x86_64, musl and aarch64-cross
A patch file from https://github.com/void-linux/void-packages/pull/32070.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pr-nginx-120-32070.patch --]
[-- Type: text/x-diff, Size: 3320 bytes --]
From b44a8335257356faf981b9838e0828678cec5e2f Mon Sep 17 00:00:00 2001
From: Arda Demir <ddmirarda@gmail.com>
Date: Tue, 20 Jul 2021 22:08:09 +0300
Subject: [PATCH] nginx: update to 1.20.1.
---
.../fix-libressl-stapling-issues.patch | 27 -------------------
srcpkgs/nginx/template | 18 +++++++++----
2 files changed, 13 insertions(+), 32 deletions(-)
delete mode 100644 srcpkgs/nginx/patches/fix-libressl-stapling-issues.patch
diff --git a/srcpkgs/nginx/patches/fix-libressl-stapling-issues.patch b/srcpkgs/nginx/patches/fix-libressl-stapling-issues.patch
deleted file mode 100644
index 4bb73f5ebb26..000000000000
--- a/srcpkgs/nginx/patches/fix-libressl-stapling-issues.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237757#c5
---- a/src/event/ngx_event_openssl_stapling.c.org 2019-05-12 23:56:58.526833000 +0200
-+++ b/src/event/ngx_event_openssl_stapling.c 2019-05-13 01:31:53.737800000 +0200
-@@ -298,7 +298,10 @@
- SSL_CTX_select_current_cert(ssl->ctx, cert);
- #endif
-
--#ifdef SSL_CTRL_GET_EXTRA_CHAIN_CERTS
-+#ifdef SSL_CTX_get0_chain_certs
-+ /* OpenSSL 1.0.2+ */
-+ SSL_CTX_get0_chain_certs(ssl->ctx, &chain);
-+#elif SSL_CTRL_GET_EXTRA_CHAIN_CERTS
- /* OpenSSL 1.0.1+ */
- SSL_CTX_get_extra_chain_certs(ssl->ctx, &chain);
- #else
-@@ -655,7 +658,10 @@
- SSL_CTX_select_current_cert(staple->ssl_ctx, ctx->cert);
- #endif
-
--#ifdef SSL_CTRL_GET_EXTRA_CHAIN_CERTS
-+#ifdef SSL_CTX_get0_chain_certs
-+ /* OpenSSL 1.0.2+ */
-+ SSL_CTX_get0_chain_certs(staple->ssl_ctx, &chain);
-+#elif SSL_CTRL_GET_EXTRA_CHAIN_CERTS
- /* OpenSSL 1.0.1+ */
- SSL_CTX_get_extra_chain_certs(staple->ssl_ctx, &chain);
- #else
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index cd0b19da95c6..fdd7905367d0 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -1,16 +1,20 @@
# Template file for 'nginx'
pkgname=nginx
-version=1.18.0
-revision=5
+version=1.20.1
+revision=1
+_tests_commit=feb754918372
build_style=gnu-makefile
hostmakedepends="openssl-devel pcre-devel $(vopt_if geoip geoip-devel)"
makedepends="${hostmakedepends}"
+checkdepends="perl perl-IO-Socket-SSL which"
short_desc="High performance web and reverse proxy server"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://nginx.org"
-distfiles="https://nginx.org/download/nginx-${version}.tar.gz"
-checksum=4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+distfiles="https://nginx.org/download/nginx-${version}.tar.gz
+ https://hg.nginx.org/nginx-tests/archive/${_tests_commit}.tar.gz"
+checksum="e462e11533d5c30baa05df7652160ff5979591d291736cfa5edb9fd2edb48c49
+ 6166ed3a9202ad4065a83fa5c8f3a39d71bba9aa983b00652b7b1332291e3355"
# NOTE:
# On update, the pregenerated header file for ARM may need synchronization.
@@ -93,8 +97,12 @@ pre_build() {
sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
}
+do_check() {
+ TEST_NGINX_BINARY="${wrksrc}/objs/nginx" prove "${XBPS_BUILDDIR}/${pkgname}-tests-${_tests_commit}"
+}
+
post_install() {
- sed -e 's|\<user\s\+\w\+;|user html;|g' \
+ sed -e 's|\<user\s\+\w\+;|user http;|g' \
-e '44s|html|/usr/share/nginx/html|' \
-e '54s|html|/usr/share/nginx/html|' \
-i "$DESTDIR/etc/nginx/nginx.conf"
next reply other threads:[~2021-07-20 19:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-20 19:15 ardadem [this message]
2021-07-21 7:52 ` [PR PATCH] [Updated] " ardadem
2021-08-14 11:06 ` [PR REVIEW] " paper42
2021-08-14 11:20 ` ardadem
2021-08-14 11:47 ` Chocimier
2021-08-14 12:25 ` [PR PATCH] [Updated] " ardadem
2021-08-14 12:34 ` [PR REVIEW] " ardadem
2021-08-14 12:34 ` ardadem
2021-08-14 12:50 ` ardadem
2021-08-14 12:53 ` Chocimier
2021-08-15 14:26 ` [PR PATCH] [Updated] " ardadem
2021-08-15 14:30 ` ardadem
2021-08-15 14:33 ` ardadem
2021-08-15 14:39 ` ardadem
2021-12-11 1:10 ` [PR PATCH] [Closed]: " Duncaen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32070@inbox.vuxu.org \
--to=ardadem@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).