Sun May 2 07:48:22 2021 UTC ()
lua-rocks: update to 3.7.0

## What's new in LuaRocks 3.7.0

* Improved connectivity resiliency
  * LuaRocks can now use mirrors for downloading rocks even if downloading
    the manifest from the main server succeeds.
    In previous versions, LuaRocks would check whether to use a mirror in the first
    download operation, when it fetches the manifest. Once the server
    (luarocks.org or one of its default mirrors) was chosen, it would stick with
    it for the rest of the command.
    The resulting behavior was that if the manifest fails to load, it switches to
    a mirror and continues from there. But if the manifest fetches ok and the then
    actual rock download fails, it would give up, instead of trying that in a
    mirror as well.
    Now, it retries every download on a mirror whenever the base URL matches one
    configured in cfg.rocks_servers. The original behavior was satisfactory if
    there was complete downtime in the main server, but this new behavior should
    make the CLI much more resilient with regard to any intermittent failures
    happening on the main server.
* On Unix, it now respects environment variables $XDG_CACHE_HOME and $XDG_CONFIG_HOME
  * This means the user's configuration typically resides in ~/.config/luarocks/
    as per the XDG standard
  * The legacy path ~/.luarocks/ continues to be tested first, for backwards
    compatibility
* Fixes check for the default Lua version set in the user's home configuration
* Fixes an issue on Windows where it would incorrectly revoke permissions
  from the current user when installing

## What's new in LuaRocks 3.6.0

* Adds a double-check step to verify that all files from a rock are installed
* Improve resilience of the manifest reader to deal with manifests
  written with older versions of LuaRocks lower than 3.0
* `luarocks pack` now checks that the directory inside the archive being packed
  as a `.src.rock` actually exists, refusing to pack an invalid rock from
  a badly configured rockspec.
* Fixes behavior of `luarocks pack` when the `url` entry of a rockspec
  points to a bare file.
* Remove an entry from the manifest if the rock itself is already missing
* The `configure` script now checks that the version of `lua.h`
  found matches that of the Lua interpreter detected or configured
* Fixes the renaming of scripts when multiple versions are installed
* Fixes availability check for `svn` for rockspecs using Subversion
* Fixes for running with an empty PATH environment variable
* Portability improvements:
  * Windows: vcvarsall.bat output is now properly redirected to NUL
    meaning that the output of `luarocks path` can be used in scripts
  * Fixes autodetection for Cygwin
  * Handles macOS versions greater than 10.10
  * Adds platform specific configurations for NetBSD
  * Respects CC/CFLAGS/LDFLAGS on FreeBSD
* Luacheck now runs on the LuaRocks CI
* Distributed binaries are built using Lua 5.3


(nia)
diff -r1.16 -r1.17 pkgsrc/devel/lua-rocks/Makefile
diff -r1.3 -r1.4 pkgsrc/devel/lua-rocks/PLIST
diff -r1.8 -r1.9 pkgsrc/devel/lua-rocks/distinfo

cvs diff -r1.16 -r1.17 pkgsrc/devel/lua-rocks/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/lua-rocks/Makefile 2020/12/19 11:30:24 1.16
+++ pkgsrc/devel/lua-rocks/Makefile 2021/05/02 07:48:22 1.17
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.16 2020/12/19 11:30:24 nia Exp $ 1# $NetBSD: Makefile,v 1.17 2021/05/02 07:48:22 nia Exp $
2 2
3DISTNAME= luarocks-3.5.0 3DISTNAME= luarocks-3.7.0
4PKGNAME= ${DISTNAME:S/luarocks/${LUA_PKGPREFIX}-rocks/} 4PKGNAME= ${DISTNAME:S/luarocks/${LUA_PKGPREFIX}-rocks/}
5CATEGORIES= devel lua 5CATEGORIES= devel lua
6MASTER_SITES= https://luarocks.org/releases/ 6MASTER_SITES= https://luarocks.org/releases/
7 7
8MAINTAINER= nia@NetBSD.org 8MAINTAINER= nia@NetBSD.org
9HOMEPAGE= https://luarocks.org/ 9HOMEPAGE= https://luarocks.org/
10COMMENT= Deployment and management system for Lua modules 10COMMENT= Deployment and management system for Lua modules
11LICENSE= mit 11LICENSE= mit
12 12
13USE_TOOLS+= gmake 13USE_TOOLS+= gmake
14USE_TOOLS+= curl:run # downloader (curl or wget) 14USE_TOOLS+= curl:run # downloader (curl or wget)
15USE_TOOLS+= openssl:run # md5-checker (openssl or md5sum) 15USE_TOOLS+= openssl:run # md5-checker (openssl or md5sum)
16USE_TOOLS+= unzip:run # extraction 16USE_TOOLS+= unzip:run # extraction

cvs diff -r1.3 -r1.4 pkgsrc/devel/lua-rocks/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/lua-rocks/PLIST 2020/07/01 11:06:40 1.3
+++ pkgsrc/devel/lua-rocks/PLIST 2021/05/02 07:48:22 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.3 2020/07/01 11:06:40 nia Exp $ 1@comment $NetBSD: PLIST,v 1.4 2021/05/02 07:48:22 nia Exp $
2bin/luarocks-${LUADOTVER} 2bin/luarocks-${LUADOTVER}
3bin/luarocks-admin-${LUADOTVER} 3bin/luarocks-admin-${LUADOTVER}
4${LUA_EXAMPLESDIR}/config-${LUADOTVER}.lua 4${LUA_EXAMPLESDIR}/config-${LUADOTVER}.lua
5${LUA_LDIR}/luarocks/admin/cache.lua 5${LUA_LDIR}/luarocks/admin/cache.lua
6${LUA_LDIR}/luarocks/admin/cmd/add.lua 6${LUA_LDIR}/luarocks/admin/cmd/add.lua
7${LUA_LDIR}/luarocks/admin/cmd/make_manifest.lua 7${LUA_LDIR}/luarocks/admin/cmd/make_manifest.lua
8${LUA_LDIR}/luarocks/admin/cmd/refresh_cache.lua 8${LUA_LDIR}/luarocks/admin/cmd/refresh_cache.lua
9${LUA_LDIR}/luarocks/admin/cmd/remove.lua 9${LUA_LDIR}/luarocks/admin/cmd/remove.lua
10${LUA_LDIR}/luarocks/admin/index.lua 10${LUA_LDIR}/luarocks/admin/index.lua
11${LUA_LDIR}/luarocks/argparse.lua 11${LUA_LDIR}/luarocks/argparse.lua
12${LUA_LDIR}/luarocks/build.lua 12${LUA_LDIR}/luarocks/build.lua
13${LUA_LDIR}/luarocks/build/builtin.lua 13${LUA_LDIR}/luarocks/build/builtin.lua
14${LUA_LDIR}/luarocks/build/cmake.lua 14${LUA_LDIR}/luarocks/build/cmake.lua
@@ -56,26 +56,27 @@ ${LUA_LDIR}/luarocks/fetch/git_http.lua @@ -56,26 +56,27 @@ ${LUA_LDIR}/luarocks/fetch/git_http.lua
56${LUA_LDIR}/luarocks/fetch/git_https.lua 56${LUA_LDIR}/luarocks/fetch/git_https.lua
57${LUA_LDIR}/luarocks/fetch/git_ssh.lua 57${LUA_LDIR}/luarocks/fetch/git_ssh.lua
58${LUA_LDIR}/luarocks/fetch/hg.lua 58${LUA_LDIR}/luarocks/fetch/hg.lua
59${LUA_LDIR}/luarocks/fetch/hg_http.lua 59${LUA_LDIR}/luarocks/fetch/hg_http.lua
60${LUA_LDIR}/luarocks/fetch/hg_https.lua 60${LUA_LDIR}/luarocks/fetch/hg_https.lua
61${LUA_LDIR}/luarocks/fetch/hg_ssh.lua 61${LUA_LDIR}/luarocks/fetch/hg_ssh.lua
62${LUA_LDIR}/luarocks/fetch/sscm.lua 62${LUA_LDIR}/luarocks/fetch/sscm.lua
63${LUA_LDIR}/luarocks/fetch/svn.lua 63${LUA_LDIR}/luarocks/fetch/svn.lua
64${LUA_LDIR}/luarocks/fs.lua 64${LUA_LDIR}/luarocks/fs.lua
65${LUA_LDIR}/luarocks/fs/freebsd.lua 65${LUA_LDIR}/luarocks/fs/freebsd.lua
66${LUA_LDIR}/luarocks/fs/linux.lua 66${LUA_LDIR}/luarocks/fs/linux.lua
67${LUA_LDIR}/luarocks/fs/lua.lua 67${LUA_LDIR}/luarocks/fs/lua.lua
68${LUA_LDIR}/luarocks/fs/macosx.lua 68${LUA_LDIR}/luarocks/fs/macosx.lua
 69${LUA_LDIR}/luarocks/fs/netbsd.lua
69${LUA_LDIR}/luarocks/fs/tools.lua 70${LUA_LDIR}/luarocks/fs/tools.lua
70${LUA_LDIR}/luarocks/fs/unix.lua 71${LUA_LDIR}/luarocks/fs/unix.lua
71${LUA_LDIR}/luarocks/fs/unix/tools.lua 72${LUA_LDIR}/luarocks/fs/unix/tools.lua
72${LUA_LDIR}/luarocks/fs/win32.lua 73${LUA_LDIR}/luarocks/fs/win32.lua
73${LUA_LDIR}/luarocks/fs/win32/tools.lua 74${LUA_LDIR}/luarocks/fs/win32/tools.lua
74${LUA_LDIR}/luarocks/fun.lua 75${LUA_LDIR}/luarocks/fun.lua
75${LUA_LDIR}/luarocks/loader.lua 76${LUA_LDIR}/luarocks/loader.lua
76${LUA_LDIR}/luarocks/manif.lua 77${LUA_LDIR}/luarocks/manif.lua
77${LUA_LDIR}/luarocks/manif/writer.lua 78${LUA_LDIR}/luarocks/manif/writer.lua
78${LUA_LDIR}/luarocks/pack.lua 79${LUA_LDIR}/luarocks/pack.lua
79${LUA_LDIR}/luarocks/path.lua 80${LUA_LDIR}/luarocks/path.lua
80${LUA_LDIR}/luarocks/persist.lua 81${LUA_LDIR}/luarocks/persist.lua
81${LUA_LDIR}/luarocks/queries.lua 82${LUA_LDIR}/luarocks/queries.lua

cvs diff -r1.8 -r1.9 pkgsrc/devel/lua-rocks/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/lua-rocks/distinfo 2020/12/19 11:30:24 1.8
+++ pkgsrc/devel/lua-rocks/distinfo 2021/05/02 07:48:22 1.9
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.8 2020/12/19 11:30:24 nia Exp $ 1$NetBSD: distinfo,v 1.9 2021/05/02 07:48:22 nia Exp $
2 2
3SHA1 (luarocks-3.5.0.tar.gz) = 6bede6287c588f0501e601da058c6d4724af21ad 3SHA1 (luarocks-3.7.0.tar.gz) = 7cf3437f80e5a454b6731b7ff5d1f25ceff008f4
4RMD160 (luarocks-3.5.0.tar.gz) = f0dbd59585cee9d53f461d31e55c614e94f9641d 4RMD160 (luarocks-3.7.0.tar.gz) = 034217b401674f4ef057053ad0efd70844cb3554
5SHA512 (luarocks-3.5.0.tar.gz) = fda01b7149839adf7c0e1c05d0f1793e79575c5d378d96ee1e197828e9b9b6e89a635f8a26a5b71db5b48465ef74b219fac18ecdbd59962cbf9da613b05dd42a 5SHA512 (luarocks-3.7.0.tar.gz) = cc3c555c488da9f95a118eedb74cb9e2a38b572e172958843dabebce125524e58a13ac65e89a349deb8fef13b6de751074fc3adbb430ab55d4e4109288119153
6Size (luarocks-3.5.0.tar.gz) = 244798 bytes 6Size (luarocks-3.7.0.tar.gz) = 247576 bytes
7SHA1 (patch-GNUmakefile) = 1f84ae6e926a57b07abcc65789d784c8e6a0fa75 7SHA1 (patch-GNUmakefile) = 1f84ae6e926a57b07abcc65789d784c8e6a0fa75
8SHA1 (patch-src_luarocks_core_cfg.lua) = 24c8c7e66fa12b2daf67924ac8ae0a2458380250 8SHA1 (patch-src_luarocks_core_cfg.lua) = 24c8c7e66fa12b2daf67924ac8ae0a2458380250