git: d505ef08ffbe - main - flua: unbreak the build

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Sat, 04 Oct 2025 15:04:50 UTC
The branch main has been updated by kevans:

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

commit d505ef08ffbe3b7383fbc6ed30121de9256ac18e
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2025-10-04 15:01:40 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2025-10-04 15:04:35 +0000

    flua: unbreak the build
    
    Local tree pollution let this escape.  *sigh*.
    
    Pointy hat:     kevans
    Pointy hat:     kevans
    Pointy hat:     kevans
    Fixes:  9c7db0931d486ce ("flua: move lposix back into flua for now")
---
 libexec/flua/lposix/Makefile              | 5 -----
 libexec/flua/lposix/Makefile.inc          | 2 --
 libexec/flua/{lposix => modules}/lposix.c | 5 -----
 libexec/flua/{lposix => modules}/lposix.h | 0
 4 files changed, 12 deletions(-)

diff --git a/libexec/flua/lposix/Makefile b/libexec/flua/lposix/Makefile
deleted file mode 100644
index 92321d51be9a..000000000000
--- a/libexec/flua/lposix/Makefile
+++ /dev/null
@@ -1,5 +0,0 @@
-SHLIB_NAME=	posix.so
-WARNS?=	3
-
-.include "Makefile.inc"
-.include <bsd.lib.mk>
diff --git a/libexec/flua/lposix/Makefile.inc b/libexec/flua/lposix/Makefile.inc
deleted file mode 100644
index 499e6779e84d..000000000000
--- a/libexec/flua/lposix/Makefile.inc
+++ /dev/null
@@ -1,2 +0,0 @@
-.PATH:	${.PARSEDIR}
-SRCS+=	lposix.c
diff --git a/libexec/flua/lposix/lposix.c b/libexec/flua/modules/lposix.c
similarity index 99%
rename from libexec/flua/lposix/lposix.c
rename to libexec/flua/modules/lposix.c
index 430bb6f28baf..75cdd345aeaa 100644
--- a/libexec/flua/lposix/lposix.c
+++ b/libexec/flua/modules/lposix.c
@@ -21,8 +21,6 @@
 #include "lauxlib.h"
 #include "lposix.h"
 
-#include "bootstrap.h"
-
 static void
 enforce_max_args(lua_State *L, int max)
 {
@@ -699,6 +697,3 @@ luaopen_posix(lua_State *L)
 
 	return (1);
 }
-
-/* Only this one needed in our bootstrap set, it will load the others. */
-FLUA_MODULE(posix);
diff --git a/libexec/flua/lposix/lposix.h b/libexec/flua/modules/lposix.h
similarity index 100%
rename from libexec/flua/lposix/lposix.h
rename to libexec/flua/modules/lposix.h