Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909417 - dev-lua/lua-cjson Incorrect library location
Summary: dev-lua/lua-cjson Incorrect library location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-06-30 20:09 UTC by Marcin Deranek
Modified: 2023-07-02 19:36 UTC (History)
0 users

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 Marcin Deranek 2023-06-30 20:09:54 UTC
dev-lua/lua-cjson-2.1.0.10 puts architecture dependent library in the wrong location:

$ equery files -f obj lua-cjson|egrep '\.(so|lua)'
/usr/share/lua/5.1/cjson.so
/usr/share/lua/5.1/cjson/util.lua

Trying to use cjson fails on amd64 with the following error:

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

Correct location should be:

$ equery files -f obj lua-cjson|egrep '\.(so|lua)'
/usr/lib64/lua/5.1/cjson.so
/usr/share/lua/5.1/cjson/util.lua
Comment 1 Larry the Git Cow gentoo-dev 2023-07-02 19:36:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc3742abecf4a9aaffffd206a424796fe2106793

commit bc3742abecf4a9aaffffd206a424796fe2106793
Author:     Marcin Deranek <marcin.deranek@booking.com>
AuthorDate: 2023-06-30 20:17:55 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2023-07-02 19:36:17 +0000

    dev-lua/lua-cjson: correct library path
    
    Closes: https://bugs.gentoo.org/909417
    Signed-off-by: Marcin Deranek <marcin.deranek@slonko.net>
    Closes: https://github.com/gentoo/gentoo/pull/31680
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../{lua-cjson-2.1.0.10.ebuild => lua-cjson-2.1.0.10-r1.ebuild}         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)