Skip to content

Commit 97618ae

Browse files
mmdbalkhiCalandracas606
authored andcommitted
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]
1 parent e1836a1 commit 97618ae

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

srcpkgs/LuaJIT/template

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
# Template file for 'LuaJIT'
22
pkgname=LuaJIT
33
# the minor version is the contents of the .relver file in the source tarball
4-
version=2.1.1736781742
4+
version=2.1.1748459687
55
revision=1
6-
_commit_hash=a4f56a459a588ae768801074b46ba0adcfb49eb1
6+
_commit_hash=f9140a622a0c44a99efb391cc1c2358bc8098ab7
77
build_style=gnu-makefile
88
hostmakedepends="lua52-BitOp"
99
short_desc="Just-In-Time Compiler for Lua"
1010
maintainer="Daniel Martinez <danielmartinez@cock.li>"
1111
license="MIT"
1212
homepage="https://www.luajit.org"
1313
distfiles="https://repo.or.cz/luajit-2.0.git/snapshot/${_commit_hash}.tar.gz"
14-
checksum=dee14dd4d199f2d548bdcec2ab0b0693de602213a3d72aa9457ecd3e67c40e7a
15-
16-
build_options="lua52compat"
17-
desc_option_lua52compat="higher compatibility with lua 5.2"
14+
checksum=a1af74fca9971355dc6d4cf32d56e278aa8897898ab5f62725de5aeb730ee381
1815

1916
_host_cc="cc"
2017
if [ -n "$CROSS_BUILD" ]; then
@@ -31,9 +28,7 @@ if [ -n "$CROSS_BUILD" ]; then
3128
fi
3229

3330
pre_build() {
34-
if [ "$build_option_lua52compat" ]; then
35-
make_build_args+=" XCFLAGS=-DLUAJIT_ENABLE_LUA52COMPAT"
36-
fi
31+
make_build_args+=" XCFLAGS=-DLUAJIT_ENABLE_LUA52COMPAT"
3732
}
3833

3934
do_build() {

0 commit comments

Comments
 (0)