Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 706156

Summary: dev-lang/luajit-2.1.9999 - fix interpreter path
Product: Gentoo Linux Reporter: Dmitriy Dyomin <dmitrodem>
Component: OverlaysAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: multilib.patch

Description Dmitriy Dyomin 2020-01-23 12:36:37 UTC
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.