Remove the lua52 FLAVOR of luajit which build with LUAJIT_ENABLE_LUA52COMPAT

defined and wrongly patched luajit to set the abi to lua 5.2.
luajit can not load lua modules built against the lua 5.2 headers even
when build with LUAJIT_ENABLE_LUA52COMPAT.

Even without LUAJIT_ENABLE_LUA52COMPAT luajit has some 5.2 semantics,
the define enables a few other things such making unpack() available
as table.unpack().

No system vendors seem to ship a version of luajit with the define set
and the consensus is to just remove the FLAVOR.

Remove abieber@ as MAINTAINER at his request.

ok jca@ abieber@ juanfra@
This commit is contained in:
jsg 2016-11-06 05:44:21 +00:00
parent 44d9387097
commit cdd20263f4

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2016/03/18 23:12:18 naddy Exp $
# $OpenBSD: Makefile,v 1.20 2016/11/06 05:44:21 jsg Exp $
ONLY_FOR_ARCHS = powerpc i386 amd64
# arm needs EABI/aapcs
@ -14,8 +14,6 @@ CATEGORIES = lang
HOMEPAGE = http://luajit.org/
MAINTAINER = Aaron Bieber <abieber@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM = Yes
@ -25,6 +23,7 @@ MASTER_SITES = ${HOMEPAGE}download/
MODULES = lang/lua
MODLUA_SA= Yes
MODLUA_VERSION= 5.1
MODULES += gcc4
MODGCC4_ARCHS = powerpc
@ -43,11 +42,6 @@ USE_GMAKE = Yes
SUBST_VARS+= MODLUA_VERSION
# http://luajit.org/extensions.html
.if defined(FLAVOR) && ${FLAVOR:Mlua52}
MAKE_FLAGS += XCFLAGS="-DLUAJIT_ENABLE_LUA52COMPAT"
.endif
pre-configure:
${SUBST_CMD} ${WRKDIST}/Makefile \
${WRKDIST}/etc/luajit.pc \