lua-users home
lua-l archive

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




On Sat, Jul 14, 2018 at 9:29 PM, Russell Haley <russ.haley@gmail.com> wrote:


On Wed, Jul 4, 2018 at 3:36 PM, Hisham <h@hisham.hm> wrote:
Hello list,

I am extremely happy to announce LuaRocks 3.0.0beta1, the
almost-finished package for the new major release of LuaRocks, the Lua
package manager.

***
First of all: "Why beta1?" — the code itself is release-candidate
quality, but I decided to call this one beta1 and not rc1 because the
Windows package is not ready yet, and I wanted to get some early
feedback on the Unix build while I complete the final touches of the
Windows package.

This is NOT going to be a long-or-endless beta cycle: if no major
showstoppers are reported, the final 3.0.0 release, including Unix and
Windows packages, is expected to arrive in one week. But please, if
you want to help out with LuaRocks, give this beta1 a try and report
any findings!
***

Yes, it's finally here! After a way-too-long gestation period,
LuaRocks 3 is about ready to see the light of day. And it includes a
lot of new stuff:

- 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

I'll try to write up more documentation between now and the final
release. Feedback is wanted regarding what needs to be
documented/explained! And help updating the wiki is especially
welcome.

And without further ado, the tarball for Unix is here:

https://luarocks.github.io/luarocks/releases/luarocks-3.0.0beta1.tar.gz

This release contains new code by Thijs Schreijer, George Roman, Peter
Melnichenko, Kim Alvefur, Alec Larson, Evgeny Shulgin, Michal Cichra,
Daniel Hahler, and myself.

Very special thanks to my employer Kong, for sponsoring my work on
LuaRocks over the last year and making this release possible. Thanks
also to my colleagues Aapo Talvensaari and Enrique García Cota for
helping out with some last-minute testing.

In the name of everyone in the LuaRocks development team, thank you
for the continued amazing support that Lua community has been giving
LuaRocks over the years: keep on rockin'!

Cheers!!!

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 working on getting LuaRocks 3.0 into the FreeBSD ports tree. The port Makefile is here: https://reviews.freebsd.org/D16274

I am getting an error trying to build luarocks-admin. Any help would be great.

Thanks! Russ


russellh@g1 ~/f/p/d/lua-luarocks> make
===>  License MIT accepted by the user
===>   lua53-luarocks-3.0.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by lua53-luarocks-3.0.0 for building
===>  Extracting for lua53-luarocks-3.0.0
=> SHA256 Checksum OK for luarocks-3.0.0beta2.tar.gz.
===>  Patching for lua53-luarocks-3.0.0
===>   lua53-luarocks-3.0.0 depends on shared library: liblua-5.3.so - found (/usr/local/lib/liblua-5.3.so)
===>  Configuring for lua53-luarocks-3.0.0

Configuring LuaRocks...

Lua interpreter found: /usr/local/bin/lua53
Checking if /usr/local/bin/lua53 is Lua version 5.3... yes
lua.h found: /usr/local/include/lua53/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
Lua include directory..............: /usr/local/include/lua53

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

===>  Building for lua53-luarocks-3.0.0
make[2]: make[2]: don't know how to make ./luarocks-admin. Stop

make[2]: stopped in /usr/home/russellh/freebsd/ports/devel/lua-luarocks/work/luarocks-3.0.0beta2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/home/russellh/freebsd/ports/devel/lua-luarocks
*** Error code 1

Stop.
make: stopped in /usr/home/russellh/freebsd/ports/devel/lua-luarocks
russellh@g1 ~/f/p/d/lua-luarocks>


The following patch lets me build LuaRocks from the tarball:

root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # diff -u Makefile Makefile.orig
--- Makefile    2018-07-14 11:00:29.219948000 -0700
+++ Makefile.orig       2018-07-14 11:00:19.028491000 -0700
@@ -1,7 +1,7 @@

 -include config.unix

-all: ./luarocks luarocks-admin
+all: ./luarocks ./luarocks-admin

 # ----------------------------------------
 # Base build
root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # diff -u Makefile.orig Makefile
--- Makefile.orig       2018-07-14 11:00:19.028491000 -0700
+++ Makefile    2018-07-14 11:00:29.219948000 -0700
@@ -1,7 +1,7 @@

 -include config.unix

-all: ./luarocks ./luarocks-admin
+all: ./luarocks luarocks-admin

 # ----------------------------------------
 # Base build

 
root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # uname -a
FreeBSD beaglebone 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 02:27:16 UTC 2018     root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE  arm
root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # luarocks help
Warning: The directory '/root/.cache/luarocks' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing /usr/local/bin/luarocks with sudo, you may want sudo's -H flag.

LuaRocks 3.0.0beta2, the Lua package manager
...

Sweet! I'll have to figure out the ports stuff later. 
Cheers,
Russ