git: bea2c000bcb5 - main - devel/genie: Runtime fix
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 27 Jun 2026 14:10:11 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bea2c000bcb5f277f8d79f4f0959217f8d5a0e34
commit bea2c000bcb5f277f8d79f4f0959217f8d5a0e34
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2026-06-27 10:19:53 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2026-06-27 14:09:42 +0000
devel/genie: Runtime fix
PR: 296286
Reported by: laurent
---
devel/genie/Makefile | 3 ++-
devel/genie/files/patch-src_host_premake.c | 28 ++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/devel/genie/Makefile b/devel/genie/Makefile
index f80938c78c41..8b752d7dc658 100644
--- a/devel/genie/Makefile
+++ b/devel/genie/Makefile
@@ -1,5 +1,6 @@
PORTNAME= genie
DISTVERSION= g2026032500
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= bofh@FreeBSD.org
@@ -9,7 +10,7 @@ WWW= https://github.com/bkaradzic/GENie
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= gmake lua:53,build
+USES= gmake lua:53
USE_GITHUB= yes
GH_ACCOUNT= bkaradzic
GH_PROJECT= GENie
diff --git a/devel/genie/files/patch-src_host_premake.c b/devel/genie/files/patch-src_host_premake.c
new file mode 100644
index 000000000000..c7b81baeafa4
--- /dev/null
+++ b/devel/genie/files/patch-src_host_premake.c
@@ -0,0 +1,28 @@
+--- src/host/premake.c.orig 2026-06-26 12:09:24 UTC
++++ src/host/premake.c
+@@ -77,10 +77,24 @@ int premake_init(lua_State* L)
+ */
+ int premake_init(lua_State* L)
+ {
++#if LUA_VERSION_NUM >= 502
++ luaL_newlib(L, path_functions);
++ lua_setglobal(L, "path");
++
++ luaL_requiref(L, "os", luaopen_os, 1);
++ lua_pop(L, 1);
++ lua_getglobal(L, "os");
++ luaL_setfuncs(L, os_functions, 0);
++ lua_pop(L, 1);
++
++ lua_getglobal(L, "string");
++ luaL_setfuncs(L, string_functions, 0);
++ lua_pop(L, 1);
++#else
+ luaL_register(L, "path", path_functions);
+ luaL_register(L, "os", os_functions);
+ luaL_register(L, "string", string_functions);
+-
++#endif
+ /* push the application metadata */
+ lua_pushstring(L, LUA_COPYRIGHT);
+ lua_setglobal(L, "_COPYRIGHT");