Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Oct 2025 14:02:42 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9c7db0931d48 - main - flua: move lposix back into flua for now
Message-ID:  <202510041402.594E2gRs056607@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=9c7db0931d486ce800aa71d9f41abfad9f7f691f

commit 9c7db0931d486ce800aa71d9f41abfad9f7f691f
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-10-04 13:57:59 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-10-04 13:57:59 +0000

    flua: move lposix back into flua for now
    
    The real luaposix is structured differently, and our builtin version
    tends to model that in its own special way.  Build it back in until we
    get the shlib model just right to unbreak nuageinit, among other things.
    
    This is a partial revert of the below-referenced commit; the other two
    modules are simple, though, and were accurately split out.
    
    Reported by:    markj
    Fixes:  b11a5709ec2b6 ("flua: kick out the remaining builtin modules")
---
 libexec/flua/Makefile     | 2 +-
 libexec/flua/linit_flua.c | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/libexec/flua/Makefile b/libexec/flua/Makefile
index cc750e30525f..23de404710d0 100644
--- a/libexec/flua/Makefile
+++ b/libexec/flua/Makefile
@@ -16,7 +16,6 @@ FLUA_MODULES+=	libjail
 .endif
 FLUA_MODULES+=	libucl
 FLUA_MODULES+=	liblyaml
-FLUA_MODULES+=	lposix
 
 .ifdef BOOTSTRAPPING
 # libfreebsd is generally omitted from the bootstrap flua because its
@@ -55,6 +54,7 @@ SRCS+=	lua.c
 # FreeBSD Extensions
 .PATH: ${.CURDIR}/modules
 SRCS+=	linit_flua.c
+SRCS+=	lposix.c
 
 CFLAGS+=	-I${SRCTOP}/lib/liblua -I${.CURDIR}/modules -I${LUASRC}
 CFLAGS+=	-DLUA_PROGNAME="\"${PROG}\""
diff --git a/libexec/flua/linit_flua.c b/libexec/flua/linit_flua.c
index bb3748daefb4..65356c938671 100644
--- a/libexec/flua/linit_flua.c
+++ b/libexec/flua/linit_flua.c
@@ -33,6 +33,7 @@
 
 #include "lualib.h"
 #include "lauxlib.h"
+#include "lposix.h"
 
 #include "bootstrap.h"
 
@@ -54,6 +55,8 @@ static const luaL_Reg loadedlibs[] = {
 #if defined(LUA_COMPAT_BITLIB)
   {LUA_BITLIBNAME, luaopen_bit32},
 #endif
+  /* FreeBSD Extensions */
+  {"posix", luaopen_posix},
   {NULL, NULL}
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510041402.594E2gRs056607>