[PATCH 0/1] Fix build failure on Ubuntu
by Richard Ipsum
Hi,
Apparently the linker on Ubuntu is fussy about the order of flags,
I've tested this fix on Ubuntu 18.04 and 19.04.
Makes me wonder if it's worth having CI to catch this kind of stuff?
Thanks,
Richard
Richard Ipsum (1):
Fix linker error on Ubuntu
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.11.0
3 years, 11 months
[PATCH 1/2] Fix build on FreeBSD
by Richard Ipsum
---
luxio.c | 2 ++
luxio_constants.inc.in | 22 +++++++++++-----------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/luxio.c b/luxio.c
index 0db4979..e31fd8d 100644
--- a/luxio.c
+++ b/luxio.c
@@ -672,11 +672,13 @@ static void luxio__sigaction_hook(lua_State *L, lua_Debug *ar)
lua_pushinteger(L, info->si_uid);
lua_setfield(L, -2, "si_uid");
+#ifndef __FreeBSD__
lua_pushinteger(L, info->si_utime);
lua_setfield(L, -2, "si_utime");
lua_pushinteger(L, info->si_stime);
lua_setfield(L, -2, "si_stime");
+#endif
lua_pushinteger(L, (lua_Integer) info->si_addr);
lua_setfield(L, -2, "si_addr");
diff --git a/luxio_constants.inc.in b/luxio_constants.inc.in
index 22a1f13..a812715 100644
--- a/luxio_constants.inc.in
+++ b/luxio_constants.inc.in
@@ -404,7 +404,7 @@ static const struct {
E(_SC_SPAWN),
E(_SC_SPIN_LOCKS),
E(_SC_SPORADIC_SERVER),
- E(_SC_SS_REPL_MAX),
+? E(_SC_SS_REPL_MAX),
E(_SC_SYNCHRONIZED_IO),
E(_SC_THREAD_ATTR_STACKADDR),
E(_SC_THREAD_CPUTIME),
@@ -412,8 +412,8 @@ static const struct {
E(_SC_THREAD_PRIO_PROTECT),
E(_SC_THREAD_PRIORITY_SCHEDULING),
E(_SC_THREAD_PROCESS_SHARED),
- E(_SC_THREAD_ROBUST_PRIO_INHERIT),
- E(_SC_THREAD_ROBUST_PRIO_PROTECT),
+? E(_SC_THREAD_ROBUST_PRIO_INHERIT),
+? E(_SC_THREAD_ROBUST_PRIO_PROTECT),
E(_SC_THREAD_SAFE_FUNCTIONS),
E(_SC_THREAD_SPORADIC_SERVER),
E(_SC_THREADS),
@@ -421,18 +421,18 @@ static const struct {
E(_SC_TIMERS),
E(_SC_TRACE),
E(_SC_TRACE_EVENT_FILTER),
- E(_SC_TRACE_EVENT_NAME_MAX),
+? E(_SC_TRACE_EVENT_NAME_MAX),
E(_SC_TRACE_INHERIT),
E(_SC_TRACE_LOG),
- E(_SC_TRACE_NAME_MAX),
- E(_SC_TRACE_SYS_MAX),
- E(_SC_TRACE_USER_EVENT_MAX),
+? E(_SC_TRACE_NAME_MAX),
+? E(_SC_TRACE_SYS_MAX),
+? E(_SC_TRACE_USER_EVENT_MAX),
E(_SC_TYPED_MEMORY_OBJECTS),
E(_SC_VERSION),
- E(_SC_V7_ILP32_OFF32),
- E(_SC_V7_ILP32_OFFBIG),
- E(_SC_V7_LP64_OFF64),
- E(_SC_V7_LPBIG_OFFBIG),
+? E(_SC_V7_ILP32_OFF32),
+? E(_SC_V7_ILP32_OFFBIG),
+? E(_SC_V7_LP64_OFF64),
+? E(_SC_V7_LPBIG_OFFBIG),
{ NULL, 0 }
};
--
2.11.0
4 years
[PATCH] Fix build on Fedora
by Richard Ipsum
---
findlua.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/findlua.mk b/findlua.mk
index 895ec1a..83d15cd 100644
--- a/findlua.mk
+++ b/findlua.mk
@@ -25,6 +25,11 @@ else
EXTRA_INC :=
endif
+ifeq ($(HOST_OS),Linux)
+ # Fedora needs to be explicitly linked against libreadline
+ EXTRA_LIBS := $(EXTRA_LIBS) -lreadline
+endif
+
NAKED_LUA_VER := $(shell (pkg-config --exists lua && \
pkg-config --modversion lua || \
pkg-config --variable V lua) | cut -d. -f1-2)
--
2.11.0
4 years
[PATCH v2 0/4] Additional error numbers and signal functions
by Richard Ipsum
Hi,
I went through FreeBSD, NetBSD, glibc/Linux and musl, and found that some
error numbers defined by POSIX.1-2017 are missing in the implementations:
ENOTRECOVERABLE, ENOTSUP and EOWNERDEAD.
I did a bit of digging but couldn't actually find a copy of the POSIX.1-1996
definition of errno.h. If anybody does manage to find a copy I'm happy to go
through and check against that as well.
Thanks,
Richard
Richard Ipsum (4):
Define additional POSIX error numbers
simple: Add fdopen
Add sigpending, sigsuspend, sigwait, sigwaitinfo, sigtimedwait and
raise
Add license statements
Makefile | 1 +
findlua.mk | 1 +
luxio.c | 276 ++++++++++++++++++++++++++++++++++------
luxio/simple.lua | 18 +++
luxio_constants.inc.in | 52 +++++++-
tests/test-access.lua | 1 +
tests/test-creat.lua | 1 +
tests/test-dirent.lua | 1 +
tests/test-event-serv.lua | 1 +
tests/test-fcntl-lock-1.lua | 1 +
tests/test-fcntl-lock-2.lua | 1 +
tests/test-forkexecpwaitpid.lua | 1 +
tests/test-forkexecwaitpid.lua | 1 +
tests/test-http-client.lua | 1 +
tests/test-iconv.lua | 1 +
tests/test-mqueue-read.lua | 1 +
tests/test-mqueue-write.lua | 1 +
tests/test-poll-serv.lua | 1 +
tests/test-select.lua | 1 +
tests/test-setsid.lua | 1 +
tests/test-sigaction.lua | 1 +
tests/test-sigpending.lua | 18 +++
tests/test-sigprocmask.lua | 1 +
tests/test-sigsuspend.lua | 16 +++
tests/test-sigtimedwait.lua | 38 ++++++
tests/test-sigwait.lua | 22 ++++
tests/test-sigwaitinfo.lua | 22 ++++
tests/test-sio-http-client.lua | 1 +
tests/test-splice.lua | 1 +
tests/test-subprocess.lua | 1 +
tests/test-sysconf.lua | 1 +
tests/test-syslog.lua | 1 +
tests/test-termident.lua | 1 +
tests/test-uds-server.lua | 1 +
34 files changed, 446 insertions(+), 42 deletions(-)
create mode 100644 tests/test-sigpending.lua
create mode 100644 tests/test-sigsuspend.lua
create mode 100644 tests/test-sigtimedwait.lua
create mode 100644 tests/test-sigwait.lua
create mode 100644 tests/test-sigwaitinfo.lua
--
2.11.0
4 years