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
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: luarocks
Version: el6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Michel Alexandre Salim
QA Contact: Fedora Extras Quality Assurance
Depends On:
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:
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
3. yum install luarocks
4. yum install gcc unzip - see
5. luarocks install luafilesystem
6. lua
> require('lfs')

Actual results:

# luarocks install luafilesystem
Using switching to 'build' mode
gcc -O2 -fPIC -I/usr/include -c src/lfs.c -o src/lfs.o
gcc -shared -o -L/usr/lib src/lfs.o
Updating manifest for /usr/lib/luarocks/rocks

# lua
Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> =package.path
> 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 './'
	no file '/usr/lib64/lua/5.1/'
	no file '/usr/lib64/lua/5.1/'
stack traceback:
	[C]: in function 'require'
	stdin:1: in main chunk
	[C]: ?

ls -l /usr/lib/lua/5.1/ 

Expected results:

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

ls -l /usr/lib64/lua/5.1/ 

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.