Compare commits
23 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
da0b43d875
|
|||
|
f57f52abf2
|
|||
|
85e8b6571e
|
|||
|
5515637074
|
|||
|
a09626bd5c
|
|||
| af8a1e7b3b | |||
| 429f433dc9 | |||
| f594af2d04 | |||
| a5826f2edd | |||
|
|
f174f8719a | ||
|
|
245581a0d5 | ||
| aab9062c5b | |||
|
|
6bb579ef93 | ||
| 279a2f9285 | |||
|
|
3237fc76f3 | ||
| 66f583bae7 | |||
|
|
aaebe5c1e9 | ||
| f900bac256 | |||
|
|
ab9229b6ce | ||
| 12d76cf9fd | |||
|
|
0bbe70fbad | ||
| f9e8d4112c | |||
| 63921fdf21 |
@@ -1,22 +0,0 @@
|
|||||||
From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@sury.org>
|
|
||||||
Date: Tue, 17 Nov 2015 16:27:11 +0100
|
|
||||||
Subject: Enable debugging symbols in the build
|
|
||||||
|
|
||||||
---
|
|
||||||
src/Makefile | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
--- a/src/Makefile
|
|
||||||
+++ b/src/Makefile
|
|
||||||
@@ -54,9 +54,9 @@ CCOPT_arm64=
|
|
||||||
CCOPT_ppc=
|
|
||||||
CCOPT_mips=
|
|
||||||
#
|
|
||||||
-CCDEBUG=
|
|
||||||
+#CCDEBUG=
|
|
||||||
# Uncomment the next line to generate debug information:
|
|
||||||
-#CCDEBUG= -g
|
|
||||||
+CCDEBUG= -g
|
|
||||||
#
|
|
||||||
CCWARN= -Wall
|
|
||||||
# Uncomment the next line to enable more warnings:
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <ondrej@sury.org>
|
|
||||||
Date: Thu, 19 Nov 2015 16:29:02 +0200
|
|
||||||
Subject: Get rid of LUAJIT_VERSION_SYM that changes ABI on every patch release
|
|
||||||
|
|
||||||
---
|
|
||||||
src/lj_dispatch.c | 5 -----
|
|
||||||
src/luajit.c | 1 -
|
|
||||||
src/luajit_rolling.h | 3 ---
|
|
||||||
3 files changed, 9 deletions(-)
|
|
||||||
|
|
||||||
--- a/src/lj_dispatch.c
|
|
||||||
+++ b/src/lj_dispatch.c
|
|
||||||
@@ -318,11 +318,6 @@ int luaJIT_setmode(lua_State *L, int idx
|
|
||||||
return 1; /* OK. */
|
|
||||||
}
|
|
||||||
|
|
||||||
-/* Enforce (dynamic) linker error for version mismatches. See luajit.c. */
|
|
||||||
-LUA_API void LUAJIT_VERSION_SYM(void)
|
|
||||||
-{
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
/* -- Hooks --------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/* This function can be called asynchronously (e.g. during a signal). */
|
|
||||||
--- a/src/luajit.c
|
|
||||||
+++ b/src/luajit.c
|
|
||||||
@@ -515,7 +515,6 @@ static int pmain(lua_State *L)
|
|
||||||
int argn;
|
|
||||||
int flags = 0;
|
|
||||||
globalL = L;
|
|
||||||
- LUAJIT_VERSION_SYM(); /* Linker-enforced version check. */
|
|
||||||
|
|
||||||
argn = collectargs(argv, &flags);
|
|
||||||
if (argn < 0) { /* Invalid args? */
|
|
||||||
--- a/src/luajit_rolling.h
|
|
||||||
+++ b/src/luajit_rolling.h
|
|
||||||
@@ -73,8 +73,5 @@ LUA_API void luaJIT_profile_stop(lua_Sta
|
|
||||||
LUA_API const char *luaJIT_profile_dumpstack(lua_State *L, const char *fmt,
|
|
||||||
int depth, size_t *len);
|
|
||||||
|
|
||||||
-/* Enforce (dynamic) linker error for version mismatches. Call from main. */
|
|
||||||
-LUA_API void LUAJIT_VERSION_SYM(void);
|
|
||||||
-
|
|
||||||
#error "DO NOT USE luajit_rolling.h -- only include build-generated luajit.h"
|
|
||||||
#endif
|
|
||||||
Binary file not shown.
@@ -1,4 +0,0 @@
|
|||||||
name: LuaJIT
|
|
||||||
version: 5.1.2.1.0+git.1731601260.fe71d0f
|
|
||||||
mtime: 1731601260
|
|
||||||
commit: fe71d0fb54ceadfb5b5f3b6baf29e486d97f6059
|
|
||||||
17
_service
17
_service
@@ -1,17 +0,0 @@
|
|||||||
<services>
|
|
||||||
<service name="obs_scm" mode="manual">
|
|
||||||
<param name="scm">git</param>
|
|
||||||
<param name="url">https://github.com/LuaJIT/LuaJIT.git</param>
|
|
||||||
<param name="versionprefix">5.1.2.1.0+git</param>
|
|
||||||
<param name="revision">v2.1</param>
|
|
||||||
<param name="changesgenerate">enable</param>
|
|
||||||
<param name="changesauthor">mcepl@cepl.eu</param>
|
|
||||||
</service>
|
|
||||||
<service name="tar" mode="buildtime">
|
|
||||||
</service>
|
|
||||||
<service name="recompress" mode="buildtime">
|
|
||||||
<param name="file">*.tar</param>
|
|
||||||
<param name="compression">xz</param>
|
|
||||||
</service>
|
|
||||||
<service name="set_version" mode="manual"/>
|
|
||||||
</services>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
<servicedata>
|
|
||||||
<service name="tar_scm">
|
|
||||||
<param name="url">https://github.com/LuaJIT/LuaJIT.git</param>
|
|
||||||
<param name="changesrevision">fe71d0fb54ceadfb5b5f3b6baf29e486d97f6059</param></service></servicedata>
|
|
||||||
@@ -1 +1 @@
|
|||||||
libluajit-5_1-2
|
libluajit2-5_1-2
|
||||||
|
|||||||
10127
loong64-support.patch
Normal file
10127
loong64-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,93 +0,0 @@
|
|||||||
---
|
|
||||||
Makefile | 9 +++++----
|
|
||||||
etc/luajit.pc | 2 +-
|
|
||||||
src/Makefile | 3 ++-
|
|
||||||
src/luaconf.h | 2 +-
|
|
||||||
4 files changed, 9 insertions(+), 7 deletions(-)
|
|
||||||
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -16,13 +16,14 @@
|
|
||||||
MAJVER= 2
|
|
||||||
MINVER= 1
|
|
||||||
ABIVER= 5.1
|
|
||||||
+SUFFIX= 5_1
|
|
||||||
|
|
||||||
# LuaJIT uses rolling releases. The release version is based on the time of
|
|
||||||
# the latest git commit. The 'git' command must be available during the build.
|
|
||||||
RELVER= $(shell cat src/luajit_relver.txt 2>/dev/null || : )
|
|
||||||
# Note: setting it with := doesn't work, since it will change during the build.
|
|
||||||
|
|
||||||
-MMVERSION= $(MAJVER).$(MINVER)
|
|
||||||
+MMVERSION= $(SUFFIX)-$(MAJVER).$(MINVER)
|
|
||||||
VERSION= $(MMVERSION).$(RELVER)
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
@@ -52,7 +53,7 @@ INSTALL_MAN= $(INSTALL_SHARE)/man/man1
|
|
||||||
INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
|
|
||||||
|
|
||||||
INSTALL_TNAME= luajit-$(VERSION)
|
|
||||||
-INSTALL_TSYMNAME= luajit
|
|
||||||
+INSTALL_TSYMNAME= luajit-$(SUFFIX)
|
|
||||||
INSTALL_ANAME= libluajit-$(ABIVER).a
|
|
||||||
INSTALL_SOSHORT1= libluajit-$(ABIVER).so
|
|
||||||
INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER)
|
|
||||||
@@ -90,7 +91,7 @@ ifneq ($(INSTALL_DEFINC),$(INSTALL_INC))
|
|
||||||
SED_PC+= -e "s|^includedir=.*|includedir=$(INSTALL_INC)|"
|
|
||||||
endif
|
|
||||||
|
|
||||||
-FILE_T= luajit
|
|
||||||
+FILE_T= luajit-$(SUFFIX)
|
|
||||||
FILE_A= libluajit.a
|
|
||||||
FILE_SO= libluajit.so
|
|
||||||
FILE_MAN= luajit.1
|
|
||||||
@@ -138,7 +139,7 @@ install: $(INSTALL_DEP)
|
|
||||||
( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
|
|
||||||
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
|
|
||||||
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
|
|
||||||
- cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
|
|
||||||
+ cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)/luajit-$(SUFFIX).1
|
|
||||||
cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
|
|
||||||
$(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
|
|
||||||
$(RM) $(FILE_PC).tmp
|
|
||||||
--- a/etc/luajit.pc
|
|
||||||
+++ b/etc/luajit.pc
|
|
||||||
@@ -10,7 +10,7 @@ multilib=lib
|
|
||||||
exec_prefix=${prefix}
|
|
||||||
libdir=${exec_prefix}/${multilib}
|
|
||||||
libname=luajit-${abiver}
|
|
||||||
-includedir=${prefix}/include/luajit-${majver}.${minver}
|
|
||||||
+includedir=${prefix}/include/luajit-5_1-${majver}.${minver}
|
|
||||||
|
|
||||||
INSTALL_LMOD=${prefix}/share/lua/${abiver}
|
|
||||||
INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver}
|
|
||||||
--- a/src/Makefile
|
|
||||||
+++ b/src/Makefile
|
|
||||||
@@ -14,6 +14,7 @@ MAJVER= 2
|
|
||||||
MINVER= 1
|
|
||||||
ABIVER= 5.1
|
|
||||||
NODOTABIVER= 51
|
|
||||||
+SUFFIX= 5_1
|
|
||||||
|
|
||||||
##############################################################################
|
|
||||||
############################# COMPILER OPTIONS #############################
|
|
||||||
@@ -527,7 +528,7 @@ LIB_VMDEFP= $(LIB_VMDEF)
|
|
||||||
LUAJIT_O= luajit.o
|
|
||||||
LUAJIT_A= libluajit.a
|
|
||||||
LUAJIT_SO= libluajit.so
|
|
||||||
-LUAJIT_T= luajit
|
|
||||||
+LUAJIT_T= luajit-$(SUFFIX)
|
|
||||||
|
|
||||||
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 \
|
|
||||||
--- a/src/luaconf.h
|
|
||||||
+++ b/src/luaconf.h
|
|
||||||
@@ -51,7 +51,7 @@
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef LUA_LJDIR
|
|
||||||
-#define LUA_LJDIR LUA_JROOT "/share/luajit-2.1"
|
|
||||||
+#define LUA_LJDIR "/luajit-5_1-2.1/"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LUA_JPATH ";" LUA_LJDIR "/?.lua"
|
|
||||||
6938
luajit-s390x.patch
6938
luajit-s390x.patch
File diff suppressed because it is too large
Load Diff
518
luajit.changes
518
luajit.changes
@@ -1,492 +1,158 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 6 07:23:43 UTC 2024 - Adrian Schröter <adrian@suse.de>
|
Sat Oct 11 14:16:09 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
- No loongarch64 support yet
|
- Don’t Conflict with lua51 directly.
|
||||||
- turn around the logic to known supported architectures
|
- Don’t provide _bindir/lua5.1
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 20 07:23:12 UTC 2024 - mcepl@cepl.eu
|
Thu Oct 9 21:14:30 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
- Update to version 5.1.2.1.0+git.1731601260.fe71d0f:
|
- Rewrite SPEC file to work with other Lua interpreters and packages.
|
||||||
* Windows: Allow amalgamated static builds with msvcbuild.bat.
|
- Reapply patches to avoid fuzz and long-term maintenance:
|
||||||
* Always close profiler output file.
|
- loong64-support.patch
|
||||||
* Fix override of INSTALL_LJLIBD in the presence of DESTDIR.
|
- riscv64-support.patch
|
||||||
* Fix bit op coercion for shifts in DUALNUM builds.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 06 16:31:22 UTC 2024 - mcepl@cepl.eu
|
Wed Oct 8 07:29:03 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||||
|
|
||||||
- Update to version 5.1.2.1.0+git.1727870382.97813fb:
|
- Updated to 2.1.20250826 (1756211046)
|
||||||
* macOS: Remove obsolete -single_module flag.
|
* FFI: Fix dangling CType references (again).
|
||||||
* macOS: Workaround for buggy XCode 15.0 - 15.2 linker.
|
* Avoid out-of-range PC for stack overflow error from snapshot restore.
|
||||||
* macOS: Fix macOS 15 / Clang 16 build.
|
* x86/x64: Don't use undefined MUL/IMUL zero flag.
|
||||||
* Fix bit op coercion in DUALNUM builds.
|
* Windows: Add lua52compat option to msvcbuild.bat.
|
||||||
* Fix compiliation of getmetatable() for UDTYPE_IO_FILE.
|
- Cherry-pick riscv64-support.patch to add RISC-V support
|
||||||
* Remove ancient RtlUnwindEx workaround for MinGW64.
|
- Cherry-pick loong64-support.patch to add LoongArch support
|
||||||
* Drop unused function wrapper.
|
- Increase _default_patch_fuzz to 2 to allow patches to apply
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 6 16:25:34 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Fri Jul 11 14:07:00 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Update luajit-s390x.patch from
|
- Updated to 2.1.20250529 (1748495995).
|
||||||
gh#openresty/luajit2!195 (following the advice on
|
* https://github.com/openresty/luajit2/compare/v2.1-20250117...v2.1-20250529
|
||||||
gh#LuaJIT/LuaJIT!631#issuecomment-2459913131).
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 26 18:41:09 UTC 2024 - mcepl@cepl.eu
|
Sat Jan 18 10:16:26 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Update to version 5.1.2.1.0+git.1724512491.f725e44:
|
- Updated to 2.1.20250117 (1737090214).
|
||||||
* Fix limit check in narrow_conv_backprop().
|
* Changed file luajit2-name.patch.
|
||||||
* Always use IRT_NIL for IR_TBAR.
|
* https://github.com/openresty/luajit2/compare/v2.1-20241203...v2.1-20250117
|
||||||
* ARM64: Use ldr literal to load FP constants.
|
* Fixed recording of BC_VARG.
|
||||||
* FFI: Add missing coercion when recording 64-bit bit.*().
|
|
||||||
* ARM64: Make tobit conversions match JIT backend behavior.
|
|
||||||
* ARM: Make hard-float tobit conversions match JIT backend behavior.
|
|
||||||
* FFI: Drop finalizer table rehash after GC cycle.
|
|
||||||
* Fix another potential file descriptor leak in luaL_loadfile*().
|
|
||||||
* MIPS32: Fix little-endian IR_RETF.
|
|
||||||
* Correctly close VM state after early OOM during open.
|
|
||||||
* Fix potential file descriptor leak in luaL_loadfile*().
|
|
||||||
* Reflect override of INSTALL_LJLIBD in package.path.
|
|
||||||
* ARM64: Use movi to materialize FP constants.
|
|
||||||
* Add more FOLD rules for integer conversions.
|
|
||||||
* Different fix for partial snapshot restore due to stack overflow.
|
|
||||||
* Fix IR_ABC hoisting.
|
|
||||||
* Limit CSE for IR_CARG to fix loop optimizations.
|
|
||||||
* Call math.randomseed() without arguments to seed from system entropy.
|
|
||||||
* Restore state when recording __concat metamethod throws an error.
|
|
||||||
* Add build flag LUAJIT_DISABLE_TAILCALL to disable tailcall generation.
|
|
||||||
* Clarify that lj_buf_shrink() does not keep any buffer data.
|
|
||||||
* OSX: Fix installed luajit.pc.
|
|
||||||
* FFI: Fix various issues in recff_cdata_arith.
|
|
||||||
* Fix predict_next() in parser (for real now).
|
|
||||||
* FFI: Fix __tostring metamethod access to enum cdata value.
|
|
||||||
* Fix typo.
|
|
||||||
* Handle partial snapshot restore due to stack overflow.
|
|
||||||
* Update Nintendo Switch build script.
|
|
||||||
* Prevent sanitizer warning in snap_restoredata().
|
|
||||||
* Typo.
|
|
||||||
* Limit number of string format elements to compile.
|
|
||||||
* FFI: Clarify scalar boxing behavior.
|
|
||||||
* Fix internal link in docs.
|
|
||||||
* OSX/iOS: Fix SDK incompatibility.
|
|
||||||
* Windows/MSVC: Cleanup msvcbuild.bat and always generate PDB.
|
|
||||||
* Fix segment release check in internal memory allocator.
|
|
||||||
* Fix compiler warning.
|
|
||||||
* FFI: Turn FFI finalizer table into a proper GC root.
|
|
||||||
* OSX/iOS: Always generate 64 bit non-FAT Mach-O object files.
|
|
||||||
* Show name of NYI bytecode in -jv and -jdump.
|
|
||||||
* Use generic trace error for OOM during trace stitching.
|
|
||||||
* Fix serialization format docs.
|
|
||||||
* Handle all types of errors during trace stitching.
|
|
||||||
* Fix recording of __concat metamethod.
|
|
||||||
* Prevent down-recursion for side traces.
|
|
||||||
* Check frame size limit before returning to a lower frame.
|
|
||||||
* FFI: Treat cdata finalizer table as a GC root.
|
|
||||||
* Handle stack reallocation in debug.setmetatable() and lua_setmetatable().
|
|
||||||
- Update patches:
|
|
||||||
- luajit-lua-versioned.patch
|
|
||||||
- luajit-s390x.patch (update to the latest base code)
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 01 20:05:18 UTC 2024 - mcepl@cepl.eu
|
Sat Nov 23 13:05:56 UTC 2024 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Update to version 5.1.2.1.0+git.1707061634.0d313b2:
|
- Updated to 2.1.20241113 (2.1.1731486438).
|
||||||
* Rework stack overflow handling.
|
* Upstream doesn't provide a ChangeLog.
|
||||||
* Preserve keys with dynamic values in template tables when saving bytecode.
|
|
||||||
* Prevent include of luajit_rolling.h.
|
|
||||||
* Fix documentation bug about '\z' string escape.
|
|
||||||
* Fix zero stripping in %g number formatting.
|
|
||||||
* Fix unsinking of IR_FSTORE for NULL metatable.
|
|
||||||
* DynASM/x86: Add endbr instruction.
|
|
||||||
* MIPS64 R2/R6: Fix FP to integer conversions.
|
|
||||||
* Add cross-32/64 bit and deterministic bytecode generation.
|
|
||||||
* DynASM/x86: Allow [&expr] operand.
|
|
||||||
* Check for IR_HREF vs. IR_HREFK aliasing in non-nil store check.
|
|
||||||
* Respect jit.off() on pending trace exit.
|
|
||||||
* Simplify handling of instable types in TNEW/TDUP load forwarding.
|
|
||||||
* Only emit proper parent references in snapshot replay.
|
|
||||||
* Fix anchoring for string buffer set() method (again).
|
|
||||||
* ARM: Fix stack restore for FP slots.
|
|
||||||
* Document workaround for multilib vs. cross-compiler conflict.
|
|
||||||
* Fix anchoring for string buffer set() method.
|
|
||||||
* Fix runtime library flags for MSVC debug builds.
|
|
||||||
* Fix .debug_abbrev section in GDB JIT API.
|
|
||||||
* Optimize table.new() with constant args to (sinkable) IR_TNEW.
|
|
||||||
* Emit sunk IR_NEWREF only once per key on snapshot replay.
|
|
||||||
* Fix last commit.
|
|
||||||
* x86/x64: Don't fuse loads across IR_NEWREF.
|
|
||||||
* Improve last commit.
|
|
||||||
* x86/x64: Don't fuse loads across table.clear.
|
|
||||||
* x86/x64: Add more red zone checks to assembler backend.
|
|
||||||
* Add stack check to pcall/xpcall.
|
|
||||||
* Invalidate SCEV entry when returning to lower frame.
|
|
||||||
* FFI: Fix pragma push stack limit check and throw on overflow.
|
|
||||||
* ARM64: Fix disassembly of ldp/stp offsets.
|
|
||||||
* Check for upvalue state transition in IR_UREFO.
|
|
||||||
* x64: Properly fix __call metamethod return dispatch.
|
|
||||||
* Windows/x86: _BitScan*64 are only available on 64 bit archs.
|
|
||||||
* Add 'cc' file type for saving bytecode.
|
|
||||||
* FFI/Windows: Fix type declaration for int64_t and uint64_t.
|
|
||||||
* FFI: Fix dangling reference to CType in carith_checkarg().
|
|
||||||
* DynASM/ARM64: Support ldp/stp of q registers.
|
|
||||||
* ARM64: Use ADR and ADRP to form constants.
|
|
||||||
* ARM64: Fix disassembly of U12 loads.
|
|
||||||
* ARM64: Unify constant register handling in interpreter.
|
|
||||||
* ARM: Fix register hint for FFI calls with FP results.
|
|
||||||
* ARM64: Fix register hint for FFI calls with FP results.
|
|
||||||
* ARM64: Restore fp before sp in C stack unwinders.
|
|
||||||
* FFI: Fix ffi.abi("pauth").
|
|
||||||
* Maintain chain invariant in DCE.
|
|
||||||
* LJ_FR2: Fix stack checks in vararg calls.
|
|
||||||
* Follow-up fix for stack overflow handling cleanup.
|
|
||||||
* Handle OOM error on stack resize in coroutine.resume and lua_checkstack.
|
|
||||||
* Restore cur_L for specific Lua/C API use case.
|
|
||||||
* Consistently use 64 bit constants for 64 bit IR instructions.
|
|
||||||
* ARM64: Fix IR_HREF code generation for constant FP keys.
|
|
||||||
* ARM64: Fuse negative 32 bit constants into arithmetic ops again.
|
|
||||||
* Handle all stack layouts in (delayed) TRACE vmevent.
|
|
||||||
* Add missing coercion when recording select(string, ...)
|
|
||||||
* Cleanup stack overflow handling.
|
|
||||||
* Windows/ARM64: Add MSVC cross-build support for x64 to ARM64.
|
|
||||||
* IR_MIN/IR_MAX is non-commutative due to underlying FPU ops.
|
|
||||||
* ARM64: Set fixed interpreter registers before rethrow.
|
|
||||||
* Windows/ARM64: Update install docs.
|
|
||||||
* Windows: Call C++ destructors without compiling with /EHa.
|
|
||||||
* Windows: Pass scratch CONTEXT record to RtlUnwindEx.
|
|
||||||
* ARM64: External unwinder already restores non-volatile registers.
|
|
||||||
* Windows/ARM64: Fix exception unwinding (again).
|
|
||||||
* Windows/ARM64: Fix typo in exception unwinding.
|
|
||||||
* FFI: Fix 64 bit shift fold rules.
|
|
||||||
* Windows/ARM64: Support Windows calling conventions.
|
|
||||||
* Windows/ARM64: Fix exception unwinding.
|
|
||||||
* ARM64: Remove unneeded IRCALL_* defs for math intrinsics.
|
|
||||||
* Fix Cygwin build.
|
|
||||||
* Allow path overrides in genversion.lua with minilua, too.
|
|
||||||
* Windows/ARM64: Add initial support.
|
|
||||||
* Improve architecture detection error messages.
|
|
||||||
* ARM64: Fuse rotates into logical operands.
|
|
||||||
* ARM64: Don't fuse sign extensions into logical operands.
|
|
||||||
* ARM64: Disassemble rotates on logical operands.
|
|
||||||
* ARM: Fix stack check code generation.
|
|
||||||
* ARM64: Fix LDP/STP fusion (again).
|
|
||||||
* ARM64: Ensure branch is in range before emitting TBZ/TBNZ.
|
|
||||||
* Fix mcode limit check for non-x86 archs.
|
|
||||||
* ARM64: Improve BC_JLOOP.
|
|
||||||
* ARM64: Improve integer IR_MUL code generation.
|
|
||||||
* ARM64: Simplify code generation for IR_STRTO.
|
|
||||||
* ARM64: Use RID_TMP instead of scratch register in more places.
|
|
||||||
* ARM64: Improve IR_OBAR code generation.
|
|
||||||
* ARM64: Improve IR_UREF code generation.
|
|
||||||
* ARM64: Improve IR_HREF code generation.
|
|
||||||
* ARM64: Reload BASE via GL instead of spilling it.
|
|
||||||
* ARM64: Consolidate 32/64-bit constant handling in assembler.
|
|
||||||
* ARM64: Tune emit_lsptr. Avoid wrong load for asm_prof.
|
|
||||||
* ARM64: Inline only use of emit_loada.
|
|
||||||
* ARM64: Improve K13 constant rematerialization.
|
|
||||||
* Add NaN check to IR_NEWREF.
|
|
||||||
* Allow override of paths for genversion.lua.
|
|
||||||
* Fix native MinGW build.
|
|
||||||
- Also refresh luajit-s390x.patch from the rebased pull request.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 9 20:09:43 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
|
Thu Nov 7 08:00:47 UTC 2024 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Adjust luajit-lua-versioned.patch to have correct LUA_LJDIR
|
- Updated to 2.1.20241104 (2.1.1728714540).
|
||||||
(bsc#1215592).
|
* FFI: Added missing coercion when recording 64-bit bit.*().
|
||||||
|
* ARM64: Used ldr literal to load FP constants.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Sep 06 21:51:55 UTC 2023 - mcepl@cepl.eu
|
Wed Aug 28 03:54:34 UTC 2024 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Update to version 5.1.2.1.0+git.1693350652.41fb94d:
|
- Updated to 2.1.20240815 (2.1.1723681758).
|
||||||
* Add randomized register allocation for fuzz testing.
|
* Changed file luajit2-name.patch.
|
||||||
* ARM64: Improve register allocation for integer IR_MUL/IR_MULOV.
|
* Added ppc64le support.
|
||||||
* ARM64: Fix register allocation for IR_*LOAD.
|
|
||||||
* Update external MSDN URL in code.
|
|
||||||
* FFI/ARM64/OSX: Handle non-standard OSX C calling conventions.
|
|
||||||
* FFI: Unify stack setup for C calls in interpreter.
|
|
||||||
* ARM64: Prevent STP fusion for conditional code emitted by TBAR.
|
|
||||||
* ARM64: Fix LDP/STP fusing for unaligned accesses.
|
|
||||||
* Handle table unsinking in the presence of IRFL_TAB_NOMM.
|
|
||||||
* Use fallback name for install files without valid .git or .relver.
|
|
||||||
* Handle non-.git checkout with .relver in .bat-file builds.
|
|
||||||
* Fix external C call stack check when using LUAJIT_MODE_WRAPCFUNC.
|
|
||||||
* Fix predict_next() in parser (again).
|
|
||||||
- Update luajit-lua-versioned.patch to work with the git checkout
|
|
||||||
created tarball. The point of the patch is to extend the
|
|
||||||
version number so that it is always bigger than 2.2.0 version
|
|
||||||
of moonjit, which is Obsoleted by this package.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 23 14:18:06 UTC 2023 - mcepl@cepl.eu
|
Fri May 10 04:09:49 UTC 2024 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Update to version 2.1.0~beta3+git.1692716794.03c3112:
|
- Changed file luajit2-name.patch and fixed package.path for modules.
|
||||||
* Fix typo.
|
|
||||||
* Handle the case when .git is not a directory.
|
|
||||||
* Add .gitattributes to dynamically resolve .relver.
|
|
||||||
* Add .gitattributes to dynamically resolve .relver.
|
|
||||||
* Fix for last commit: also remove symlink on uninstall.
|
|
||||||
* Switch to rolling releases: mark v2.1 as production.
|
|
||||||
* Fix Windows build scripts for rolling releases.
|
|
||||||
* Switch MSVC and console build scripts to rolling releases.
|
|
||||||
* Switch build system to rolling releases.
|
|
||||||
* Update documentation for switch to rolling releases.
|
|
||||||
* Bump copyright date.
|
|
||||||
* Remove work-in-progress notice in string buffer docs.
|
|
||||||
* MIPS: Fix "bad FP FLOAD" assertion.
|
|
||||||
* Ensure forward progress on trace exit to BC_ITERN.
|
|
||||||
* ARM64: Add support for ARM64e pointer authentication codes (PAC).
|
|
||||||
* DynASM/ARM64: Add instructions for ARM64e PAC.
|
|
||||||
* Fix maxslots when recording BC_VARG, part 3.
|
|
||||||
* Fix predict_next() in parser.
|
|
||||||
* MIPS32: Declare that the assembler part uses the FR=0 model.
|
|
||||||
* ARM64: Fix assembly of HREFK (again).
|
|
||||||
* Fix frame for more types of on-trace error messages.
|
|
||||||
* Add workaround for bytecode dump of builtins.
|
|
||||||
* DynASM: Fix regression due to warning fix.
|
|
||||||
* Fix base register coalescing in side trace.
|
|
||||||
* ARM64: Fix assembly of HREFK.
|
|
||||||
* Fix maxslots when recording BC_VARG, part 2.
|
|
||||||
* Fix maxslots when recording BC_TSETM.
|
|
||||||
* Fix maxslots when recording BC_VARG.
|
|
||||||
* Fix register mask for stack check in head of side trace.
|
|
||||||
* FFI: Fix ffi.metatype() for non-raw types.
|
|
||||||
* ARM64: Fix LDP code generation.
|
|
||||||
* MIPSr6: Add missing files to Makefile install target.
|
|
||||||
* DynASM: Fix warnings.
|
|
||||||
* Fix frame for on-trace out-of-memory error.
|
|
||||||
* Fix handling of instable types in TNEW/TDUP load forwarding.
|
|
||||||
* Fix compiler warning.
|
|
||||||
* Fix last commit.
|
|
||||||
* Print errors from __gc finalizers instead of rethrowing them.
|
|
||||||
* Fix TDUP load forwarding after table rehash.
|
|
||||||
* Fix canonicalization of +-0.0 keys for IR_NEWREF.
|
|
||||||
* Improve error reporting on stack overflow.
|
|
||||||
* Allow building sources with mixed LF/CRLF line-endings.
|
|
||||||
* Fix compiler warning.
|
|
||||||
* Don't fail for Clang builds, which pretend to be an ancient GCC.
|
|
||||||
* Avoid negation of signed integers in C that may hold INT*_MIN.
|
|
||||||
* Correct fix for stack check when recording BC_VARG.
|
|
||||||
* Disable FMA by default. Use -Ofma or jit.opt.start("+fma") to enable.
|
|
||||||
* FFI: Fix dangling reference to CType. Improve checks.
|
|
||||||
* ARM64: Fix code generation for IR_SLOAD with typecheck + conversion.
|
|
||||||
* PS4/PS5: Fix build scripts.
|
|
||||||
* Avoid assertion in case of stack overflow from stitched trace.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 21 13:04:40 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
Fri May 3 21:45:30 UTC 2024 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
- Update luajit-s390x.patch from gh#LuaJIT/LuaJIT#631 to the
|
- Removed %check (tests don't run, and it's not known how to run them).
|
||||||
current form.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jan 25 10:52:05 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
|
Wed May 1 02:13:06 UTC 2024 - Илья Индиго <ilya@ilya.top>
|
||||||
|
|
||||||
|
- Updated to 2.1.20240314 (2.1.1710398010).
|
||||||
|
- Refreshed spec-file via spec-cleaner and manual optimizations.
|
||||||
|
- Added file luajit2-name.patch.
|
||||||
|
- Renamed package to luajit2.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 26 09:08:11 UTC 2023 - Michal Suchanek <msuchanek@suse.de>
|
||||||
|
|
||||||
- Opencode %make_build to prevent build failure when not defined.
|
- Opencode %make_build to prevent build failure when not defined.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 23:18:13 UTC 2022 - mcepl@cepl.eu
|
Wed Jan 25 13:46:36 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
- Update to version 2.1.0~beta3+git.1669107176.46aa45d:
|
- Rewrite moonjit package to build openresty from
|
||||||
* NX: Always compile with -fPIC.
|
https://github.com/openresty/luajit2.
|
||||||
* Clarify contact page.
|
|
||||||
* Ensure correct stack top for OOM error message.
|
|
||||||
* ARM64: Fix IR_SLOAD assembly.
|
|
||||||
* Fix trace join to BC_JLOOP originating from BC_ITERN.
|
|
||||||
* Fix compiler warnings.
|
|
||||||
* Fix last edit.
|
|
||||||
* Remove dead Wiki links.
|
|
||||||
* Fix QNX build.
|
|
||||||
* Add -F option to override filename in jit.bcsave (luajit -b).
|
|
||||||
* Patch luajit.pc with INSTALL_INC, if customized.
|
|
||||||
* LJ_GC64: Fix lua_concat().
|
|
||||||
* Prevent use of RTLD_DEFAULT when NO_RTLD_DEFAULT is defined.
|
|
||||||
* Improve GC estimation for userdata with attached managed memory.
|
|
||||||
* Add missing GC steps to string buffer methods.
|
|
||||||
* x86/x64: Limit VLOAD fusion to simple cases.
|
|
||||||
* OSX/iOS/ARM64: Fix generation of Mach-O object files.
|
|
||||||
* Prevent trace start at BC_ITERL after compiled BC_ITERN.
|
|
||||||
* ARM64: Allow building with unwinding disabled.
|
|
||||||
* FFI: Fix sizeof expression in C parser for reference types.
|
|
||||||
* FFI: Fix ffi.alignof() for reference types.
|
|
||||||
* FFI: Allow ffi.metatype() for typedefs with attributes.
|
|
||||||
* OSX/iOS/ARM64: Fix bytecode embedding in Mach-O object file.
|
|
||||||
* LJ_GC64: Fix IR_VARG offset for fixed number of results.
|
|
||||||
* x86/x64: Fix math.ceil(-0.9) result sign.
|
|
||||||
* Grammar and spell check.
|
|
||||||
* Make embedded bytecode readable and forward-compatible.
|
|
||||||
* DynASM: Fix warnings.
|
|
||||||
* Fix warnings in minilua.c.
|
|
||||||
* Update console build instructions.
|
|
||||||
* Add Nintendo Switch port.
|
|
||||||
* Avoid zero-sized arrays in jit_State.
|
|
||||||
* Don't use jit_State during build with JIT disabled.
|
|
||||||
* DynASM/ARM64: Fix LSL/BFI* encoding with variable registers.
|
|
||||||
* Fix ITERN loop detection when hook checks are enabled.
|
|
||||||
* Prevent C compiler undefined-behavior optimization.
|
|
||||||
* Fix alias analysis for table length forwarding.
|
|
||||||
* Fix loop initialization in table.foreach().
|
|
||||||
* LJ_GC64: Fix HREFK optimization.
|
|
||||||
* Fix recording of __concat metamethod.
|
|
||||||
* Cleanup of system and architecture support docs.
|
|
||||||
* Add PS5 port.
|
|
||||||
* Fix assertions.
|
|
||||||
* x64: Fix RETHI/RETLO swap after call.
|
|
||||||
* Fix assertion for LJ_KEYINDEX.
|
|
||||||
* Add missing check for LJ_KEYINDEX in ITERN recording.
|
|
||||||
* DynASM/ARM64: Fix NOP instruction for aligment
|
|
||||||
- Was forced to remove perhaps in future important patches:
|
|
||||||
- luajit-ppc64-replace-asserts.patch
|
|
||||||
- 0004-Add-ppc64-support-based-on-koriakin-GitHub-patchset.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 16:22:18 UTC 2022 - Michael Gorse <mgorse@suse.com>
|
Mon Jul 12 17:33:50 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
- Also exclude s390x from the build (boo#1204557).
|
- Rewrite the packaging to acommodate a possibility of two LuaJIT
|
||||||
|
implementations in the distribution.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 1 16:01:53 UTC 2022 - Michael Gorse <mgorse@suse.com>
|
Sat Jul 3 19:20:57 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
- Add ppc64 and ppc64le to ExcludeArch for now. This can be
|
- Fix Provides ... we don't provide an equvalent of 2.2.0 LuaJIT
|
||||||
removed if we rebase the ppc64 patch, but it is no longer being
|
(which doesn't exsts).
|
||||||
maintained and seems unlikely to land upstream (bsc#1204557).
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 4 19:00:14 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Mon Mar 30 12:31:09 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
- exclude luajit from building on riscv64 - not yet supported
|
- Add moonjit105-string_gsub.patch to fix gsub method, which breaks
|
||||||
|
other packages (namely neovim).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 23 21:33:11 UTC 2022 - mcepl@cepl.eu
|
Thu Mar 12 12:09:34 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
- Update to version 2.1.0~beta3+git.1647772157.43ebb949:
|
- No need to namespace luajit with update-alternatives, we really
|
||||||
* Fix soft-float IR_POW splitting.
|
want just one version of it to be provided to keep things
|
||||||
* Fix BC_UCLO insertion for returns.
|
simple
|
||||||
* Fix compiler warning.
|
|
||||||
* Revert to trival pow() optimizations to prevent inaccuracies.
|
|
||||||
* Fix string buffer COW handling, part 2.
|
|
||||||
* Fix install docs for Android.
|
|
||||||
* *BSD: Fix getentropy() declaration.
|
|
||||||
* Fix string buffer COW handling.
|
|
||||||
* Fix command-line argv handling.
|
|
||||||
* Don't export internal symbol.
|
|
||||||
* Fix pow() optimization inconsistencies.
|
|
||||||
* Always exit after machine code page protection change fails.
|
|
||||||
* Fix FOLD rule for BUFHDR append with intervening buffer use.
|
|
||||||
* Fix compiled error handling for buffer methods.
|
|
||||||
* Prevent unroll across BC_ITERN.
|
|
||||||
* Prevent replay of buffer operation for PHI operands.
|
|
||||||
* Save trace recorder state around VM event call.
|
|
||||||
* Bump copyright date.
|
|
||||||
* FFI: Ensure library is loaded before de-serializing FFI types.
|
|
||||||
* Fix HREFK forwarding vs. table.clear().
|
|
||||||
* Fix FOLD rule for BUFHDR append.
|
|
||||||
* OSX: Disable unreliable assertion for external frame unwinding.
|
|
||||||
* Limit exponent range in number parsing.
|
|
||||||
* Fix tonumber("-0") in dual-number mode.
|
|
||||||
* Limit work done in SINK pass.
|
|
||||||
* Fix ABC FOLD rule with constants.
|
|
||||||
* Prevent CSE of a REF_BASE operand across IR_RETF.
|
|
||||||
* Windows: Fix binary output of jit.bcsave to stdout.
|
|
||||||
* Fix FOLD rule for x-0.
|
|
||||||
* Update Android build docs.
|
|
||||||
* Update Android build docs.
|
|
||||||
* ARM64: Fix pcall() error case.
|
|
||||||
* OSX/ARM64: Fix external unwinding.
|
|
||||||
* Fix string buffer method recording.
|
|
||||||
* Fix interaction of profiler and ITERN recording.
|
|
||||||
* Fix compilation of multi-result call to next().
|
|
||||||
* ARM64: Fix IR_HREF code generation.
|
|
||||||
* MIPS64: Fix soft-float IR_TOSTR.
|
|
||||||
* MIPS: Fix register allocation in assembly of HREF.
|
|
||||||
* Fix compiler warning.
|
|
||||||
* Windows/x64: Document MSVC flags for C++ exception interoperability.
|
|
||||||
* FFI: Ensure returned string is alive in ffi.typeinfo().
|
|
||||||
* OSX/ARM64: Disable unwind info.
|
|
||||||
* Fix stack allocation after on-trace stack check.
|
|
||||||
* Fix ITERN blacklisting.
|
|
||||||
* Ensure ITERN forward progress on interpreter bailout.
|
|
||||||
* ARM64: Reorder interpreter stack frame and fix unwinding.
|
|
||||||
* Don't bail out to interpreter to JLOOP originating from ITERN.
|
|
||||||
* FFI: Don't load PC from non-function object in FFI continuation.
|
|
||||||
* FFI: Don't load PC from non-function object in FFI continuation.
|
|
||||||
* FFI: Fix missing cts->L initialization in argv2ctype().
|
|
||||||
* OSX/ARM64: Disable external unwinding for now.
|
|
||||||
* Compile table traversals: next(), pairs(), BC_ISNEXT/BC_ITERN.
|
|
||||||
* Use IR_HIOP for generalized two-register returns.
|
|
||||||
* Refactor table traversal.
|
|
||||||
* ARM: Fix symbol display in trace disassembly.
|
|
||||||
* Refactor IR_TMPREF generation.
|
|
||||||
* Refactor IR_VLOAD to take an offset.
|
|
||||||
* MIPS: Fix trace linking.
|
|
||||||
* String buffers, part 4b: Improve de-serialization checks.
|
|
||||||
* String buffers, part 4a: Add metatable serialization dictionary.
|
|
||||||
* Consider slots used by upvalues in use-def analysis.
|
|
||||||
* Prevent loop in snap_usedef().
|
|
||||||
* Fix io.close() error message.
|
|
||||||
* Fix io.close().
|
|
||||||
* Fix minilua vararg stack handling.
|
|
||||||
* PS4: Fix compile.
|
|
||||||
* Avoid out-of-range number of results when compiling select(k, ...).
|
|
||||||
* String buffers, part 3d: Compile string buffer methods and functions.
|
|
||||||
* Minor improvements of optimizations.
|
|
||||||
* Fix error message in lj_lib_checkintrange().
|
|
||||||
* String buffers, part 2f: Prevent self-put of buffer.
|
|
||||||
* String buffers, part 3c: Add IRBUFHDR_WRITE mode.
|
|
||||||
* Fix IRXLOAD_* mode bits description.
|
|
||||||
* String buffers, part 3b: Change IR_BUFHDR op2 mode bits to mode.
|
|
||||||
* String buffers, part 3a: Add IR_TMPREF for passing TValues to helpers.
|
|
||||||
* Add IRCONV_NONE for pass-through INT to I64/U64 type change.
|
|
||||||
* Fix jit.dump() output for IR_CONV.
|
|
||||||
- Patches broken in the need of rebase (temporarily switched off):
|
|
||||||
- 0004-Add-ppc64-support-based-on-koriakin-GitHub-patchset.patch
|
|
||||||
- luajit-ppc64-replace-asserts.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 27 20:20:36 UTC 2021 - Fabian Vogt <fvogt@suse.com>
|
Thu Mar 12 11:42:21 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
- Replace luajit-ppc64-remove-asserts.patch with
|
- Update to 2.2.0:
|
||||||
luajit-ppc64-replace-asserts.patch to use the proper assert
|
* The v2.2 release of moonjit brings many new features that bring the
|
||||||
functions instead of removing them.
|
project closer to its aim of unifying LuaJIT forks and compatibility
|
||||||
|
with Lua.
|
||||||
|
- Do not suffix the version anymore as we support all lua variants,
|
||||||
|
removes the patch:
|
||||||
|
* luajit-lua-versioned.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 25 21:55:16 UTC 2021 - Michael Gorse <mgorse@suse.com>
|
Wed Dec 18 09:05:04 UTC 2019 - Michel Normand <normand@linux.vnet.ibm.com>
|
||||||
|
|
||||||
- Add luajit-ppc64-remove-asserts.patch: remove calls to
|
- Ignore make check error for PowerPC until upstream solved issue
|
||||||
lua_assert. Fixes the build with our revision (bsc#1191615).
|
https://github.com/moonjit/moonjit/issues/40
|
||||||
- Add luajit-s390x.patch: add s390x support, based on Fedora's
|
- do the same for %arm rather than to disable all %check.
|
||||||
patch and ported to our revision.
|
|
||||||
- Remove ExcludeArch, since package currently builds on s390x.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 7 15:09:55 UTC 2021 - Michael Gorse <mgorse@suse.com>
|
Mon Dec 16 09:07:37 UTC 2019 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
- Exclude s390x for now. There is a not-yet-upstreamed port
|
- Disable %check on %arm until the following issue is fixed:
|
||||||
available, but we would need to rebase it for our release.
|
https://github.com/moonjit/moonjit/issues/9
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 12 17:15:55 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
Thu Dec 12 14:12:25 UTC 2019 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
- Clean up SPEC. We don't need update-alternatives after all.
|
- Use %_lib
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 29 17:17:36 UTC 2021 - munix9@googlemail.com
|
Mon Dec 9 12:54:59 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
- Update to version 2.1.0~beta3+git294.e9577376:
|
- Obsolete/provide lua51-luajit as it was the old luajit name
|
||||||
* Disable unreliable assertion for external frame unwinding.
|
|
||||||
* Flush and close output file after profiling run.
|
|
||||||
* Avoid conflict between 64 bit lightuserdata and ITERN key.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 24 10:15:35 UTC 2021 - munix9@googlemail.com
|
Fri Dec 6 07:44:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
- Update to version 2.1.0~beta3+git291.3f9389ed:
|
|
||||||
* Throw any errors before stack changes in trace stitching.
|
|
||||||
* DynASM/x86: Add missing escape in pattern.
|
|
||||||
* Fix HTML.
|
|
||||||
* String buffers, part 2e: add serialization string dictionary.
|
|
||||||
* DynASM/ARM64: Fix LSL/BFI* encoding with variable shifts.
|
|
||||||
* Fix MinGW static build.
|
|
||||||
* Fix dependencies.
|
|
||||||
* Fix IR_BUFHDR assembly.
|
|
||||||
|
|
||||||
|
- Fork of luajit with more active upstream
|
||||||
|
- Version 2.1.2 building on top of 2.1.0-beta3 with following goodies:
|
||||||
|
* fix for CVE-2019-19391
|
||||||
|
* Support for ppc64 ppc64le s390 s390x
|
||||||
|
- Still carry the patch luajit-lua-versioned.patch to mark it as
|
||||||
|
compatible with lua 5.1, future 2.2 release should contain
|
||||||
|
support for 5.2 and 5.3 release of LUA
|
||||||
|
|||||||
195
luajit.spec
195
luajit.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package luajit
|
# spec file for package luajit2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -15,119 +15,182 @@
|
|||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%define abi_ver 5.1
|
||||||
# These numbers are from readelf -a /usr/lib*/lib*.so* |grep soname (dots replaced by underscores)
|
%define so_ver 2
|
||||||
%define lib_version 5_1
|
%define lib_ver 5_1-%{so_ver}
|
||||||
%define so_version 2
|
%define major 2.1
|
||||||
%define upname LuaJIT
|
%define minor 20250826
|
||||||
|
%define upstream 1756211046
|
||||||
Name: luajit
|
Name: luajit
|
||||||
Version: 5.1.2.1.0+git.1731601260.fe71d0f
|
Version: %{major}.%{minor}
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: JIT compiler for Lua language
|
Summary: JIT compiler for Lua language
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://luajit.org/
|
URL: https://github.com/openresty/%{name}
|
||||||
Source0: %{upname}-%{version}.tar.xz
|
|
||||||
|
Source0: https://github.com/openresty/luajit2/archive/refs/tags/v%{major}-%{minor}.tar.gz#/luajit2-%{major}-%{minor}.tar.gz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
# PATCH-FIX-OPENSUSE luajit-lua-versioned.patch mcepl@suse.com
|
# https://patch-diff.githubusercontent.com/raw/openresty/luajit2/pull/236.patch#/riscv64-support.patch#/riscv64-support.patch
|
||||||
# Because we obsolete moonjit with version number higher than %%{version} we have to emulate Epoch
|
Patch0: riscv64-support.patch
|
||||||
Patch0: luajit-lua-versioned.patch
|
# https://github.com/openresty/luajit2/pull/245/commits/8e40aca7b3a919456b15698273e9b00e9250e769.patch#/loong64-support.patch
|
||||||
# https://salsa.debian.org/lua-team/luajit/-/raw/master/debian/patches/0002-Enable-debugging-symbols-in-the-build.patch
|
Patch1: loong64-support.patch
|
||||||
Patch2: 0002-Enable-debugging-symbols-in-the-build.patch
|
|
||||||
# https://salsa.debian.org/lua-team/luajit/-/raw/master/debian/patches/0003-Get-rid-of-LUAJIT_VERSION_SYM-that-changes-ABI-on-ev.patch
|
|
||||||
Patch3: 0003-Get-rid-of-LUAJIT_VERSION_SYM-that-changes-ABI-on-ev.patch
|
|
||||||
# Most recent s390x patches at https://github.com/luajit/luajit/pull/631
|
|
||||||
Patch4: luajit-s390x.patch
|
|
||||||
# PPC64 patches are out of sync
|
|
||||||
# # https://salsa.debian.org/lua-team/luajit/-/raw/master/debian/patches/0004-Add-ppc64-support-based-on-koriakin-GitHub-patchset.patch
|
|
||||||
# # Patch again out of sync, gh#LuaJIT/LuaJIT#140
|
|
||||||
# Patch5: 0004-Add-ppc64-support-based-on-koriakin-GitHub-patchset.patch
|
|
||||||
# Patch6: luajit-ppc64-replace-asserts.patch
|
|
||||||
BuildRequires: git
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
Requires: %{name}-%{lib_version}-%{so_version} = %{version}
|
BuildRequires: lua-macros
|
||||||
|
Requires: lib%{name}-%{lib_ver} = %{version}
|
||||||
Provides: lua51-luajit = %{version}-%{release}
|
Provides: lua51-luajit = %{version}-%{release}
|
||||||
Obsoletes: lua51-luajit <= 2.2.0
|
Obsoletes: lua51-luajit < %{version}
|
||||||
Provides: moonjit = %{version}-%{release}
|
Provides: moonjit = %{version}-%{release}
|
||||||
Obsoletes: moonjit <= 2.2.0
|
Obsoletes: moonjit < %{version}
|
||||||
|
Provides: lua = %{version}-%{release}
|
||||||
# lj_arch.h:441:2: error: #error "No target architecture defined"
|
# lj_arch.h:441:2: error: #error "No target architecture defined"
|
||||||
ExclusiveArch: x86_64 %ix86 aarch64 %arm ppc mips mips64 mips64el s390x
|
# ExclusiveArch: x86_64 %%{ix86} aarch64 %%{arm} ppc mips mips64 mips64el s390x
|
||||||
|
# Both lua51 and luajit use %%{_libdir}/lua/%%{abi_ver}
|
||||||
|
Provides: lua51
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
BuildRequires: lua-interpreter
|
||||||
|
Requires: alts
|
||||||
|
Requires: lua-interpreter
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A Just-In-Time Compiler for Lua language
|
A Just-In-Time Compiler for Lua language.
|
||||||
|
|
||||||
%package -n libluajit-%{lib_version}-%{so_version}
|
%package -n lib%{name}-%{lib_ver}
|
||||||
Summary: Library for JIT Lua compiler
|
Summary: Library for LuaJIT2 compiler
|
||||||
Provides: %{name}-%{lib_version}-%{so_version} = %{version}-%{release}
|
Provides: lib%{name}-%{lib_ver} = %{version}
|
||||||
|
%ifarch aarch64 x86_64 ppc64 ppc64le s390x riscv64
|
||||||
|
Provides: liblua.so.5.1()(64bit)
|
||||||
|
%else
|
||||||
|
Provides: liblua.so.5.1
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n libluajit-%{lib_version}-%{so_version}
|
%description -n lib%{name}-%{lib_ver}
|
||||||
Libraries to use JIT Lua compiler
|
Libraries to use LuaJIT2 compiler.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Devel files for %{name}
|
Summary: Devel files for %{name}
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: luajit-%{lib_version}-%{so_version} = %{version}
|
Requires: lib%{name}-%{lib_ver} = %{version}
|
||||||
|
Requires: lua-macros
|
||||||
|
Conflicts: lua-devel
|
||||||
Provides: moonjit-devel = %{version}-%{release}
|
Provides: moonjit-devel = %{version}-%{release}
|
||||||
Obsoletes: moonjit-devel <= 2.2.0
|
Obsoletes: moonjit-devel < %{version}
|
||||||
Provides: libluajit-devel = %{version}-%{release}
|
Provides: libluajit-devel = %{version}-%{release}
|
||||||
|
Provides: lua-devel = %{version}
|
||||||
|
Provides: Lua(devel) = %{abi_ver}
|
||||||
|
Provides: pkgconfig(lua) = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Devel files for luajit package
|
Devel files for %{name} package.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{upname}-%{version}
|
%autosetup -p1 -n luajit2-%{major}-%{minor}
|
||||||
|
|
||||||
# Fix variables
|
|
||||||
sed -i "s,PREFIX= %{_prefix}/local,PREFIX= %{_prefix}," Makefile
|
|
||||||
sed -i "s,%{_libexecdir},%{_libdir}," etc/luajit.pc
|
|
||||||
|
|
||||||
# Unfortunately, tar_scm doesn't use git archive (gh#openSUSE/obs-service-tar_scm#144)
|
|
||||||
%global realver 2.1.%(echo '%{version}' | cut -d. -f 6)
|
|
||||||
echo '%{version}' | cut -d. -f 6 >.relver
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
|
||||||
%make_build %{?_make_output_sync} \
|
%make_build %{?_make_output_sync} \
|
||||||
Q= \
|
Q= \
|
||||||
DYNAMIC_CC="cc -fPIC" \
|
DYNAMIC_CC="cc -fPIC" \
|
||||||
LDCONFIG="true" \
|
LDCONFIG="true" \
|
||||||
TARGET_AR="ar rcus" \
|
TARGET_AR="ar rcus" \
|
||||||
TARGET_STRIP=: \
|
TARGET_STRIP=: \
|
||||||
MULTILIB=%{_lib}
|
PREFIX=%{_prefix} \
|
||||||
|
MULTILIB=%{_lib} \
|
||||||
|
CFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install \
|
%make_install \
|
||||||
INSTALL_LIB="%{buildroot}%{_libdir}" \
|
|
||||||
DYNAMIC_CC="cc -fPIC" \
|
DYNAMIC_CC="cc -fPIC" \
|
||||||
LDCONFIG="true" \
|
LDCONFIG="true" \
|
||||||
TARGET_AR="ar rcus" \
|
TARGET_AR="ar rcus" \
|
||||||
TARGET_STRIP=: \
|
TARGET_STRIP=: \
|
||||||
|
PREFIX=%{_prefix} \
|
||||||
MULTILIB=%{_lib}
|
MULTILIB=%{_lib}
|
||||||
|
|
||||||
# remove static lib, not needed
|
# remove static lib, not needed
|
||||||
rm %{buildroot}%{_libdir}/*.a
|
rm %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
# Create runnable binary
|
# Create runnable binary
|
||||||
ln -sf %{_bindir}/luajit-%{lib_version}-%{realver} %{buildroot}%{_bindir}/luajit
|
ln -sf %{_bindir}/luajit-%{major}.%{upstream} %{buildroot}%{_bindir}/luajit
|
||||||
|
%if %{with libalternatives}
|
||||||
|
# alternatives - create configuration file
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/libalternatives/lua
|
||||||
|
cat > %{buildroot}%{_datadir}/libalternatives/lua/52.conf <<EOF
|
||||||
|
binary=%{_bindir}/luajit
|
||||||
|
man=luajit
|
||||||
|
EOF
|
||||||
|
%else
|
||||||
|
# update-alternatives
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
touch "%{buildroot}%{_sysconfdir}/alternatives/%{name}"
|
||||||
|
ln -sf "%{_sysconfdir}/alternatives/%{name}" "%{buildroot}%{_bindir}/%{name}"
|
||||||
|
touch "%{buildroot}%{_sysconfdir}/alternatives/%{name}.1%{ext_man}"
|
||||||
|
ln -sf "%{_sysconfdir}/alternatives/%{name}.1%{ext_man}" \
|
||||||
|
"%{buildroot}%{_mandir}/man1/%{name}.1%{ext_man}"
|
||||||
|
%endif
|
||||||
|
|
||||||
%post -n libluajit-%{lib_version}-%{so_version} -p /sbin/ldconfig
|
# Compat link with older unprefixed library and with soname 0 from deb/etc
|
||||||
%postun -n libluajit-%{lib_version}-%{so_version} -p /sbin/ldconfig
|
chmod +x %{buildroot}%{_libdir}/*
|
||||||
|
ln -s libluajit-%{abi_ver}.so.%{so_ver} \
|
||||||
|
%{buildroot}%{_libdir}/liblua%{abi_ver}.so.%{abi_ver}.%{so_ver}
|
||||||
|
ln -s libluajit-%{abi_ver}.so.%{so_ver} \
|
||||||
|
%{buildroot}%{_libdir}/liblua%{abi_ver}.%{so_ver}.so
|
||||||
|
ln -s %{_libdir}/liblua%{abi_ver}.%{so_ver}.so \
|
||||||
|
%{buildroot}%{_libdir}/liblua.so
|
||||||
|
ln -s luajit.pc %{buildroot}%{_libdir}/pkgconfig/lua.pc
|
||||||
|
|
||||||
|
%if %{without libalternatives}
|
||||||
|
%post
|
||||||
|
%{_sbindir}/update-alternatives --install \
|
||||||
|
%{_bindir}/lua lua %{_bindir}/lua%{abi_ver} 52 \
|
||||||
|
--slave %{_mandir}/man1/lua.1%{ext_man} lua.1%{ext_man} %{_mandir}/man1/lua%{abi_ver}.1%{ext_man}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ "$1" = 0 ] ; then
|
||||||
|
%{_sbindir}/update-alternatives --remove lua %{_bindir}/lua%{abi_ver}
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n lib%{name}-%{lib_ver}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYRIGHT
|
%{_bindir}/%{name}-%{major}.%{upstream}
|
||||||
%doc README
|
%{_bindir}/%{name}
|
||||||
|
%{_datadir}/%{name}-%{major}
|
||||||
|
%dir %{_libdir}/lua
|
||||||
|
%dir %{_libdir}/lua/%{abi_ver}
|
||||||
|
%dir %{_datadir}/lua
|
||||||
|
%dir %{_datadir}/lua/%{abi_ver}
|
||||||
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||||
|
%if %{with libalternatives}
|
||||||
|
%{_datadir}/libalternatives/lua/52.conf
|
||||||
|
%else
|
||||||
|
# alternatives
|
||||||
|
%{_bindir}/lua
|
||||||
|
%{_mandir}/man1/lua.1%{?ext_man}
|
||||||
|
%ghost %{_sysconfdir}/alternatives/lua
|
||||||
|
%ghost %{_sysconfdir}/alternatives/lua.1%{ext_man}
|
||||||
|
%endif
|
||||||
|
|
||||||
%{_bindir}/luajit
|
%files -n lib%{name}-%{lib_ver}
|
||||||
%{_bindir}/luajit-%{lib_version}
|
%{_libdir}/lib%{name}-%{abi_ver}.so.%{so_ver}
|
||||||
%{_bindir}/luajit-%{lib_version}-%{realver}
|
%{_libdir}/lib%{name}-%{abi_ver}.so.%{major}.%{upstream}
|
||||||
%{_mandir}/man1/luajit-%{lib_version}.1%{?ext_man}
|
|
||||||
%{_datadir}/luajit-%{lib_version}-2.1
|
|
||||||
|
|
||||||
%files -n libluajit-%{lib_version}-%{so_version}
|
|
||||||
%{_libdir}/libluajit-5.1.so.*
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/luajit-%{lib_version}-2.1
|
%{_includedir}/luajit-%{major}
|
||||||
%{_libdir}/libluajit-5.1.so
|
%{_libdir}/libluajit-%{abi_ver}.so
|
||||||
|
%{_libdir}/liblua.so
|
||||||
|
%{_libdir}/liblua%{abi_ver}.%{so_ver}.so
|
||||||
|
%{_libdir}/liblua%{abi_ver}.so.%{abi_ver}.%{so_ver}
|
||||||
%{_libdir}/pkgconfig/luajit.pc
|
%{_libdir}/pkgconfig/luajit.pc
|
||||||
|
%{_libdir}/pkgconfig/lua.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
BIN
luajit2-2.1-20250826.tar.gz
LFS
Normal file
BIN
luajit2-2.1-20250826.tar.gz
LFS
Normal file
Binary file not shown.
11370
riscv64-support.patch
Normal file
11370
riscv64-support.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user