jirutka / luapak

Easily build a standalone executable for any Lua program
MIT License
200 stars 7 forks source link

Supporting Luarocks 3.0.1 #3

Closed 4mig4 closed 5 years ago

4mig4 commented 5 years ago

I believe you should not make your code dependent on a particular version of luarocks and if anything , if that must be the case then use the latest version Luarocks 3.0.1

luaver="" && [ -n "$luaver" ] || luaver=`/usr/bin/lua5.1 -e 'print(_VERSION:sub(5))'`; \
mkdir -p "/usr/local/lib/luarocks/rocks-5.1/luarocks/2.4.4-1/lua/luarocks"; \
lprefix=`echo "/usr/local/lib/luarocks/rocks-5.1/luarocks/2.4.4-1/lua" | sed 's,/lib/luarocks/.*,,'`; sed "s,LUAROCKS_PREFIX=.*,LUAROCKS_PREFIX=[[$lprefix]],g" /share/lua/$luaver/luarocks/site_config.lua > "/usr/local/lib/luarocks/rocks-5.1/luarocks/2.4.4-1/lua/luarocks/site_config.lua"
sed: can't read /share/lua/5.1/luarocks/site_config.lua: No such file or directory
Makefile.luarocks:13: recipe for target 'copy_site_config' failed
make: *** [copy_site_config] Error 2

Error: Failed installing dependency: https://luarocks.org/luarocks-2.4.4-1.src.rock - Build error: Failed installing.
jirutka commented 5 years ago

I believe you should not make your code dependent on a particular version of luarocks

If it were possible, it would be really great…

if that must be the case then use the latest version Luarocks 3.0.1

Maybe try to look when Luarocks 3.0 was released and when I wrote Luapak.