Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1367688 - LuaRocks doesn't respect multilib
Summary: LuaRocks doesn't respect multilib
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: luarocks
Version: el6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Alexandre Salim
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-17 08:56 UTC by Roman Tsisyk
Modified: 2016-08-26 15:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Roman Tsisyk 2016-08-17 08:56:15 UTC
Description of problem:

LuaRocks from EPEL6 installs shared libraries into wrong directory (/usr/lib instead of /usr/lib64).

Version-Release number of selected component (if applicable):

luarocks 2.1.2-1.el6

How reproducible:

Install luarocks from EPEL6 and then try to install some binary rock using luarocks install.

Steps to Reproduce:
1. docker run -t -i centos:6
2. yum install -y http://mirror.logol.ru/epel/6/x86_64/epel-release-6-8.noarch.rpm
3. yum install luarocks
4. yum install gcc unzip - see https://bugzilla.redhat.com/show_bug.cgi?id=1367681
5. luarocks install luafilesystem
6. lua
> require('lfs')

Actual results:

# luarocks install luafilesystem
Installing http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.3-2.src.rock...
Using http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.3-2.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/include -c src/lfs.c -o src/lfs.o
gcc -shared -o lfs.so -L/usr/lib src/lfs.o
Updating manifest for /usr/lib/luarocks/rocks


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

ls -l /usr/lib/lua/5.1/lfs.so 

Expected results:

On x86_64 shared libraries must be installed to /usr/lib64 instead of /usr/lib

ls -l /usr/lib64/lua/5.1/lfs.so 

Additional info:

cat /etc/luarocks/config-5.1.lua:
rocks_trees = {
   { name = [[user]], root = home..[[/.luarocks]] },
   { name = [[system]], root = [[/usr]], lib_dir = [[/usr/lib64/lua/5.1]] }
}

fix is to add lib_dir = [[/usr/lib64/lua/5.1]] on x86_64:
rocks_trees = {
   { name = [[user]], root = home..[[/.luarocks]] },
   { name = [[system]], root = [[/usr]], lib_dir = [[/usr/lib64/lua/5.1]] }
}

Comment 1 Roman Tsisyk 2016-08-26 15:47:33 UTC
any news?


Note You need to log in before you can comment on or make changes to this bug.