SHA256
10
0
forked from pool/luajit

3 Commits

Author SHA256 Message Date
0777392b5a - Don't do "buildtime" services for openSUSE packages, they are not permitted.
- Update to version 5.1.2.1.0+git.1753364724.871db2c8:
  * Windows: Add lua52compat option to msvcbuild.bat.
  * x86/x64: Don't use undefined MUL/IMUL zero flag.
  * Avoid out-of-range PC for stack overflow error from snapshot restore.
  * FFI: Fix dangling CType references (again).
  * Fix JIT slot overflow during up-recursion.
  * Avoid out-of-range PC for stack overflow error from snapshot restore.
  * FFI: Fix dangling CType references.
  * Prevent Clang UB 'optimization' which breaks integerness checks.
  * ARM: Fix soft-float math.min()/math.max().
  * ARM64: Fix pass-by-value struct calling conventions.
  * Fix error generation in load*.
  * Initialize unused value when specializing to cdata metatable.
2025-08-05 17:59:02 +02:00
0eca886cbd Update to version 5.1.2.1.0+git.1741730670.538a821:
* Change handling of nil value markers in template tables.
  * REVERT: Change handling of nil value markers in template tables.
  * macOS: Fix Apple hardened runtime support and put behind build option.
  * macOS: Fix support for Apple hardened runtime.
  * Fix handling of nil value markers in template tables.
  * Avoid unpatching bytecode twice after a trace flush.
  * Fix state restore when recording __concat metamethod.
  * Windows: Allow mixed builds with msvcbuild.bat.
  * macOS: Add suport for Apple hardened runtime.
  * Add compatibility string coercion for fp:seek() argument.
  * Windows: Clarify installation directory layout.
  * Remove Cygwin from docs, since it's not a supported target.
  * Improve CLI signal handling on POSIX.
  * FFI: Add pre-declared int128_t, uint128_t, __int128 types.
  * Use dylib extension for iOS installs, too.
  * Change handling of nil value markers in template tables.
  * Fix recording of BC_VARG.
  * Reject negative getfenv()/setfenv() levels to prevent compiler warning.
  * Bump copyright date.
  * Force fallback source name for stripped bytecode.
  * Remove dependency on <limits.h>.
  * Restore state when recording __concat metamethod throws OOM.
  * MIPS64: Fix pcall() error case.
  * Fix detection of inconsistent renames due to sunk values.
2025-03-27 13:37:04 +01:00
Muhammad Akbar Yanuar Mantari
ef41560105 Enable lua 5.2 compatibility (Needed for build aegisubs) 2025-03-27 13:37:04 +01:00
12 changed files with 206 additions and 90 deletions

6
.gitignore vendored
View File

@@ -1 +1,7 @@
.osc .osc
_buildconfig-*
_buildinfo-*.xml
LuaJIT/
_scmsync.obsinfo
LuaJIT-*.obscpio
luajit-*-build/

View File

@@ -6,9 +6,11 @@ Subject: Enable debugging symbols in the build
src/Makefile | 4 ++-- src/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-) 1 file changed, 2 insertions(+), 2 deletions(-)
--- a/src/Makefile Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/Makefile
+++ b/src/Makefile ===================================================================
@@ -54,9 +54,9 @@ CCOPT_arm64= --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/Makefile 2025-03-25 17:07:13.482265396 +0100
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/Makefile 2025-03-25 17:07:21.367645582 +0100
@@ -54,9 +54,9 @@
CCOPT_ppc= CCOPT_ppc=
CCOPT_mips= CCOPT_mips=
# #

View File

