[gentoo-commits] repo/gentoo:master commit in: www-nginx/ngx-lua-module/

2025-11-29 Thread Sam James
commit: 0b0c0ec586e24bdc74551bc9032d155702d7093e
Author: Sam James  gentoo  org>
AuthorDate: Sat Nov 29 15:25:59 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Nov 29 15:25:59 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b0c0ec5

www-nginx/ngx-lua-module: Stabilize 0.10.27 amd64, #966815

Signed-off-by: Sam James  gentoo.org>

 www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild 
b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
index a6ba84c27daa..e5b72c9753a3 100644
--- a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
+++ b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS="~amd64 arm64"
+KEYWORDS="amd64 arm64"
 
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: www-nginx/ngx-lua-module/

2025-11-29 Thread Sam James
commit: d3391b275413f4cdbb580baf0409d4f56b60b5f0
Author: Sam James  gentoo  org>
AuthorDate: Sat Nov 29 15:22:23 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Nov 29 15:22:23 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3391b27

www-nginx/ngx-lua-module: Stabilize 0.10.27 arm64, #966815

Signed-off-by: Sam James  gentoo.org>

 www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild 
b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
index d9b66d6eb2f3..a6ba84c27daa 100644
--- a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
+++ b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="~amd64 arm64"
 
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: www-nginx/ngx-lua-module/

2025-07-05 Thread Sam James
commit: f386c119b210f7fa1a58e6fb05b984a0e3b4c13c
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul  5 08:19:12 2025 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul  5 08:32:16 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f386c119

www-nginx/ngx-lua-module: Keyword 0.10.27 amd64, #959570

Signed-off-by: Sam James  gentoo.org>

 www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild 
b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
index 2359eac20be8..d9b66d6eb2f3 100644
--- a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
+++ b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS="~arm64"
+KEYWORDS="~amd64 ~arm64"
 
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: www-nginx/ngx-lua-module/

2025-07-05 Thread Arthur Zamarin
commit: af4919288f0edfbd12d93286a4a6091fff0c61b9
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jul  5 08:23:53 2025 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jul  5 08:23:53 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af491928

www-nginx/ngx-lua-module: Keyword 0.10.27 arm64, #959570

Signed-off-by: Arthur Zamarin  gentoo.org>

 www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild 
b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
index 9405caea6367..2359eac20be8 100644
--- a/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
+++ b/www-nginx/ngx-lua-module/ngx-lua-module-0.10.27.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="~arm64"
 
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 



[gentoo-commits] repo/gentoo:master commit in: www-nginx/ngx-lua-module/files/, www-nginx/ngx-lua-module/

2025-07-05 Thread Sam James
commit: c9fec840b1850a699d9b1187568b58d1f83dfd79
Author: Zurab Kvachadze  gmail  com>
AuthorDate: Tue Oct  1 00:46:31 2024 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul  5 07:27:01 2025 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9fec840

www-nginx/ngx-lua-module: new package, add 0.10.27

This package requires two environmental variables being set in order to
use Lua: LUAJIT_LIB and LUAJIT_INC. The former is set to /usr/${libdir},
for the latter one, the ebuild uses pkg-config directly to get the
include directory.

Signed-off-by: Zurab Kvachadze  gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/37590
Signed-off-by: Sam James  gentoo.org>

 www-nginx/ngx-lua-module/Manifest  |  1 +
 .../ngx-lua-module-0.10.27-always-define-NDK.patch | 29 +++
 ...dule-0.10.27-do-not-log-non-openresty-lua.patch | 41 +++
 www-nginx/ngx-lua-module/metadata.xml  | 21 
 .../ngx-lua-module/ngx-lua-module-0.10.27.ebuild   | 59 ++
 5 files changed, 151 insertions(+)

diff --git a/www-nginx/ngx-lua-module/Manifest 
b/www-nginx/ngx-lua-module/Manifest
new file mode 100644
index ..245ccaf878bd
--- /dev/null
+++ b/www-nginx/ngx-lua-module/Manifest
@@ -0,0 +1 @@
+DIST ngx-lua-module-0.10.27.tar.gz 758952 BLAKE2B 
3c0a85fac3452a50eb4009405d7a8f76262d3d36c844139ce3eb829eefef098641b161e0ff27487332fa21269667a838bd2d913cea1c4b183cd9cad87ac76783
 SHA512 
