From: Zurab Kvachadze <zurabid2016@gmail.com>
To: gentoo-dev@lists.gentoo.org
Cc: Zurab Kvachadze <zurabid2016@gmail.com>
Subject: [gentoo-dev] [PATCH v4 30/44] dev-lua/lua-resty-string: new package, add 0.16
Date: Thu, 3 Jul 2025 00:06:50 +0200 [thread overview]
Message-ID: <20250702220705.4649-31-zurabid2016@gmail.com> (raw)
In-Reply-To: <20250702220705.4649-1-zurabid2016@gmail.com>
lua-resty-string[1] is a Lua module for ngx-lua-module NGINX module
providing "string utilities and common hash functions for ngx_lua and
LuaJIT".
[1]: https://github.com/openresty/lua-resty-string
Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
---
dev-lua/lua-resty-string/Manifest | 1 +
...tring-0.16-explicitly-load-libcrypto.patch | 73 +++++++++++++++++++
.../lua-resty-string-0.16.ebuild} | 15 +++-
.../lua-resty-string}/metadata.xml | 3 +-
4 files changed, 87 insertions(+), 5 deletions(-)
create mode 100644 dev-lua/lua-resty-string/Manifest
create mode 100644 dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch
copy dev-lua/{lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild => lua-resty-string/lua-resty-string-0.16.ebuild} (62%)
copy {app-pda/usbmuxd => dev-lua/lua-resty-string}/metadata.xml (75%)
diff --git a/dev-lua/lua-resty-string/Manifest b/dev-lua/lua-resty-string/Manifest
new file mode 100644
index 000000000000..dece9c7070ec
--- /dev/null
+++ b/dev-lua/lua-resty-string/Manifest
@@ -0,0 +1 @@
+DIST lua-resty-string-0.16.tar.gz 13078 BLAKE2B 9c0903da36f6309fed47c9f184510c53877d35c86a8b6ba91e008c5010a8b65adec70b7e6911e51cae1121c5c2c64638b3c41117ae4b7949613766d5403fda31 SHA512 dff61ebfe42ea055c2d20ab8d54a53a88d67b40dfb87bb97aa91e857a8f95884c2444d50942a6b7e580f503cc98467799b421dc659dc5d1d41c64fb30d303746
diff --git a/dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch b/dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch
new file mode 100644
index 000000000000..63712785d87b
--- /dev/null
+++ b/dev-lua/lua-resty-string/files/lua-resty-string-0.16-explicitly-load-libcrypto.patch
@@ -0,0 +1,73 @@
+From 73c6a2fbb376ee6550b15e2c6487c86c27ed3a71 Mon Sep 17 00:00:00 2001
+From: Zurab Kvachadze <zurabid2016@gmail.com>
+Date: Fri, 14 Mar 2025 16:49:04 +0100
+Subject: [PATCH] lib/resty: Explicitly load libcrypto in all crypto-exporting
+ FFI modules
+
+Lua modules in lib/resty provide FFI wrappers for cryptographic OpenSSL
+functions without explicitly loading libcrypto itself. This commit makes
+the modules load the library.
+
+Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com>
+---
+ lib/resty/aes.lua | 2 ++
+ lib/resty/md5.lua | 2 ++
+ lib/resty/random.lua | 2 ++
+ lib/resty/sha.lua | 2 ++
+ 4 files changed, 8 insertions(+)
+
+diff --git a/lib/resty/aes.lua b/lib/resty/aes.lua
+index 377476f..8a9f9a1 100644
+--- a/lib/resty/aes.lua
++++ b/lib/resty/aes.lua
+@@ -11,6 +11,8 @@ local C = ffi.C
+ local setmetatable = setmetatable
+ --local error = error
+ local type = type
++-- Load libcrypto into global namespace.
++_ = ffi.load("crypto", true)
+
+
+ local _M = { _VERSION = '0.16' }
+diff --git a/lib/resty/md5.lua b/lib/resty/md5.lua
+index 66b3b3e..09ce8c8 100644
+--- a/lib/resty/md5.lua
++++ b/lib/resty/md5.lua
+@@ -7,6 +7,8 @@ local ffi_str = ffi.string
+ local C = ffi.C
+ local setmetatable = setmetatable
+ --local error = error
++-- Load libcrypto into global namespace.
++_ = ffi.load("crypto", true)
+
+
+ local _M = { _VERSION = '0.16' }
+diff --git a/lib/resty/random.lua b/lib/resty/random.lua
+index 153b1f3..673bf40 100644
+--- a/lib/resty/random.lua
++++ b/lib/resty/random.lua
+@@ -7,6 +7,8 @@ local ffi_str = ffi.string
+ local C = ffi.C
+ --local setmetatable = setmetatable
+ --local error = error
++-- Load libcrypto into global namespace.
++_ = ffi.load("crypto", true)
+
+
+ local _M = { _VERSION = '0.16' }
+diff --git a/lib/resty/sha.lua b/lib/resty/sha.lua
+index ce4e50a..b631b1f 100644
+--- a/lib/resty/sha.lua
++++ b/lib/resty/sha.lua
+@@ -2,6 +2,8 @@
+
+
+ local ffi = require "ffi"
++-- Load libcrypto into global namespace.
++_ = ffi.load("crypto", true)
+
+
+ local _M = { _VERSION = '0.16' }
+--
+2.45.3
+
diff --git a/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild b/dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild
similarity index 62%
copy from dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild
copy to dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild
index f85dbf3f9a66..e960aef0e7a6 100644
--- a/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild
+++ b/dev-lua/lua-resty-string/lua-resty-string-0.16.ebuild
@@ -7,10 +7,10 @@ EAPI=8
LUA_COMPAT=( luajit )
inherit lua-single
-DESCRIPTION="Lua-land LRU Cache based on LuaJIT FFI"
-HOMEPAGE="https://github.com/openresty/lua-resty-lrucache"
+DESCRIPTION="String utilities and common hash functions for the ngx-lua-module NGINX module"
+HOMEPAGE="https://github.com/openresty/lua-resty-string"
SRC_URI="
- https://github.com/openresty/lua-resty-lrucache/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/openresty/lua-resty-string/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"
LICENSE="BSD-2"
@@ -22,9 +22,16 @@ RESTRICT="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
BDEPEND="virtual/pkgconfig"
-DEPEND="${LUA_DEPS}"
+DEPEND="
+ ${LUA_DEPS}
+ dev-libs/openssl:=
+"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}/${PN}-0.16-explicitly-load-libcrypto.patch"
+)
+
src_configure() {
# The directory where to Lua files are to be installed, used by the build
# system.
diff --git a/app-pda/usbmuxd/metadata.xml b/dev-lua/lua-resty-string/metadata.xml
similarity index 75%
copy from app-pda/usbmuxd/metadata.xml
copy to dev-lua/lua-resty-string/metadata.xml
index d8e789b30263..a65b3294ea75 100644
--- a/app-pda/usbmuxd/metadata.xml
+++ b/dev-lua/lua-resty-string/metadata.xml
@@ -10,6 +10,7 @@
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
- <remote-id type="github">libimobiledevice/usbmuxd</remote-id>
+ <bugs-to>https://github.com/openresty/lua-resty-string/issues</bugs-to>
+ <remote-id type="github">openresty/lua-resty-string</remote-id>
</upstream>
</pkgmetadata>
--
2.49.0
next prev parent reply other threads:[~2025-07-02 22:35 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-02 22:06 [gentoo-dev] [PATCH v4 00/44] Rework NGINX packaging in Gentoo by introducing nginx{,-module}.eclass Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 01/44] nginx.eclass: Add new eclass for building the NGINX server Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 02/44] dev-perl/Test-Nginx: new package, add 0.31 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 03/44] nginx-module.eclass: Add new eclass for building NGINX external modules Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 04/44] profiles/arch/powerpc/ppc64: mask tests for www-servers/nginx Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 05/44] profiles/arch/riscv: " Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 06/44] www-servers/nginx: add myself as a proxy maintainer; update metadata.xml Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 07/44] www-servers/nginx: add nginx.tmpfiles for managing /var/tmp/nginx Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 08/44] www-servers/nginx: add nginx-r5.initd Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 09/44] www-servers/nginx: add nginx-r1.confd Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 10/44] www-servers/nginx: add nginx-r2.service Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 11/44] www-servers/nginx: add nginx-r2.logrotate Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 12/44] www-servers/nginx: add nginx-r4.conf Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 13/44] profiles/desc: reword and update nginx_modules_http.desc Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 14/44] profiles/desc: reword and update nginx_modules_mail.desc Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 15/44] profiles/desc: reword and update nginx_modules_stream.desc Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 16/44] profiles/categories: Add www-nginx category for external NGINX modules Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 17/44] app-metrics/nginx-lua-prometheus: revbump to r101, update EAPI 7 -> 8, remove r100 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 18/44] www-servers/nginx: add 1.29.0, use nginx.eclass Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 19/44] www-servers/nginx: add 9999 live version, " Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 20/44] www-nginx/ngx_devel_kit: new package, add 0.3.4 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 21/44] www-nginx/ngx-echo: new package, add 0.63 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 22/44] www-nginx/ngx-encrypted-session: new package, add 0.09 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 23/44] www-nginx/ngx-set-misc: new package, add 0.33 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 24/44] www-nginx/ngx-brotli: new package, add 20231109 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 25/44] www-nginx/ngx-headers-more: new package, add 0.37 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 26/44] www-nginx/ngx-upload-progress: new package, add 0.9.3 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 27/44] dev-lua/lua-resty-core: new package, add 0.1.30 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 28/44] dev-lua/lua-resty-lrucache: new package, add 0.15 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 29/44] www-nginx/ngx-lua-module: new package, add 0.10.27 Zurab Kvachadze
2025-07-02 22:06 ` Zurab Kvachadze [this message]
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 31/44] dev-lua/lua-resty-mysql: new package, add 0.27 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 32/44] dev-lua/lua-resty-memcached: new package, add 0.17 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 33/44] www-nginx/ngx-xss: new package, add 0.06 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 34/44] www-nginx/ngx-eval: new package, add 0_p20240817 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 35/44] www-nginx/ngx-iconv: new package, add 0.14 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 36/44] www-nginx/ngx-srcache: new package, add 0.33 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 37/44] www-nginx/ngx-lua-upstream: new package, add 0.07 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 38/44] www-nginx/ngx-memc: new package, add 0.20 Zurab Kvachadze
2025-07-02 22:06 ` [gentoo-dev] [PATCH v4 39/44] www-nginx: enable tests for OpenResty modules Zurab Kvachadze
2025-07-02 22:07 ` [gentoo-dev] [PATCH v4 40/44] www-nginx/ngx-dav-ext: new package, add 3.0.0 Zurab Kvachadze
2025-07-02 22:07 ` [gentoo-dev] [PATCH v4 41/44] www-nginx/ngx-geoip2: new package, add 3.4 Zurab Kvachadze
2025-07-02 22:07 ` [gentoo-dev] [PATCH v4 42/44] www-nginx/ngx-fancyindex: new package, add 0.5.2 Zurab Kvachadze
2025-07-02 22:07 ` [gentoo-dev] [PATCH v4 43/44] www-nginx/ngx-vod: new package, add 1.33 Zurab Kvachadze
2025-07-02 22:07 ` [gentoo-dev] [PATCH v4 44/44] www-nginx/ngx-modsecurity: new package, add 1.0.3 Zurab Kvachadze
2025-07-05 7:23 ` [gentoo-dev] [PATCH v4 00/44] Rework NGINX packaging in Gentoo by introducing nginx{,-module}.eclass Sam James
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=20250702220705.4649-31-zurabid2016@gmail.com \
--to=zurabid2016@gmail.com \
--cc=gentoo-dev@lists.gentoo.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