Dear developers,
I just checked out the latest luarocks source from git, and when doing a
local installation (to $HOME/opt/stow/luarocks-git), noticed that the
same directories appear multiple times in LUA_PATH and LUA_CPATH
generated by 'luarocks path'
Some of it is due to bin/luarocks and bin/luarocks-admin having multiple
package.path definitions; however, removing all of them still results in
duplicated directories.
Files attached. This is on Fedora 15 x86_64 with the system-installed
lua -- the only slightly odd thing is that it's a multilib 64-bit
system, with lua libraries in /usr/lib64/lua/5.1. I only overrode
--prefix to generate these files; my previous attempt to do a system
install (with --with-lua-lib set to the correct value) results in an
even longer LUA_PATH and LUA_CPATH!
We're hoping to integrate LuaRocks into our Lua packaging for the next
release cycle (Fedora 16), similar to how when installing Python eggs
and Ruby gems on Fedora, already-installed modules managed by the
system's package manager are detected. It'd probably require fixing some
multilib issues (even with --with-lua-lib passed, luarocks wants to
install new modules to "lib" rather than to "lib64"), but those are a
bit harder to debug with the additional noise due to the duplicate paths!
Do let me know if there's any information I can provide.
Thanks,
--
Michel Alexandre Salim
Fedora Contributor
GPG key ID: 78884778
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
export
LUA_PATH='/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;/home/michel/.luarocks/share/lua/5.1//?.lua;/home/michel/.luarocks/share/lua/5.1//?/init.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;/usr/local/share/lua/5.1//?.lua;/usr/local/share/lua/5.1//?/init.lua;/home/michel/.luarocks/share/lua/5.1//?.lua;/home/michel/.luarocks/share/lua/5.1//?/init.lua;./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib64/lua/5.1/?.lua;/usr/lib64/lua/5.1/?/init.lua'
export
LUA_CPATH='/home/michel/opt/stow/luarocks-git/lib/lua/5.1//?.so;/home/michel/.luarocks/lib/lua/5.1//?.so;/usr/local/lib/lua/5.1//?.so;/home/michel/.luarocks/lib/lua/5.1//?.so;./?.so;/usr/lib64/lua/5.1/?.so;/usr/lib64/lua/5.1/loadall.so'
#!/usr/bin/lua
package.path =
[[/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;]]..package.path
package.path =
[[/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;]]..package.path
local command_line = require("luarocks.command_line")
program_name = "luarocks-admin"
program_description = "LuaRocks repository administration interface"
commands = {
#!/usr/bin/lua
package.path =
[[/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;]]..package.path
package.path =
[[/home/michel/opt/stow/luarocks-git/share/lua/5.1//?.lua;/home/michel/opt/stow/luarocks-git/share/lua/5.1//?/init.lua;]]..package.path
local command_line = require("luarocks.command_line")
program_name = "luarocks"
program_description = "LuaRocks main command-line interface"
commands = {}
_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers