Commit Graph
7 Commits
Author SHA1 Message Date
Josef Schlehofer f8b35d48b9 luajit2: update to 2026-07-31
Also refresh 020-riscv64-support.patch from the current state of
openresty/luajit2#236. The previous snapshot defined
asm_tail_prep(ASMState *as), but since openresty/luajit2 commit
68354f44 the callers pass a second TraceNo argument, so the riscv64
build failed with:

  lj_asm.c:2559:5: error: too many arguments to function 'asm_tail_prep'

The refreshed patch carries the upstream adaptation and restores the
build. The other four patches apply unchanged.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit 578758e1f6)
2026-08-15 12:27:31 +02:00
Josef Schlehofer a6a052ee8c luajit2: fix build and runtime on powerpc
luajit2 currently fails to link for powerpc: lj_vm.o emits PLT calls
that force BSS-PLT, which the inline-PLT relocations emitted by GCC 12
and newer do not support. Add the same GOT-based fix that
lang/lua/luajit has carried as 060-ppc-musl.patch since 2019.

With that in place the package builds, but ipairs() and pairs() turn
out to be broken on 32-bit big-endian soft-float targets. Both are
regressions in luajit2's PPC64 patch and do not affect upstream
LuaJIT. To be submitted to openresty/luajit2 as well.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit a6b248d6b8)
2026-08-15 12:27:31 +02:00
Seo Suchan f0c97a4f8b luajit2: update test-version.sh to actual test
old just disabled version test, but as LuaJIt 2.1. part is stable.
So we can use that for test if luajit2 itself able to run.

Fixes: c7ca6d46f7 luajit2: ("add test-version.sh")
Suggested-by: Josef Schlehofer <pepe.schlehofer@gmail.com>

Signed-off-by: Seo Suchan <tjtncks@gmail.com>
(cherry picked from commit 5504291b81)
2026-08-15 12:27:31 +02:00
Seo Suchan 064e33e045 luajit2: add test-version.sh
luajit2 use build number at -v, but releases are named by date

Signed-off-by: Seo Suchan <tjtncks@gmail.com>
(cherry picked from commit c7ca6d46f7)
2026-08-15 12:27:31 +02:00
Javier Marcet 4b017dedf3 luajit2: update to v2.1-20260227
For changes, see tagged commit:
https://github.com/openresty/luajit2/releases/tag/v2.1-20260227

Signed-off-by: Javier Marcet <javier@marcet.info>
(cherry picked from commit 1b59cb61a7)
2026-08-15 12:27:31 +02:00
Josef Schlehofer 1963efd55e luajit2: add riscv64 support
This adds support RISC-V64 to luajit2 by backporting
https://redirect.github.com/openresty/luajit2/pull/236

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
(cherry picked from commit 47525f3300)
2025-12-29 12:46:45 +01:00
Alexandru Ardelean 7eebedcdfc lua: move Lua packages under lang/lua sub-folder
There are roughly 50 Lua packages.
It's about time we consider a proposal for moving all of them
under a lang/lua sub-folder.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-17 08:46:33 +02:00