summaryrefslogtreecommitdiff
path: root/www/unit/files/patch-auto_njs
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2025-05-10 20:49:23 -0400
committerSergey A. Osokin <osa@FreeBSD.org>2025-05-10 20:49:23 -0400
commit641386d44e516f2a4bb9f90e48a257fb8500c129 (patch)
treeac2867b017231069c1b419ae3742fdb0a3641e9a /www/unit/files/patch-auto_njs
parentdevel/luv: Update to 1.51.0-0 (diff)
*/*: update NGINX JavaScript: 0.8.10 -> 0.9.0 (+)
The patches applied to the www/unit are based on https://github.com/nginx/unit/pull/1611/ Thanks to: Andrew Clayton <a.clayton@nginx.com> <ChangeLog> Core: *) Feature: refactored working with built-in strings, symbols and small integers. Performance improvements (arewefastyet/benchmarks/v8-v7 benchmark): Richards: +57% (631 → 989) Crypto: +7% (1445 → 1551) RayTrace: +37% (562 → 772) NavierStokes: +20% (2062 → 2465) Overall score: +29% (1014 → 1307) *) Bugfix: fixed regexp undefined value of captured group. *) Bugfix: fixed GCC 15 build with -Wunterminated-string-initialization. </ChangeLog>
Diffstat (limited to 'www/unit/files/patch-auto_njs')
-rw-r--r--www/unit/files/patch-auto_njs22
1 files changed, 22 insertions, 0 deletions
diff --git a/www/unit/files/patch-auto_njs b/www/unit/files/patch-auto_njs
new file mode 100644
index 000000000000..a4cbc6ec8d3c
--- /dev/null
+++ b/www/unit/files/patch-auto_njs
@@ -0,0 +1,22 @@
+--- auto/njs.orig 2025-02-27 22:02:21 UTC
++++ auto/njs
+@@ -25,8 +25,8 @@ nxt_feature_test="#include <njs.h>
+ nxt_feature_libs="$NXT_NJS_LIBS $NXT_NJS_AUX_LIBS"
+ nxt_feature_test="#include <njs.h>
+
+- #if NJS_VERSION_NUMBER < 0x000803
+- # error njs < 0.8.3 is not supported.
++ #if NJS_VERSION_NUMBER < 0x000900
++ # error njs < 0.9.0 is not supported.
+ #endif
+
+ int main(void) {
+@@ -44,7 +44,7 @@ if [ $nxt_found = no ]; then
+
+ if [ $nxt_found = no ]; then
+ $echo
+- $echo $0: error: no njs library \>= 0.8.3 found.
++ $echo $0: error: no njs library \>= 0.9.0 found.
+ $echo
+ exit 1;
+ fi