Created attachment 604056 [details, diff] multilib.patch right now, building dev-lang/luajit/luajit-2.1.9999.ebuild makes an interpreter search for its modules in the following paths: ;/usr/share/luajit-2.1.9999/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua which is wrong for the 64-bit architecture (paths should contain lib64). The proposed patch uses get_libdir() from multilib.eclass to correctly specify the search path for lua interpreter.