diff options
| -rw-r--r-- | njs.spec | 22 | ||||
| -rw-r--r-- | tests.patch | 15 |
2 files changed, 33 insertions, 4 deletions
@@ -19,20 +19,20 @@ # See https://github.com/nginx/njs/tags %global gh_owner nginx %global project njs -%global gh_commit 927d38d8438e8b3b3db63af4d9f6324210fd5dab +%global gh_commit b9ac319d8bfa696e3943bebbe494e8e723952bdf %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) # See https://github.com/bellard/quickjs/commits/master/ %global qjs_owner bellard %global qjs_project quickjs -%global qjs_commit eb2c89087def1829ed99630cb14b549d7a98408c +%global qjs_commit f1139494d18a2053630c5ed3384a42bb70db3c53 %global qjs_short %(c=%{qjs_commit}; echo ${c:0:7}) -%global qjs_version 2025.10.18 +%global qjs_version 2025.12.22 Name: %{project} Summary: NGINX JavaScript -Version: 0.9.4 +Version: 0.9.5 Release: 1%{?dist} License: BSD-2-Clause AND MIT URL: https://github.com/%{gh_owner}/%{project} @@ -40,6 +40,10 @@ URL: https://github.com/%{gh_owner}/%{project} Source0: https://github.com/%{gh_owner}/%{project}/archive/%{gh_commit}/%{project}-%{version}-%{gh_short}.tar.gz Source1: https://github.com/%{qjs_owner}/%{qjs_project}/archive/%{qjs_commit}/%{qjs_project}-%{qjs_short}.tar.gz +# ignore 1 failed test related to pcre2 version +# https://github.com/nginx/njs/issues/1011 +Patch0: tests.patch + BuildRequires: make BuildRequires: gcc BuildRequires: openssl-devel @@ -87,6 +91,10 @@ mv %{qjs_project}-%{qjs_commit} quickjs %setup -qn %{project}-%{gh_commit} %endif +if pkg-config libpcre2-8 --atleast-version 10.47; then +%patch -P0 -p0 +fi + %build %if %{with quickjs} @@ -160,6 +168,12 @@ make test %{?_smp_mflags} %changelog +* Tue Jan 13 2026 Remi Collet <remi@remirepo.net> - 0.9.5-1 +- update to 0.9.5 +- update bundled quickjs to 2025.12.22 +- open https://github.com/nginx/njs/issues/1011 + fail test with libpcre2 version 10.47 + * Wed Oct 29 2025 Remi Collet <remi@remirepo.net> - 0.9.4-1 - update to 0.9.4 - update bundled quickjs to 2025.10.18 diff --git a/tests.patch b/tests.patch new file mode 100644 index 0000000..6f679d5 --- /dev/null +++ b/tests.patch @@ -0,0 +1,15 @@ +diff -up src/test/njs_unit_test.c.old src/test/njs_unit_test.c +--- src/test/njs_unit_test.c.old 2026-01-13 07:39:11.539231644 +0100 ++++ src/test/njs_unit_test.c 2026-01-13 07:39:28.102421977 +0100 +@@ -11804,11 +11804,6 @@ static njs_unit_test_t njs_test[] = + njs_pcre_var("pcre_compile2(\"(\") failed: missing closing parenthesis at \"\" in 1", + "pcre_compile(\"(\") failed: missing ) in 1")) }, + +- { njs_str("/+/.test('')"), +- njs_str("SyntaxError: " +- njs_pcre_var("pcre_compile2(\"+\") failed: quantifier does not follow a repeatable item at \"+\" in 1", +- "pcre_compile(\"+\") failed: nothing to repeat at \"+\" in 1")) }, +- + { njs_str("/^$/.test('')"), + njs_str("true") }, + |