@@ -8,9 +8,11 @@ Subject: Get rid of LUAJIT_VERSION_SYM that changes ABI on every patch release
src/luajit_rolling.h | 3 --- src/luajit_rolling.h | 3 ---
3 files changed, 9 deletions(-) 3 files changed, 9 deletions(-)
--- a/src/lj_dispatch.c Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/lj_dispatch.c
+++ b/src/lj_dispatch.c ===================================================================
@@ -318,11 +318,6 @@ int luaJIT_setmode(lua_State *L, int idx --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/lj_dispatch.c 2025-03-11 23:04:30.000000000 +0100
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/lj_dispatch.c 2025-03-25 17:07:26.955530316 +0100
@@ -318,11 +318,6 @@
return 1; /* OK. */ return 1; /* OK. */
} }
@@ -22,9 +24,11 @@ Subject: Get rid of LUAJIT_VERSION_SYM that changes ABI on every patch release
/* -- Hooks --------------------------------------------------------------- */ /* -- Hooks --------------------------------------------------------------- */
/* This function can be called asynchronously (e.g. during a signal). */ /* This function can be called asynchronously (e.g. during a signal). */
--- a/src/luajit.c Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit.c
+++ b/src/luajit.c ===================================================================
@@ -515,7 +515,6 @@ static int pmain(lua_State *L) --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/luajit.c 2025-03-11 23:04:30.000000000 +0100
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit.c 2025-03-25 17:07:26.956030878 +0100
@@ -530,7 +530,6 @@
int argn; int argn;
int flags = 0; int flags = 0;
globalL = L; globalL = L;
@@ -32,9 +36,11 @@ Subject: Get rid of LUAJIT_VERSION_SYM that changes ABI on every patch release
argn = collectargs(argv, &flags); argn = collectargs(argv, &flags);
if (argn < 0) { /* Invalid args? */ if (argn < 0) { /* Invalid args? */
--- a/src/luajit_rolling.h Index: LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit_rolling.h
+++ b/src/luajit_rolling.h ===================================================================
@@ -73,8 +73,5 @@ LUA_API void luaJIT_profile_stop(lua_Sta --- LuaJIT-5.1.2.1.0+git.1741730670.538a821.orig/src/luajit_rolling.h 2025-03-11 23:04:30.000000000 +0100
+++ LuaJIT-5.1.2.1.0+git.1741730670.538a821/src/luajit_rolling.h 2025-03-25 17:07:26.956298722 +0100
@@ -73,8 +73,5 @@
LUA_API const char *luaJIT_profile_dumpstack(lua_State *L, const char *fmt, LUA_API const char *luaJIT_profile_dumpstack(lua_State *L, const char *fmt,
int depth, size_t *len); int depth, size_t *len);

Binary file not shown.

BIN
LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,4 +1,4 @@
name: LuaJIT name: LuaJIT
version: 5.1.2.1.0+git.1731601260.fe71d0f version: 5.1.2.1.0+git.1753364724.871db2c8
mtime: 1731601260 mtime: 1753364724
commit: fe71d0fb54ceadfb5b5f3b6baf29e486d97f6059 commit: 871db2c84ecefd70a850e03a6c340214a81739f0

View File

@@ -7,9 +7,9 @@
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param> <param name="changesauthor">mcepl@cepl.eu</param>
</service> </service>
<service name="tar" mode="buildtime"> <service name="tar" mode="manual">
</service> </service>
<service name="recompress" mode="buildtime"> <service name="recompress" mode="manual">
<param name="file">*.tar</param> <param name="file">*.tar</param>
<param name="compression">xz</param> <param name="compression">xz</param>
</service> </service>

View File

@@ -1,4 +1,4 @@
<servicedata> <servicedata>
<service name="tar_scm"> <service name="tar_scm">
<param name="url">https://github.com/LuaJIT/LuaJIT.git</param> <param name="url">https://github.com/LuaJIT/LuaJIT.git</param>
<param name="changesrevision">fe71d0fb54ceadfb5b5f3b6baf29e486d97f6059</param></service></servicedata> <param name="changesrevision">871db2c84ecefd70a850e03a6c340214a81739f0</param></service></servicedata>

View File

@@ -5,8 +5,10 @@
src/luaconf.h | 2 +- src/luaconf.h | 2 +-
4 files changed, 9 insertions(+), 7 deletions(-) 4 files changed, 9 insertions(+), 7 deletions(-)
--- a/Makefile Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/Makefile
+++ b/Makefile ===================================================================
--- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/Makefile 2025-08-05 17:58:16.401293115 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/Makefile 2025-08-05 17:58:19.151192871 +0200
@@ -16,13 +16,14 @@ @@ -16,13 +16,14 @@
MAJVER= 2 MAJVER= 2
MINVER= 1 MINVER= 1
@@ -23,7 +25,7 @@
VERSION= $(MMVERSION).$(RELVER) VERSION= $(MMVERSION).$(RELVER)
############################################################################## ##############################################################################
@@ -52,7 +53,7 @@ INSTALL_MAN= $(INSTALL_SHARE)/man/man1 @@ -52,7 +53,7 @@
INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
INSTALL_TNAME= luajit-$(VERSION) INSTALL_TNAME= luajit-$(VERSION)
@@ -32,7 +34,7 @@
INSTALL_ANAME= libluajit-$(ABIVER).a INSTALL_ANAME= libluajit-$(ABIVER).a
INSTALL_SOSHORT1= libluajit-$(ABIVER).so INSTALL_SOSHORT1= libluajit-$(ABIVER).so
INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER) INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER)
@@ -90,7 +91,7 @@ ifneq ($(INSTALL_DEFINC),$(INSTALL_INC)) @@ -90,7 +91,7 @@
SED_PC+= -e "s|^includedir=.*|includedir=$(INSTALL_INC)|" SED_PC+= -e "s|^includedir=.*|includedir=$(INSTALL_INC)|"
endif endif
@@ -41,7 +43,7 @@
FILE_A= libluajit.a FILE_A= libluajit.a
FILE_SO= libluajit.so FILE_SO= libluajit.so
FILE_MAN= luajit.1 FILE_MAN= luajit.1
@@ -138,7 +139,7 @@ install: $(INSTALL_DEP) @@ -138,7 +139,7 @@
( $(LDCONFIG) $(INSTALL_LIB) || : ) && \ ( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \ $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || : $(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
@@ -50,9 +52,11 @@
cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \ cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
$(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \ $(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
$(RM) $(FILE_PC).tmp $(RM) $(FILE_PC).tmp
--- a/etc/luajit.pc Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/etc/luajit.pc
+++ b/etc/luajit.pc ===================================================================
@@ -10,7 +10,7 @@ multilib=lib --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/etc/luajit.pc 2025-08-05 17:58:16.401293115 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/etc/luajit.pc 2025-08-05 17:58:19.151421922 +0200
@@ -10,7 +10,7 @@
exec_prefix=${prefix} exec_prefix=${prefix}
libdir=${exec_prefix}/${multilib} libdir=${exec_prefix}/${multilib}
libname=luajit-${abiver} libname=luajit-${abiver}
@@ -61,9 +65,11 @@
INSTALL_LMOD=${prefix}/share/lua/${abiver} INSTALL_LMOD=${prefix}/share/lua/${abiver}
INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver} INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver}
--- a/src/Makefile Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/Makefile
+++ b/src/Makefile ===================================================================
@@ -14,6 +14,7 @@ MAJVER= 2 --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/Makefile 2025-08-05 17:58:16.401293115 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/Makefile 2025-08-05 17:58:19.151653819 +0200
@@ -14,6 +14,7 @@
MINVER= 1 MINVER= 1
ABIVER= 5.1 ABIVER= 5.1
NODOTABIVER= 51 NODOTABIVER= 51
@@ -71,7 +77,7 @@
############################################################################## ##############################################################################
############################# COMPILER OPTIONS ############################# ############################# COMPILER OPTIONS #############################
@@ -527,7 +528,7 @@ LIB_VMDEFP= $(LIB_VMDEF) @@ -530,7 +531,7 @@
LUAJIT_O= luajit.o LUAJIT_O= luajit.o
LUAJIT_A= libluajit.a LUAJIT_A= libluajit.a
LUAJIT_SO= libluajit.so LUAJIT_SO= libluajit.so
@@ -80,9 +86,11 @@
ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T) ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T)
ALL_HDRGEN= lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h \ ALL_HDRGEN= lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h \
--- a/src/luaconf.h Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/luaconf.h
+++ b/src/luaconf.h ===================================================================
@@ -51,7 +51,7 @@ --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/luaconf.h 2025-08-05 17:58:16.401293115 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/luaconf.h 2025-08-05 17:58:19.151890204 +0200
@@ -50,7 +50,7 @@
#endif #endif
#ifndef LUA_LJDIR #ifndef LUA_LJDIR

View File

@@ -42,8 +42,10 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
create mode 100644 dynasm/dasm_s390x.h create mode 100644 dynasm/dasm_s390x.h
create mode 100644 dynasm/dasm_s390x.lua create mode 100644 dynasm/dasm_s390x.lua
--- /dev/null Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/dynasm/dasm_s390x.h
+++ b/dynasm/dasm_s390x.h ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/dynasm/dasm_s390x.h 2025-08-05 17:58:29.627799965 +0200
@@ -0,0 +1,546 @@ @@ -0,0 +1,546 @@
+/* +/*
+** DynASM s390x encoding engine. +** DynASM s390x encoding engine.
@@ -591,8 +593,10 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
+ return D->status; + return D->status;
+} +}
+#endif +#endif
--- /dev/null Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/dynasm/dasm_s390x.lua
+++ b/dynasm/dasm_s390x.lua ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/dynasm/dasm_s390x.lua 2025-08-05 17:58:29.628037012 +0200
@@ -0,0 +1,1634 @@ @@ -0,0 +1,1634 @@
+------------------------------------------------------------------------------ +------------------------------------------------------------------------------
+-- DynASM s390x module. +-- DynASM s390x module.
@@ -2228,9 +2232,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
+end +end
+return _M +return _M
+------------------------------------------------------------------------------ +------------------------------------------------------------------------------
--- a/src/Makefile Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/Makefile
+++ b/src/Makefile ===================================================================
@@ -244,6 +244,9 @@ else --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/Makefile 2025-08-05 17:58:23.843209469 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/Makefile 2025-08-05 17:58:29.628858358 +0200
@@ -244,6 +244,9 @@
ifneq (,$(findstring LJ_TARGET_ARM ,$(TARGET_TESTARCH))) ifneq (,$(findstring LJ_TARGET_ARM ,$(TARGET_TESTARCH)))
TARGET_LJARCH= arm TARGET_LJARCH= arm
else else
@@ -2240,7 +2246,7 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
ifneq (,$(findstring LJ_TARGET_ARM64 ,$(TARGET_TESTARCH))) ifneq (,$(findstring LJ_TARGET_ARM64 ,$(TARGET_TESTARCH)))
ifneq (,$(findstring __AARCH64EB__ ,$(TARGET_TESTARCH))) ifneq (,$(findstring __AARCH64EB__ ,$(TARGET_TESTARCH)))
TARGET_ARCH= -D__AARCH64EB__=1 TARGET_ARCH= -D__AARCH64EB__=1
@@ -272,6 +275,7 @@ else @@ -272,6 +275,7 @@
endif endif
endif endif
endif endif
@@ -2248,9 +2254,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
endif endif
endif endif
endif endif
--- a/src/host/buildvm.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/host/buildvm.c
+++ b/src/host/buildvm.c ===================================================================
@@ -67,6 +67,8 @@ static int collect_reloc(BuildCtx *ctx, --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/host/buildvm.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/host/buildvm.c 2025-08-05 17:58:29.629244035 +0200
@@ -67,6 +67,8 @@
#include "../dynasm/dasm_ppc.h" #include "../dynasm/dasm_ppc.h"
#elif LJ_TARGET_MIPS #elif LJ_TARGET_MIPS
#include "../dynasm/dasm_mips.h" #include "../dynasm/dasm_mips.h"
@@ -2259,9 +2267,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "No support for this architecture (yet)" #error "No support for this architecture (yet)"
#endif #endif
--- a/src/host/buildvm_asm.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/host/buildvm_asm.c
+++ b/src/host/buildvm_asm.c ===================================================================
@@ -87,6 +87,54 @@ err: --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/host/buildvm_asm.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/host/buildvm_asm.c 2025-08-05 17:58:29.629378294 +0200
@@ -87,6 +87,54 @@
} }
fprintf(ctx->fp, "\t%s %s\n", opname, sym); fprintf(ctx->fp, "\t%s %s\n", opname, sym);
} }
@@ -2316,7 +2326,7 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
/* Emit words piecewise as assembler text. */ /* Emit words piecewise as assembler text. */
static void emit_asm_words(BuildCtx *ctx, uint8_t *p, int n) static void emit_asm_words(BuildCtx *ctx, uint8_t *p, int n)
@@ -302,6 +350,9 @@ void emit_asm(BuildCtx *ctx) @@ -302,6 +350,9 @@
emit_asm_reloc(ctx, r->type, ctx->relocsym[r->sym]); emit_asm_reloc(ctx, r->type, ctx->relocsym[r->sym]);
} }
ofs += n+4; ofs += n+4;
@@ -2326,7 +2336,7 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
emit_asm_wordreloc(ctx, ctx->code+ofs, n, ctx->relocsym[r->sym]); emit_asm_wordreloc(ctx, ctx->code+ofs, n, ctx->relocsym[r->sym]);
ofs += n; ofs += n;
@@ -310,6 +361,8 @@ void emit_asm(BuildCtx *ctx) @@ -310,6 +361,8 @@
} }
#if LJ_TARGET_X86ORX64 #if LJ_TARGET_X86ORX64
emit_asm_bytes(ctx, ctx->code+ofs, next-ofs); emit_asm_bytes(ctx, ctx->code+ofs, next-ofs);
@@ -2335,9 +2345,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
emit_asm_words(ctx, ctx->code+ofs, next-ofs); emit_asm_words(ctx, ctx->code+ofs, next-ofs);
#endif #endif
--- a/src/jit/bcsave.lua Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/jit/bcsave.lua
+++ b/src/jit/bcsave.lua ===================================================================
@@ -101,6 +101,7 @@ local map_arch = { --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/jit/bcsave.lua 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/jit/bcsave.lua 2025-08-05 17:58:29.629798809 +0200
@@ -101,6 +101,7 @@
mips64el = { e = "le", b = 64, m = 8, f = 0x80000007, }, mips64el = { e = "le", b = 64, m = 8, f = 0x80000007, },
mips64r6 = { e = "be", b = 64, m = 8, f = 0xa0000407, }, mips64r6 = { e = "be", b = 64, m = 8, f = 0xa0000407, },
mips64r6el = { e = "le", b = 64, m = 8, f = 0xa0000407, }, mips64r6el = { e = "le", b = 64, m = 8, f = 0xa0000407, },
@@ -2345,13 +2357,17 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
} }
local map_os = { local map_os = {
--- /dev/null Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/jit/dis_s390x.lua
+++ b/src/jit/dis_s390x.lua ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/jit/dis_s390x.lua 2025-08-05 17:58:29.629999187 +0200
@@ -0,0 +1 @@ @@ -0,0 +1 @@
+-- Not yet implemented. +-- Not yet implemented.
--- a/src/lib_jit.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lib_jit.c
+++ b/src/lib_jit.c ===================================================================
@@ -702,6 +702,8 @@ static uint32_t jit_cpudetect(void) --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lib_jit.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lib_jit.c 2025-08-05 17:58:29.630209352 +0200
@@ -702,6 +702,8 @@
} }
#endif #endif
@@ -2360,8 +2376,10 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing CPU detection for this architecture" #error "Missing CPU detection for this architecture"
#endif #endif
--- a/src/lj_arch.h Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_arch.h
+++ b/src/lj_arch.h ===================================================================
--- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_arch.h 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_arch.h 2025-08-05 17:58:29.630420550 +0200
@@ -31,6 +31,8 @@ @@ -31,6 +31,8 @@
#define LUAJIT_ARCH_mips32 6 #define LUAJIT_ARCH_mips32 6
#define LUAJIT_ARCH_MIPS64 7 #define LUAJIT_ARCH_MIPS64 7
@@ -2402,9 +2420,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "No target architecture defined" #error "No target architecture defined"
#endif #endif
--- a/src/lj_asm.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_asm.c
+++ b/src/lj_asm.c ===================================================================
@@ -1708,6 +1708,8 @@ static void asm_loop(ASMState *as) --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_asm.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_asm.c 2025-08-05 17:58:29.630816846 +0200
@@ -1708,6 +1708,8 @@
#include "lj_asm_ppc.h" #include "lj_asm_ppc.h"
#elif LJ_TARGET_MIPS #elif LJ_TARGET_MIPS
#include "lj_asm_mips.h" #include "lj_asm_mips.h"
@@ -2413,8 +2433,10 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing assembler for target CPU" #error "Missing assembler for target CPU"
#endif #endif
--- a/src/lj_ccall.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_ccall.c
+++ b/src/lj_ccall.c ===================================================================
--- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_ccall.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_ccall.c 2025-08-05 17:58:29.631345712 +0200
@@ -575,6 +575,40 @@ @@ -575,6 +575,40 @@
goto done; \ goto done; \
} }
@@ -2456,7 +2478,7 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing calling convention definitions for this architecture" #error "Missing calling convention definitions for this architecture"
#endif #endif
@@ -999,6 +1033,9 @@ static int ccall_set_args(lua_State *L, @@ -1012,6 +1046,9 @@
CType *d; CType *d;
CTSize sz; CTSize sz;
MSize n, isfp = 0, isva = 0; MSize n, isfp = 0, isva = 0;
@@ -2466,7 +2488,7 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
void *dp, *rp = NULL; void *dp, *rp = NULL;
if (fid) { /* Get argument type from field. */ if (fid) { /* Get argument type from field. */
@@ -1037,6 +1074,9 @@ static int ccall_set_args(lua_State *L, @@ -1050,6 +1087,9 @@
CCALL_HANDLE_REGARG /* Handle register arguments. */ CCALL_HANDLE_REGARG /* Handle register arguments. */
/* Otherwise pass argument on stack. */ /* Otherwise pass argument on stack. */
@@ -2476,7 +2498,7 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
if (CCALL_ALIGN_STACKARG) { /* Align argument on stack. */ if (CCALL_ALIGN_STACKARG) { /* Align argument on stack. */
MSize align = (1u << ctype_align(d->info)) - 1; MSize align = (1u << ctype_align(d->info)) - 1;
if (rp || (CCALL_PACK_STACKARG && isva && align < CTSIZE_PTR-1)) if (rp || (CCALL_PACK_STACKARG && isva && align < CTSIZE_PTR-1))
@@ -1086,6 +1126,16 @@ static int ccall_set_args(lua_State *L, @@ -1099,6 +1139,16 @@
*(int64_t *)dp = (int64_t)*(int32_t *)dp; /* Sign-extend to 64 bit. */ *(int64_t *)dp = (int64_t)*(int32_t *)dp; /* Sign-extend to 64 bit. */
} }
#endif #endif
@@ -2493,9 +2515,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#if LJ_TARGET_X64 && LJ_ABI_WIN #if LJ_TARGET_X64 && LJ_ABI_WIN
if (isva) { /* Windows/x64 mirrors varargs in both register sets. */ if (isva) { /* Windows/x64 mirrors varargs in both register sets. */
if (nfpr == ngpr) if (nfpr == ngpr)
--- a/src/lj_ccall.h Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_ccall.h
+++ b/src/lj_ccall.h ===================================================================
@@ -129,6 +129,21 @@ typedef union FPRArg { --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_ccall.h 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_ccall.h 2025-08-05 17:58:29.631769871 +0200
@@ -129,6 +129,21 @@
struct { LJ_ENDIAN_LOHI(float f; , float g;) }; struct { LJ_ENDIAN_LOHI(float f; , float g;) };
} FPRArg; } FPRArg;
@@ -2517,9 +2541,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing calling convention definitions for this architecture" #error "Missing calling convention definitions for this architecture"
#endif #endif
--- a/src/lj_ccallback.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_ccallback.c
+++ b/src/lj_ccallback.c ===================================================================
@@ -516,6 +516,15 @@ void lj_ccallback_mcode_free(CTState *ct --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_ccallback.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_ccallback.c 2025-08-05 17:58:29.632033738 +0200
@@ -531,6 +531,15 @@
if (ctype_isfp(ctr->info) && ctr->size == sizeof(float)) \ if (ctype_isfp(ctr->info) && ctr->size == sizeof(float)) \
((float *)dp)[1] = *(float *)dp; ((float *)dp)[1] = *(float *)dp;
@@ -2535,9 +2561,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing calling convention definitions for this architecture" #error "Missing calling convention definitions for this architecture"
#endif #endif
--- a/src/lj_err.c Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_err.c
+++ b/src/lj_err.c ===================================================================
@@ -442,6 +442,9 @@ LJ_FUNCA int lj_err_unwind_dwarf(int ver --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_err.c 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_err.c 2025-08-05 17:58:29.632270323 +0200
@@ -442,6 +442,9 @@
if (version != 1) if (version != 1)
return _URC_FATAL_PHASE1_ERROR; return _URC_FATAL_PHASE1_ERROR;
cf = (void *)_Unwind_GetCFA(ctx); cf = (void *)_Unwind_GetCFA(ctx);
@@ -2547,9 +2575,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
L = cframe_L(cf); L = cframe_L(cf);
if ((actions & _UA_SEARCH_PHASE)) { if ((actions & _UA_SEARCH_PHASE)) {
#if LJ_UNWIND_EXT #if LJ_UNWIND_EXT
--- a/src/lj_frame.h Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_frame.h
+++ b/src/lj_frame.h ===================================================================
@@ -264,6 +264,20 @@ enum { LJ_CONT_TAILCALL, LJ_CONT_FFI_CAL --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_frame.h 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_frame.h 2025-08-05 17:58:29.632506458 +0200
@@ -264,6 +264,20 @@
#endif #endif
#define CFRAME_OFS_MULTRES 0 #define CFRAME_OFS_MULTRES 0
#define CFRAME_SHIFT_MULTRES 3 #define CFRAME_SHIFT_MULTRES 3
@@ -2570,9 +2600,11 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing CFRAME_* definitions for this architecture" #error "Missing CFRAME_* definitions for this architecture"
#endif #endif
--- a/src/lj_target.h Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_target.h
+++ b/src/lj_target.h ===================================================================
@@ -143,6 +143,8 @@ typedef uint32_t RegCost; --- LuaJIT-5.1.2.1.0+git.1753364724.871db2c8.orig/src/lj_target.h 2025-08-05 17:58:16.173291647 +0200
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_target.h 2025-08-05 17:58:29.632753654 +0200
@@ -143,6 +143,8 @@
#include "lj_target_ppc.h" #include "lj_target_ppc.h"
#elif LJ_TARGET_MIPS #elif LJ_TARGET_MIPS
#include "lj_target_mips.h" #include "lj_target_mips.h"
@@ -2581,8 +2613,10 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
#else #else
#error "Missing include for target CPU" #error "Missing include for target CPU"
#endif #endif
--- /dev/null Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_target_s390x.h
+++ b/src/lj_target_s390x.h ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/lj_target_s390x.h 2025-08-05 17:58:29.632908054 +0200
@@ -0,0 +1,80 @@ @@ -0,0 +1,80 @@
+/* +/*
+** Definitions for IBM z/Architecture (s390x) CPUs. +** Definitions for IBM z/Architecture (s390x) CPUs.
@@ -2664,8 +2698,10 @@ Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
+/* -- Instructions -------------------------------------------------------- */ +/* -- Instructions -------------------------------------------------------- */
+ +
+#endif +#endif
--- /dev/null Index: LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/vm_s390x.dasc
+++ b/src/vm_s390x.dasc ===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ LuaJIT-5.1.2.1.0+git.1753364724.871db2c8/src/vm_s390x.dasc 2025-08-05 17:58:29.633378320 +0200
@@ -0,0 +1,4269 @@ @@ -0,0 +1,4269 @@
+|// Low-level VM code for IBM z/Architecture (s390x) CPUs in LJ_GC64 mode. +|// Low-level VM code for IBM z/Architecture (s390x) CPUs in LJ_GC64 mode.
+|// Bytecode interpreter, fast functions and helper functions. +|// Bytecode interpreter, fast functions and helper functions.

View File

@@ -1,3 +1,60 @@
-------------------------------------------------------------------
Tue Aug 5 15:56:50 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Don't do "buildtime" services for openSUSE packages, they are
not permitted.
-------------------------------------------------------------------
Tue Aug 05 15:55:32 UTC 2025 - mcepl@cepl.eu
- Update to version 5.1.2.1.0+git.1753364724.871db2c8:
* Windows: Add lua52compat option to msvcbuild.bat.
* x86/x64: Don't use undefined MUL/IMUL zero flag.
* Avoid out-of-range PC for stack overflow error from snapshot restore.
* FFI: Fix dangling CType references (again).
* Fix JIT slot overflow during up-recursion.
* Avoid out-of-range PC for stack overflow error from snapshot restore.
* FFI: Fix dangling CType references.
* Prevent Clang UB 'optimization' which breaks integerness checks.
* ARM: Fix soft-float math.min()/math.max().
* ARM64: Fix pass-by-value struct calling conventions.
* Fix error generation in load*.
* Initialize unused value when specializing to cdata metatable.
-------------------------------------------------------------------
Tue Mar 25 16:04:27 UTC 2025 - mcepl@cepl.eu
- Update to version 5.1.2.1.0+git.1741730670.538a821:
* Change handling of nil value markers in template tables.
* REVERT: Change handling of nil value markers in template tables.
* macOS: Fix Apple hardened runtime support and put behind build option.
* macOS: Fix support for Apple hardened runtime.
* Fix handling of nil value markers in template tables.
* Avoid unpatching bytecode twice after a trace flush.
* Fix state restore when recording __concat metamethod.
* Windows: Allow mixed builds with msvcbuild.bat.
* macOS: Add suport for Apple hardened runtime.
* Add compatibility string coercion for fp:seek() argument.
* Windows: Clarify installation directory layout.
* Remove Cygwin from docs, since it's not a supported target.
* Improve CLI signal handling on POSIX.
* FFI: Add pre-declared int128_t, uint128_t, __int128 types.
* Use dylib extension for iOS installs, too.
* Change handling of nil value markers in template tables.
* Fix recording of BC_VARG.
* Reject negative getfenv()/setfenv() levels to prevent compiler warning.
* Bump copyright date.
* Force fallback source name for stripped bytecode.
* Remove dependency on <limits.h>.
* Restore state when recording __concat metamethod throws OOM.
* MIPS64: Fix pcall() error case.
* Fix detection of inconsistent renames due to sunk values.
-------------------------------------------------------------------
Fri Mar 7 05:12:33 UTC 2025 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Enable lua 5.2 compatibility (Needed for build aegisubs)
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 6 07:23:43 UTC 2024 - Adrian Schröter <adrian@suse.de> Fri Dec 6 07:23:43 UTC 2024 - Adrian Schröter <adrian@suse.de>

View File

@@ -21,7 +21,7 @@
%define so_version 2 %define so_version 2
%define upname LuaJIT %define upname LuaJIT
Name: luajit Name: luajit
Version: 5.1.2.1.0+git.1731601260.fe71d0f Version: 5.1.2.1.0+git.1753364724.871db2c8
Release: 0 Release: 0
Summary: JIT compiler for Lua language Summary: JIT compiler for Lua language
License: MIT License: MIT
@@ -90,6 +90,7 @@ export CFLAGS="%{optflags}"
Q= \ Q= \
DYNAMIC_CC="cc -fPIC" \ DYNAMIC_CC="cc -fPIC" \
LDCONFIG="true" \ LDCONFIG="true" \
XCFLAGS="-DLUAJIT_ENABLE_LUA52COMPAT" \
TARGET_AR="ar rcus" \ TARGET_AR="ar rcus" \
TARGET_STRIP=: \ TARGET_STRIP=: \
MULTILIB=%{_lib} MULTILIB=%{_lib}