pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: devel/monotone build fails

Ok, with the following patches (one revised from the previous mail)
monotone builds, but I haven't tried to run it yet.

For the 2nd patch, a reference is made to "borrowed from lua/",
but the current version of that in pkgsrc looks quite different.
Since the whole concept of LUA_ENVIRONINDEX seems to have disappeared
I just commented it out.


--- src/lua.hh.orig     2011-03-26 06:40:59.000000000 +0000
+++ src/lua.hh
@@ -10,6 +10,7 @@
 #ifndef __LUA_HH__
 #define __LUA_HH__
 #include <lua.hpp>
 #include <map>
@@ -17,6 +18,12 @@
 struct lua_State;
+/* Used only for default argument as below */
+#define LUAI_MAXCSTACK   8000
 // This Lua object represents a single imperative transaction with the lua
 // interpreter. if it fails at any point, all further commands in the
 // transaction are ignored. it cleans the lua stack up when it is


--- src/ 2011-03-26 06:40:59.000000000 +0000
+++ src/
@@ -118,7 +118,7 @@ static FILE **newfile (lua_State *LS) {
   lua_setmetatable(LS, -2);
   lua_pushcfunction(LS, io_fclose);
-  lua_setfield(LS, LUA_ENVIRONINDEX, "__close");
+  /* lua_setfield(LS, LUA_ENVIRONINDEX, "__close"); */
   return pf;

___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/    -- 'this bath is too hot.'

Attachment: pgpQ0WQpX1mMC.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index