lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On Fri, Jul 20, 2018 at 3:16 PM, Hisham <h@hisham.hm> wrote:
Hello list,

I am happy to announce LuaRocks 3.0.0, the new major release of
LuaRocks, the Lua package manager>

It includes a lot of new stuff, as previewed in the beta and rc pre-releases:

- New rockspec format
- New commands, including `luarocks init` for per-project workflows [1]
- New flags, including `--lua-dir` and `--lua-version` for using
multiple Lua installs with a single LuaRocks
- New build system, gearing towards a new distribution model [2]
- General improvements, including namespaces [3]
- User-visible changes, including some breaking changes
- Internal changes

All of the above are detailed here:

* https://github.com/luarocks/luarocks/blob/master/CHANGELOG.md

The LuaRocks wiki still needs to be updated to cover most of the new
features (it would be odd to have the documentation up when the
features weren't released yet). Any help updating the wiki is
especially welcome!

Files for Unix and Windows are here:

https://luarocks.github.io/luarocks/releases

This release contains both the Unix tarball and two versions of the
Windows zip: the "legacy" installer which works the same as the zip
files released with all LuaRocks versions so far, and a new zip file
with the all-in-one luarocks.exe binary that runs with no additional
dependencies. The luarocks.exe program assumes you're using a
Microsoft compiler toolchain when running from the Visual Studio
developer console, or a mingw toolchain otherwise (everything can be
hand-tuned via config files as usual).

This release contains new code by Thijs Schreijer, George Roman, Peter
Melnichenko, Kim Alvefur, Alec Larson, Evgeny Shulgin, Michal Cichra,
Daniel Hahler, and myself. The LuaRocks.org server is maintained by
Leaf Corcoran.

Once again, very special thanks to my employer Kong, for sponsoring my
work on LuaRocks over the last year and making this release possible.
Special thanks also to François Perrad and Matthew Wild for their
feedback during the beta and rc phase.

LuaRocks is what it is today because of its community, that
continuously releases new rocks in https://luarocks.org and makes the
Lua ecosystem all the more useful — keep on rockin'!

Come chat with us at https://gitter.im/luarocks/luarocks
and please report any issues at https://github.com/luarocks/luarocks

3.0.0 cheers for the new release!

Hisham Muhammad
-- LuaRocks lead developer
-- https://luarocks.org

[1] https://github.com/luarocks/luarocks/wiki/Project:-LuaRocks-per-project-workflow
[2] https://github.com/luarocks/luarocks/wiki/Project:-LuaRocks-new-distribution-model
[3] https://github.com/luarocks/luarocks/wiki/Namespaces

Hi Hisham,

I'm still seeing an anomaly on FreeBSD where I have to run make twice. The build fails the first time and succeeds the second:

russellh@g1 ~/f/p/d/l/w/luarocks-3.0.0> sudo ./configure

Configuring LuaRocks...

Lua version detected: 5.4
Lua interpreter found: /usr/local/bin/lua54
lua.h found: /usr/local/include/lua.h
unzip found in PATH: /usr/bin

Done configuring.

LuaRocks will be installed at......: /usr/local
LuaRocks will install rocks at.....: /usr/local
LuaRocks configuration directory...: /usr/local/etc/luarocks
Using Lua from.....................: /usr/local

* Type make and make install:
  to install to /usr/local as usual.
* Type make bootstrap:
  to install LuaRocks into /usr/local as a rock.

russellh@g1 ~/f/p/d/l/w/luarocks-3.0.0> sudo make
rm -f src/luarocks/core/hardcoded.lua
echo "#!/bin/sh" > luarocks
echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks
echo 'LUAROCKS_SYSCONFDIR="/usr/local/etc/luarocks" LUA_PATH="/src/?.lua;;" exec "/usr/local/bin/lua54" "/src/bin/luarocks" --project-tree="/lua_modules" "$@"' >> luarocks
chmod +rx ./luarocks
./luarocks init
/usr/local/bin/lua54: cannot open /src/bin/luarocks: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/home/russellh/freebsd/ports/devel/lua-luarocks/work/luarocks-3.0.0
russellh@g1 ~/f/p/d/l/w/luarocks-3.0.0> sudo make
rm -f src/luarocks/core/hardcoded.lua
echo "#!/bin/sh" > luarocks-admin
echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks-admin
echo 'LUAROCKS_SYSCONFDIR="/usr/local/etc/luarocks" LUA_PATH="/src/?.lua;;" exec "/usr/local/bin/lua54" "/src/bin/luarocks-admin" --project-tree="/lua_modules" "$@"' >> luarocks-admin
chmod +rx ./luarocks-admin
russellh@g1 ~/f/p/d/l/w/luarocks-3.0.0> 


I also tried using luarocks init <nothing here>. The directory was set up and all the rocks I requested downloaded and built (chronos, http,cqueues,lpeg,luaossl, luafilesystem).  However,  when I run the shell script ./lua, I don't see .lua_modules in my package.path:

russellh@g1 ~/P/lr-test> ls
lr-test-dev-1.rockspec lua                    lua_modules            luarocks               server.lua
russellh@g1 ~/P/lr-test> ./lua
Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
> package.path
/home/russellh/.luarocks/share/lua/5.3/?.lua;/home/russellh/.luarocks/share/lua/5.3/?/init.lua;/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/lib/lua/5.3/?.lua;/usr/local/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua
> package.cpath
/home/russellh/.luarocks/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/loadall.so;./?.so
>

I'll be updating the FreeBSD port shortly. https://reviews.freebsd.org/D16274

Thanks for all your hard work!

Russ