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/liolib.cc",
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.

$NetBSD$

--- 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__
 
+#define LUA_COMPAT_ALL
 #include <lua.hpp>
 
 #include <map>
@@ -17,6 +18,12 @@
 
 struct lua_State;
 
+#ifndef LUA_GLOBALSINDEX
+/* Used only for default argument as below */
+#define LUA_GLOBALSINDEX LUAI_FIRSTPSEUDOIDX
+#define LUAI_MAXCSTACK   8000
+#endif
+
 // 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


$NetBSD$

--- src/luaext_platform.cc.orig 2011-03-26 06:40:59.000000000 +0000
+++ src/luaext_platform.cc
@@ -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.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

Attachment: pgpQ0WQpX1mMC.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index