luajit: update to 2.1.1748459687, enable LUAJIT_ENABLE_LUA52COMPAT

This enables Lua 5.2 compatibility APIs without changing the ABI
(still Lua 5.1). Required by some applications (e.g. Aegisub).

Co-authored-by: Daniel Martinez <danielpedromartinez@duck.com>
Closes: #55648 [via git-merge-pr]
This commit is contained in:
Komeil Parseh 2025-06-07 20:07:22 +03:30 committed by classabbyamp
parent e1836a1e8c
commit 97618aeef1
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5

View file

@ -1,9 +1,9 @@
# Template file for 'LuaJIT' # Template file for 'LuaJIT'
pkgname=LuaJIT pkgname=LuaJIT
# the minor version is the contents of the .relver file in the source tarball # the minor version is the contents of the .relver file in the source tarball
version=2.1.1736781742 version=2.1.1748459687
revision=1 revision=1
_commit_hash=a4f56a459a588ae768801074b46ba0adcfb49eb1 _commit_hash=f9140a622a0c44a99efb391cc1c2358bc8098ab7
build_style=gnu-makefile build_style=gnu-makefile
hostmakedepends="lua52-BitOp" hostmakedepends="lua52-BitOp"
short_desc="Just-In-Time Compiler for Lua" short_desc="Just-In-Time Compiler for Lua"
@ -11,10 +11,7 @@ maintainer="Daniel Martinez <danielmartinez@cock.li>"
license="MIT" license="MIT"
homepage="https://www.luajit.org" homepage="https://www.luajit.org"
distfiles="https://repo.or.cz/luajit-2.0.git/snapshot/${_commit_hash}.tar.gz" distfiles="https://repo.or.cz/luajit-2.0.git/snapshot/${_commit_hash}.tar.gz"
checksum=dee14dd4d199f2d548bdcec2ab0b0693de602213a3d72aa9457ecd3e67c40e7a checksum=a1af74fca9971355dc6d4cf32d56e278aa8897898ab5f62725de5aeb730ee381
build_options="lua52compat"
desc_option_lua52compat="higher compatibility with lua 5.2"
_host_cc="cc" _host_cc="cc"
if [ -n "$CROSS_BUILD" ]; then if [ -n "$CROSS_BUILD" ]; then
@ -31,9 +28,7 @@ if [ -n "$CROSS_BUILD" ]; then
fi fi
pre_build() { pre_build() {
if [ "$build_option_lua52compat" ]; then
make_build_args+=" XCFLAGS=-DLUAJIT_ENABLE_LUA52COMPAT" make_build_args+=" XCFLAGS=-DLUAJIT_ENABLE_LUA52COMPAT"
fi
} }
do_build() { do_build() {