Am 26.11.2013 19:29 schröbte Reuben Thomas: > On 26 November 2013 06:00, Philipp Janda <siffie...@gmx.net> wrote: >> Nah, the multiarch support was more about finding external dependencies >> in the multiarch library directories than about storing extension >> modules in arch-specific locations. >> > > I understand now, thanks again for the explanation. But does it make sense > that rocks installs (especially as they might be system-wide, not > user-specific like mine) should be able to benefit from the same multiarch > support as for finding libs? >
I thought about that a bit, and it's not that simple. We could run `dpkg-architecture` on every luarocks call (maybe only when given a certain configure-flag), and add an architecture subdirectory to the rocks trees, but then *all* files installed by LuaRocks would be arch-specific (e.g. Lua files too). That would mean that Lua files would end up in `/usr/local/share/x86_64-linux-gnu/lua/5.2/...` (or similar) to avoid half-installed rocks. My preferred solution would be a check during `luarock install/remove` which only installs/removes the binary files when the same rock is already installed for another architecture. This would probably involve a change to the local manifest file format and to the build backends. I'm also not sure whether we should follow Debian on the multiarch host triplets: LuaRocks already has architecture identifiers for identifying binary rocks (e.g. linux-x86_64, or win32-x86), and those would work on any LuaRocks installation, not just on Debian-based OSes. If I find the time I will look into this, but don't hold your breath (I know, I probably should have said that four days ago) ... Philipp ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers