Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513344 - dev-lang/luajit-2.0.2: does not respect libdir when looking for lua modules
Summary: dev-lang/luajit-2.0.2: does not respect libdir when looking for lua modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Rafael Martins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 504876 no-symlink-lib
  Show dependency tree
 
Reported: 2014-06-15 13:43 UTC by Michał Górny
Modified: 2015-03-17 01:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-06-15 13:43:45 UTC
$ lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require 'lxp'
> 

but...

$ luajit
LuaJIT 2.0.2 -- Copyright (C) 2005-2013 Mike Pall. http://luajit.org/
JIT: ON CMOV SSE2 SSE3 AMD K8 fold cse dce fwd dse narrow loop abc sink fuse
> require 'lxp'
stdin:1: module 'lxp' not found:
	no field package.preload['lxp']
	no file './lxp.lua'
	no file '/usr/share/luajit-2.0.2/lxp.lua'
	no file '/usr/local/share/lua/5.1/lxp.lua'
	no file '/usr/local/share/lua/5.1/lxp/init.lua'
	no file '/usr/share/lua/5.1/lxp.lua'
	no file '/usr/share/lua/5.1/lxp/init.lua'
	no file './lxp.so'
	no file '/usr/local/lib/lua/5.1/lxp.so'
	no file '/usr/lib/lua/5.1/lxp.so'
	no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: in function 'require'
	stdin:1: in main chunk
	[C]: at 0x00404d90
> 

It's looking in /usr/lib instead of /usr/lib64. This is going to break SYMLINK_LIB=no scenario & multilib support I'd like to add.
Comment 1 SpanKY gentoo-dev 2015-03-17 01:06:47 UTC
looks to be fixed with 2.0.3-r1

$ lua
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> require 'asdf'
stdin:1: module 'asdf' not found:
        no field package.preload['asdf']
        no file './asdf.lua'
        no file '/usr/share/lua/5.1/asdf.lua'
        no file '/usr/share/lua/5.1/asdf/init.lua'
        no file '/usr/lib64/lua/5.1/asdf.lua'
        no file '/usr/lib64/lua/5.1/asdf/init.lua'
        no file '/usr/share/lua/5.1/asdf.lua'
        no file '/usr/share/lua/5.1/asdf/init.lua'
        no file './asdf.so'
        no file '/usr/lib64/lua/5.1/asdf.so'
        no file '/usr/lib64/lua/5.1/asdf.so'
        no file '/usr/lib64/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?