<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/617cece2ded752c08fd3fb9f0c20b2e9546bacb8">https://github.com/macports/macports-ports/commit/617cece2ded752c08fd3fb9f0c20b2e9546bacb8</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 617cece2ded nginx: add correct flags for lua module for arm64
</span>617cece2ded is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 617cece2ded752c08fd3fb9f0c20b2e9546bacb8
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Thu Jun 23 19:45:12 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> nginx: add correct flags for lua module for arm64
</span>---
www/nginx/Portfile | 10 ++++++++++
www/nginx/files/patch-lua_config.diff | 11 +++++++++++
2 files changed, 21 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/nginx/Portfile b/www/nginx/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 14f4e1483e4..52d1275af77 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/www/nginx/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/nginx/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -406,6 +406,16 @@ variant lua requires devel_kit description {Enable Lua module (https://github.co
</span> configure.args-append --add-module=${workpath}/${ngx_lua_distname}
nginx_set_portfile_var nginx_lua_mod_dirname "${ngx_lua_distname}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-lua_config.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # patch routine balks on file names with "../", but rel-paths in patchfiles start from $worksrcpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s "${workpath}/${nginx_lua_mod_dirname}" "${worksrcpath}/ngx_lua_distname.tmp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete "${worksrcpath}/ngx_lua_distname.tmp"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
variant headers_more description {Enable headers-more module (https://github.com/openresty/headers-more-nginx-module)} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/www/nginx/files/patch-lua_config.diff b/www/nginx/files/patch-lua_config.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b8d6fa0a7da
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/www/nginx/files/patch-lua_config.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ngx_lua_distname.tmp/config.orig 2022-03-02 00:54:22.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ngx_lua_distname.tmp/config 2022-06-23 19:05:00.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -94,7 +94,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case "$NGX_PLATFORM" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Darwin:*)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case "$NGX_MACHINE" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- amd64 | x86_64 | i386)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ amd64 | arm64 | x86_64 | i386)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "adding extra linking options needed by LuaJIT on $NGX_MACHINE"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ luajit_ld_opt="$luajit_ld_opt -pagezero_size 10000 -image_base 100000000"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ngx_feature_libs="$ngx_feature_libs -pagezero_size 10000 -image_base 100000000"
</span></pre><pre style='margin:0'>
</pre>