On 28 August 2014 06:23, Philipp Janda <siffie...@gmx.net> wrote: > Am 28.08.2014 um 10:33 schröbte Gunnar Zötl: >> Hmmm ok. But then, from the wiki I gather that LUA_LIBDIR should actually be >> the >> path where I find the lua libs, like liblua.a? Like LUA_INCDIR and LUA_BINDIR >> are the paths where I find the relevant includes and binaries. Plus, >> LUA_LIBDIR >> does not give me the complete path I need, which should be >> /usr/local/lib/lua/5.2, where LUA_LIBDIR is /usr/local/lib. Strangely enough, >> this is with both my self built luarocks and also with the one that is >> provided >> by ubuntu. >> >> Then there's the other paths, PREFIX, LIBDIR, LUADIR and CONFIR. These seem >> to >> be more suited for installation, apart from the fact that they all reside >> inside >> the rock dir. So again, the path where my lib should be installed to is not >> here. > > It's LIBDIR that you want. Install there and let LuaRocks handle the > rest (i.e. copy the installed files to the usual locations). This way it > can keep track of what has been installed by this rock.
Oops, I mixed it up in my example. >> I find this rather confusing. Plus, luarocks remove still does not remove my >> installed so file. > > I agree. The names are rather confusing (especially LIBDIR, LUA_LIBDIR, > LUA_DIR, and LUADIR. Maybe we can clean it up for LuaRocks 3.0 ...? Any suggestions? I guess changing all LUADIR to SHAREDIR would make more sense (on Unix at least), but I can't think of any better changes than that. Then we'd have: LIBDIR = where your rock's lib/lua/5.x files are installed SHAREDIR = where your rock's share/lua/5.x files are installed then for each external dependency Foo: FOO_DIR = base prefix for Foo FOO_LIBDIR = where Foo's lib/ files are installed (location of libfoo.so, e.g., /usr/lib) FOO_INCDIR = where Foo's include/ files are installed (location of foo.h, e.g., /usr/include) FOO_SHAREDIR = where Foo's share/ files are installed (e.g. /usr/share) and similarly LUA_DIR = base prefix for Lua (e.g. /usr/local) LUA_LIBDIR = where Lua's lib/ files (i.e., liblua.so) are installed (e.g. /usr/local/lib) LUA_INCDIR = where Lua's include/ files (i.e., lua.h) are installed (e.g. /usr/local/include) LUA_SHAREDIR = where Lua's share/ files are installed (it actually doesn't have any) At least it would do away with LUA_DIR vs. LUADIR. Obviously we'd have to keep the old ones around for compatibility... -- Hisham ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers