packages/lang/lua/luajit2
Josef Schlehofer 7b278a1a9e luajit2: fix the build on riscv64
Since the update to 2026-11-07, luajit2 fails to build on riscv64, on
the build bots and in the CI:

  Error: undefined opcode BC_BNOT

That version brings the bit operators backported from LuaJIT 3.0
(openresty/luajit2 commit a2ce8114f1), but the riscv64 interpreter from
020-riscv64-support.patch does not implement their bytecodes. The
current state of openresty/luajit2#236 does, so refresh the patch from
it. Apart from its header, the patch only gains the implementation of
the bit operators in src/vm_riscv64.dasc.

Fixes: 59d6781751 ("luajit2: update to 2026-11-07")
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-11-23 20:44:27 +01:00
..
patches luajit2: fix the build on riscv64 2026-11-23 20:44:27 +01:00
Makefile luajit2: fix the build on riscv64 2026-11-23 20:44:27 +01:00
test-version.sh
…