On Fri, Oct 22, 2010 at 8:40 PM, Tim Niemueller <niemuel...@kbsg.rwth-aachen.de> wrote: > Just wanted to let you know that I have filed half a dozen package review > requests for Kepler packages to Fedora. It's all I need to get roslua > (http://github.com/timn/roslua) to work, but as a side effect there will be > Kepler stuff in Fedora eventually.
Thanks for making Lua available in Fedora, Tim, although there remains an awkward issue which happened with LuaRocks and might bite other people. The canonical Lua Unix module path goes like /usr/local/share etc, whereas Fedora makes the Lua module path like /usr/share etc, which is consistent with the roles of /usr and /usr/share. However, a lot of makefiles (and LuaRocks) assumes the canonical module path, which can cause frustration. On Debian Lua is patched so that there are Lua module paths both in /usr (for Debian managed packages) and /usr/share (for user managed packages); #! /bin/sh /usr/share/dpatch/dpatch-run ## src_luaconf.h.dpatch by John V. Belmonte <jbelmo...@debian.org> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Set Lua's default PATH and CPATH. @DPATCH@ diff -urNad trunk~/src/luaconf.h trunk/src/luaconf.h --- trunk~/src/luaconf.h 2006-02-10 12:44:06.000000000 -0500 +++ trunk/src/luaconf.h 2006-02-17 21:32:55.000000000 -0500 @@ -83,13 +83,17 @@ #else #define LUA_ROOT "/usr/local/" +#define LUA_ROOT2 "/usr/" #define LUA_LDIR LUA_ROOT "share/lua/5.1/" +#define LUA_LDIR2 LUA_ROOT2 "share/lua/5.1/" #define LUA_CDIR LUA_ROOT "lib/lua/5.1/" +#define LUA_CDIR2 LUA_ROOT2 "lib/lua/5.1/" #define LUA_PATH_DEFAULT \ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua;" \ + LUA_LDIR2"?.lua;" LUA_LDIR2"?/init.lua" #define LUA_CPATH_DEFAULT \ - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so" + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR2"?.so;" LUA_CDIR"loadall.so" #endif Sorry for being somewhat OT, but I'm sure it will bite other people at some point. steve d. _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/