Package: luarocks
Version: 2.0.2-1
Severity: serious

This is the same problem as
https://bugs.launchpad.net/ubuntu/+source/luarocks/+bug/923161 : in
the architecture-independent luarocks package, the particular platform
of the build machine is wired in.

Examining luarocks_2.0.2-1_all.deb :
/usr/share/lua/5.1/luarocks/config.lua we see:

...
LUAROCKS_UNAME_S=[[Linux]]
LUAROCKS_UNAME_M=[[x86_64]]
...

The latter is obviously incorrect on all other architectures. This can
prevent the luarocks tool from being able to build packages. In Ubuntu
the results are worse since their build machine was i686. Debian
having LUAROCKS_UNAME_M=[[x86_64]] will at least trigger -fpic CFLAGS,
which is the most pressing problem for non-i386 platforms.

luarocks will automatically determine the system architecture, so if
these lines are omitted from config.lua the correct behavior results.

I posted a patch on the Ubuntu page, but it's not correct. config.lua
is generated at build time; the Debian build rules should just  'grep
-v' out the LUAROCKS_UNAME_ lines from config.lua at the time of
installation.

Feel free to do something more complicated instead, or mark the
package architecture any rather than all.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to