Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation against Lua 5.2. #24

Closed
wants to merge 1 commit into from

Conversation

haasken
Copy link

@haasken haasken commented May 6, 2014

Lua 5.1 replaced the function lua_open with a preprocessor macro which
called luaL_newstate. Lua 5.2 then removed lua_open entirely. Thus,
LMT won't build against Lua 5.2. This change replaces the call to
lua_open() with a call to luaL_newstate(), and since that function only
exists in Lua >= 5.1, a minimum version number of 5.1 was added to the
spec file BuildRequires.

Lua 5.1 replaced the function lua_open with a preprocessor macro which
called luaL_newstate.  Lua 5.2 then removed lua_open entirely.  Thus,
LMT won't build against Lua 5.2.  This change replaces the call to
lua_open() with a call to luaL_newstate(), and since that function only
exists in Lua >= 5.1, a minimum version number of 5.1 was added to the
spec file BuildRequires.
@morrone
Copy link
Member

morrone commented Oct 28, 2014

Patch cherry-picked onto master. Thanks!

@morrone morrone closed this Oct 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants