Issue 224 - Monotone does not compile with LUA 5.2(.2) (monotone)

[email protected]
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <0aa3c7001639b0d1e8176348e50bb607@localhost>
Hello,

A new issue has been created:

224 - Monotone does not compile with LUA 5.2(.2)
Project: monotone
Status: New
Reported by: Olaf Seibert
Labels:
 Type:Defect
 Priority:Medium

Description:

Steps to reproduce the problem:
-------------------------------

1. I tried to build the pkgsrc-packaged version of monotone-1.0, with lua-5.2.2 installed.
2. The build failed.

Expected result:
----------------

A clean build.

Actual results:
---------------

There are several issues:

Monotone uses several #defines which don't exist any more: LUA_GLOBALSINDEX, LUAI_MAXCSTACK, lua_strlen.

luaext_platform.cc uses another #define which does not exist any more: LUA_ENVIRONINDEX.
Looking for a quick fix it turned out that the function where it is used is trying something intimate with internal lua functions from liolib.c. However that stuff has been completely changed between lua 5.1 and 5.2. So a quick fix for somebody not intimate friends with lua *and* monotone is out of the question.

This is a serious portability problem!

Output of `mtn version --full`:
-------------------------------

--
Issue: https://code.monotone.ca/p/monotone/issues/224/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.