ff1f7bb593a91402453709d63c95b304ef14d805f5a7f8e6689e95b93522823b80f76baced70664c9f46e9fc8da3941f153b9cf5d1dfbabfb0ee9d9bcc8151b4

diff --git 
a/www-nginx/ngx-lua-module/files/ngx-lua-module-0.10.27-always-define-NDK.patch 
b/www-nginx/ngx-lua-module/files/ngx-lua-module-0.10.27-always-define-NDK.patch
new file mode 100644
index ..309670bcb3d5
--- /dev/null
+++ 
b/www-nginx/ngx-lua-module/files/ngx-lua-module-0.10.27-always-define-NDK.patch
@@ -0,0 +1,29 @@
+From e156f14b262ec3dce32e87dfeb0dabce4821646c Mon Sep 17 00:00:00 2001
+From: Zurab Kvachadze 
+Date: Sun, 16 Feb 2025 22:51:03 +0100
+Subject: [PATCH] src/ngx_http_lua_common.h: always #define NDK
+
+In Gentoo, NDK is a mandatory dependency. Make life easier for everybody
+and just define the NDK macro.
+
+Signed-off-by: Zurab Kvachadze 
+---
+ src/ngx_http_lua_common.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/ngx_http_lua_common.h b/src/ngx_http_lua_common.h
+index cc2d36a3..42a7df6b 100644
+--- a/src/ngx_http_lua_common.h
 b/src/ngx_http_lua_common.h
+@@ -23,6 +23,8 @@
+ #include 
+ #include 
+ 
++#define NDK 1
++
+ 
+ #if defined(NDK) && NDK
+ #include 
+-- 
+2.45.3
+

diff --git 
a/www-nginx/ngx-lua-module/files/ngx-lua-module-0.10.27-do-not-log-non-openresty-lua.patch
 
b/www-nginx/ngx-lua-module/files/ngx-lua-module-0.10.27-do-not-log-non-openresty-lua.patch
new file mode 100644
index ..98c5967da149
--- /dev/null
+++ 
b/www-nginx/ngx-lua-module/files/ngx-lua-module-0.10.27-do-not-log-non-openresty-lua.patch
@@ -0,0 +1,41 @@
+From 87a7e04982a2d2963b10965304d822554d1ec848 Mon Sep 17 00:00:00 2001
+From: Zurab Kvachadze 
+Date: Tue, 11 Feb 2025 10:57:14 +0100
+Subject: [PATCH] Do not log error if non-OpenResty Lua is used
+
+Users are perfectly capable of reading the recommendation on README and
+deciding themselves which distribution of Lua to use. There is no need
+to scream at the users each time NGINX is started.
+
+Signed-off-by: Zurab Kvachadze 
+---
+ src/ngx_http_lua_module.c | 13 +
+ 1 file changed, 1 insertion(+), 12 deletions(-)
+
+diff --git a/src/ngx_http_lua_module.c b/src/ngx_http_lua_module.c
+index 63367f46..4ddf7b21 100644
+--- a/src/ngx_http_lua_module.c
 b/src/ngx_http_lua_module.c
+@@ -895,18 +895,7 @@ ngx_http_lua_init(ngx_conf_t *cf)
+ if (lmcf->lua == NULL) {
+ dd("initializing lua vm");
+ 
+-#ifndef OPENRESTY_LUAJIT
+-if (ngx_process != NGX_PROCESS_SIGNALLER && !ngx_test_config) {
+-ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
+-  "detected a LuaJIT version which is not OpenResty's"
+-  "; many optimizations will be disabled and "
+-  "performance will be compromised (see "
+-  "https://github.com/openresty/luajit2 for "
+-  "OpenResty's LuaJIT or, even better, consider using 
"
+-  "the OpenResty releases from https://openresty.org/";
+-  "en/download.html)");
+-}
+-#else
++#ifdef OPENRESTY_LUAJIT
+ #   if !defined(HAVE_LUA_RESETTHREAD)
+ ngx_log_error(NGX_LOG_ALERT, cf->log, 0,
+   "detected an old version of OpenResty's LuaJIT missing "
+-- 
+2.45.3
+

diff --git a/www-nginx/ngx-lua-module/metadata.xml 
b/www-nginx/ngx-lua-module/metadata.xml
new file mode 100644
index ..42a518e970f5
--- /dev/null
+++ b/www-nginx/ngx-lua-module/metadata.xml
@@ -0,0 +1,21 @@
+