logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: acb92fb3d4492373e9934c872f3b0b85520fa43a
parent ed3b50be88c8c1c62c38c959919de131838e3855
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 12 Feb 2025 00:22:19 -0800

Add luaposix 36.2.1

Diffstat:

M.gitmodules3+++
Mpkg/gen.lua1+
Apkg/luaposix/config.h34++++++++++++++++++++++++++++++++++
Apkg/luaposix/gen.lua62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apkg/luaposix/src1+
5 files changed, 101 insertions(+), 0 deletions(-)

diff --git a/.gitmodules b/.gitmodules @@ -181,6 +181,9 @@ path = pkg/libxkbcommon/src url = https://github.com/xkbcommon/libxkbcommon.git ignore = all +[submodule "pkg/luaposix/src"] + path = pkg/luaposix/src + url = https://github.com/luaposix/luaposix.git [submodule "pkg/mblaze/src"] path = pkg/mblaze/src url = https://github.com/leahneukirchen/mblaze.git diff --git a/pkg/gen.lua b/pkg/gen.lua @@ -68,6 +68,7 @@ subgen 'libxkbcommon' subgen 'linux-headers' subgen 'lpeg' subgen 'lua' +subgen 'luaposix' subgen 'make' subgen 'man-pages-posix' subgen 'mandoc' diff --git a/pkg/luaposix/config.h b/pkg/luaposix/config.h @@ -0,0 +1,34 @@ +#define PACKAGE "luaposix" +#define VERSION "v36.2.1" + +/* fcntl */ +#define HAVE_POSIX_FADVISE 1 + +/* sched */ +#define HAVE_SCHED_H 1 +#define HAVE_SCHED_GETSCHEDULER 1 +#define HAVE_SCHED_SETSCHEDULER 1 + +/* sys.msg */ +#define HAVE_SYS_MSG_H 1 +#define HAVE_MSGRCV 1 +#define HAVE_MSGSND 1 + +/* sys.socket */ +#define HAVE_NET_IF_H 1 +#define HAVE_LINUX_NETLINK_H 1 +#define HAVE_LINUX_IF_PACKET_H 1 + +/* sys.statvfs */ +#define HAVE_STATVFS 1 + +/* time */ +#define HAVE_TM_GMTOFF 1 +#define HAVE_TM_ZONE 1 + +/* unistd */ +#define HAVE_CRYPT 1 +#define HAVE_CRYPT_H 1 +#define HAVE_DECL_FDATASYNC 1 +#define HAVE_FDATASYNC 1 +#define HAVE_GETHOSTID 1 diff --git a/pkg/luaposix/gen.lua b/pkg/luaposix/gen.lua @@ -0,0 +1,62 @@ +cflags{ + '-std=c99', + '-D _GNU_SOURCE', + '-I $srcdir/ext/include', + '-include $dir/config.h', +} + +build('sed', '$outdir/version.lua', '$srcdir/lib/posix/version.lua.in', { + expr={ + '-e s,@package@,luaposix,', + '-e s,@version2,36.2.1,', + }, +}) + +lib('libluaposix.a', [[ + ext/posix/( + ctype.c + dirent.c + errno.c + fcntl.c + fnmatch.c + glob.c + grp.c + libgen.c + poll.c + pwd.c + sched.c + signal.c + stdio.c + stdlib.c + sys/( + msg.c + resource.c + socket.c + stat.c + statvfs.c + time.c + times.c + utsname.c + wait.c + ) + syslog.c + termio.c + time.c + unistd.c + utime.c + ) +]]) + +local files = { + 'init.lua', + '_base.lua', + '_bitwise.lua', + '_strict.lua', + 'compat.lua', + 'sys.lua', + 'util.lua', +} +for _, f in ipairs(files) do + file('share/lua/5.4/posix/'..f, '644', '$srcdir/lib/posix/'..f) +end +file('share/lua/5.4/posix/version.lua', '644', '$outdir/version.lua') diff --git a/pkg/luaposix/src b/pkg/luaposix/src @@ -0,0 +1 @@ +Subproject commit 5a8d8c768fc3c51f42cb591e9523a60399efc6a1