git: 19ecf3de5ee4 - main - devel/lua-stdlib: Allow build with lua55

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 30 Jun 2026 22:17:03 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=19ecf3de5ee42d059e1f2a778d3461f42a16387b

commit 19ecf3de5ee42d059e1f2a778d3461f42a16387b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-06-30 22:13:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-06-30 22:13:27 +0000

    devel/lua-stdlib: Allow build with lua55
---
 devel/lua-stdlib/files/patch-configure | 38 ++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/devel/lua-stdlib/files/patch-configure b/devel/lua-stdlib/files/patch-configure
new file mode 100644
index 000000000000..436f8a4c4a8c
--- /dev/null
+++ b/devel/lua-stdlib/files/patch-configure
@@ -0,0 +1,38 @@
+--- configure.orig	2018-09-04 00:58:18 UTC
++++ configure
+@@ -2546,7 +2546,7 @@ fi
+ 
+ fi
+ 
+-            _ax_check_text="whether $LUA version >= 5.1, < 5.5"
++            _ax_check_text="whether $LUA version >= 5.1, < 5.6"
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking $_ax_check_text" >&5
+ $as_echo_n "checking $_ax_check_text... " >&6; }
+ 
+@@ -2561,7 +2561,7 @@ $as_echo_n "checking $_ax_check_text... " >&6; }
+     local minver = verstr2num("5.1")
+     local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
+     local ver = verstr2num(trimver)
+-    local maxver = verstr2num("5.5") or 1e9
++    local maxver = verstr2num("5.6") or 1e9
+     if minver <= ver and ver < maxver then
+       print("yes")
+     else
+@@ -2579,7 +2579,7 @@ else
+       ax_display_LUA=$LUA
+ 
+ else
+-         _ax_check_text="for a Lua interpreter with version >= 5.1, < 5.5"
++         _ax_check_text="for a Lua interpreter with version >= 5.1, < 5.6"
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking $_ax_check_text" >&5
+ $as_echo_n "checking $_ax_check_text... " >&6; }
+ if ${ax_cv_pathless_LUA+:} false; then :
+@@ -2616,7 +2616,7 @@ fi
+     local minver = verstr2num("5.1")
+     local _, _, trimver = string.find(_VERSION, "^Lua (.*)")
+     local ver = verstr2num(trimver)
+-    local maxver = verstr2num("5.5") or 1e9
++    local maxver = verstr2num("5.6") or 1e9
+     if minver <= ver and ver < maxver then
+       print("yes")
+     else