Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lua-luarocks for openSUSE:Factory 
checked in at 2026-01-07 16:00:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lua-luarocks (Old)
 and      /work/SRC/openSUSE:Factory/.lua-luarocks.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lua-luarocks"

Wed Jan  7 16:00:30 2026 rev:17 rq:1325524 version:3.13.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lua-luarocks/lua-luarocks.changes        
2025-10-27 14:37:15.732358719 +0100
+++ /work/SRC/openSUSE:Factory/.lua-luarocks.new.1928/lua-luarocks.changes      
2026-01-07 16:00:31.448893255 +0100
@@ -1,0 +2,8 @@
+Tue Jan  6 06:55:21 UTC 2026 - Matej Cepl <[email protected]>
+
+- Update to 3.13.0:
+  - Supports Lua 5.5!
+  - documentation fixes
+  - fix: check_lua_libdir reads liblua in binary mode
+
+-------------------------------------------------------------------

Old:
----
  luarocks-3.12.2.tar.gz

New:
----
  luarocks-3.13.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lua-luarocks.spec ++++++
--- /var/tmp/diff_new_pack.t60onZ/_old  2026-01-07 16:00:32.472935878 +0100
+++ /var/tmp/diff_new_pack.t60onZ/_new  2026-01-07 16:00:32.472935878 +0100
@@ -26,7 +26,7 @@
 %else
 %define lua_value  %(echo "%{flavor}" |sed -e 's:lua::')
 %endif
-Version:        3.12.2
+Version:        3.13.0
 Release:        0
 Summary:        A deployment and management system for Lua modules
 License:        MIT

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.t60onZ/_old  2026-01-07 16:00:32.528938209 +0100
+++ /var/tmp/diff_new_pack.t60onZ/_new  2026-01-07 16:00:32.536938542 +0100
@@ -1,6 +1,6 @@
-mtime: 1761317376
-commit: ba2b98e767a10aa91433589c2552535f4ba3dd9ffd8d7e61c6c98d83a7d67640
+mtime: 1767682668
+commit: 6d65bf66b34a5567ce309ff6386e775d36ebdc3cc54fce9fe126b38728fa30a5
 url: https://src.opensuse.org/lua/lua-luarocks.git
-revision: ba2b98e767a10aa91433589c2552535f4ba3dd9ffd8d7e61c6c98d83a7d67640
+revision: 6d65bf66b34a5567ce309ff6386e775d36ebdc3cc54fce9fe126b38728fa30a5
 projectscmsync: https://src.opensuse.org/lua/_ObsPrj.git
 

++++++ build.specials.obscpio ++++++
--- old/.gitignore      2025-10-24 16:49:46.000000000 +0200
+++ new/.gitignore      2026-01-06 07:58:24.000000000 +0100
@@ -1 +1,4 @@
-.osc
+*.obscpio
+*.osc
+_build*
+.pbuild

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-01-06 07:58:24.000000000 +0100
@@ -0,0 +1,4 @@
+*.obscpio
+*.osc
+_build*
+.pbuild

++++++ lib64.patch ++++++
--- /var/tmp/diff_new_pack.t60onZ/_old  2026-01-07 16:00:32.736946866 +0100
+++ /var/tmp/diff_new_pack.t60onZ/_new  2026-01-07 16:00:32.740947032 +0100
@@ -9,14 +9,14 @@
 
 Signed-off-by: Michel Alexandre Salim <[email protected]>
 ---
- src/luarocks/core/cfg.lua | 12 ++++++++++++
+ src/luarocks/core/cfg.lua |   12 ++++++++++++
  1 file changed, 12 insertions(+)
 
-diff --git a/src/luarocks/core/cfg.lua b/src/luarocks/core/cfg.lua
-index 4ac5ee281..c7d2cb2cb 100644
---- a/src/luarocks/core/cfg.lua
-+++ b/src/luarocks/core/cfg.lua
-@@ -397,6 +397,18 @@ local function make_defaults(lua_version, target_cpu, 
platforms, home)
+Index: luarocks-3.13.0/src/luarocks/core/cfg.lua
+===================================================================
+--- luarocks-3.13.0.orig/src/luarocks/core/cfg.lua     2025-12-29 
00:01:55.000000000 +0100
++++ luarocks-3.13.0/src/luarocks/core/cfg.lua  2026-01-06 07:56:43.952247974 
+0100
+@@ -410,6 +410,18 @@
        local xdg_cache_home = os.getenv("XDG_CACHE_HOME") or home.."/.cache"
        defaults.local_cache = xdg_cache_home.."/luarocks"
        defaults.web_browser = "xdg-open"

++++++ luarocks-3.12.2.tar.gz -> luarocks-3.13.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/CHANGELOG.md 
new/luarocks-3.13.0/CHANGELOG.md
--- old/luarocks-3.12.2/CHANGELOG.md    2025-06-27 08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/CHANGELOG.md    2025-12-29 00:01:55.000000000 +0100
@@ -1,3 +1,10 @@
+## LuaRocks 3.12.2
+
+> Released 27/Jun/2025
+
+* fix: create cache_dir when local_cache exists
+* fetch: update cachefile and checkfile on temp local_cache
+
 ## LuaRocks 3.12.1
 
 > Released 17/Jun/2025
@@ -10,19 +17,6 @@
   function, to be removed in LuaRocks 4.0. No other
   reverts are planned for the sake of restoring private APIs.
 
-## LuaRocks 0.3.1
-
-> Released 18/Dec/2007
-
-* Improved search: results now feature separate lists for source and binary 
rocks.
-* Windows support for the "module" build type (using Visual Studio).
-* Many assorted bugfixes.
-
-
-## LuaRocks 0.3
-
-> ReleA
-
 ## LuaRocks 3.12.0
 
 > Released 05/Jun/2025
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/GNUmakefile 
new/luarocks-3.13.0/GNUmakefile
--- old/luarocks-3.12.2/GNUmakefile     2025-06-27 08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/GNUmakefile     2025-12-29 00:01:55.000000000 +0100
@@ -16,7 +16,7 @@
 
 LUAROCKS_FILES = $(shell find src/luarocks/ -type f -name '*.lua')
 
-LUA_ENV_VARS = LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4 LUA_CPATH 
LUA_CPATH_5_2 LUA_CPATH_5_3 LUA_CPATH_5_4
+LUA_ENV_VARS = LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4 LUA_PATH_5_5 
LUA_CPATH LUA_CPATH_5_2 LUA_CPATH_5_3 LUA_CPATH_5_4 LUA_CPATH_5_5
 
 all: build
 
@@ -119,7 +119,7 @@
        do \
           $(INSTALL_DATA) "$$f" '$(DESTDIR)$(luadir)'/`echo $$f | sed 
's,^src/,,'`; \
        done
-ifeq (,$(findstring $(LUA_VERSION),"5.3" "5.4"))
+ifeq (,$(findstring $(LUA_VERSION),"5.3" "5.4" "5.5"))
        find src/compat53/ -type d | while read f; \
        do \
           mkdir -p '$(DESTDIR)$(luadir)'/`echo $$f | sed 's,^src/,,'`; \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/binary/all_in_one 
new/luarocks-3.13.0/binary/all_in_one
--- old/luarocks-3.12.2/binary/all_in_one       2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/binary/all_in_one       2025-12-29 00:01:55.000000000 
+0100
@@ -69,7 +69,7 @@
    local indent = 0
    local previous_is_blank = true
    for line in input:gmatch("([^\n]*)") do
-      line = line:match("^[ \t]*(.-)[ \t]*$")
+      local line = line:match("^[ \t]*(.-)[ \t]*$")
 
       local is_blank = (#line == 0)
       local do_print =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/binary/luaposix-35.1-1.rockspec 
new/luarocks-3.13.0/binary/luaposix-35.1-1.rockspec
--- old/luarocks-3.12.2/binary/luaposix-35.1-1.rockspec 2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/binary/luaposix-35.1-1.rockspec 2025-12-29 
00:01:55.000000000 +0100
@@ -14,7 +14,7 @@
 }
 
 dependencies = {
-   'lua >= 5.1, < 5.5',
+   'lua >= 5.1, < 5.6',
 }
 
 do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/configure 
new/luarocks-3.13.0/configure
--- old/luarocks-3.12.2/configure       2025-06-27 08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/configure       2025-12-29 00:01:55.000000000 +0100
@@ -120,7 +120,7 @@
                                - Default is [PREFIX]
 
 Where is your Lua interpreter:
-  --lua-version=VERSION        Use specific Lua version: 5.1, 5.2, 5.3, or 5.4
+  --lua-version=VERSION        Use specific Lua version: 5.1, 5.2, 5.3, 5.4 or 
5.5
                                - Default is auto-detected.
   --with-lua-bin=LUA_BINDIR    Location of your Lua binar(y/ies).
                                - Default is the directory of the
@@ -151,7 +151,7 @@
 # -------------
 
 detect_lua_version() {
-   detected_lua=$($1 -e 'print(_VERSION:match(" (5%.[1234])$"))' 2> /dev/null)
+   detected_lua=$($1 -e 'print(_VERSION:match(" (5%.[12345])$"))' 2> /dev/null)
    if [ "$detected_lua" != "nil" ]
    then
       if [ "$LUA_VERSION_SET" != "yes" ]
@@ -258,7 +258,7 @@
       [ -n "$value" ] || die "Missing value in flag $key."
       LUA_VERSION="$value"
       case "$LUA_VERSION" in
-      5.1|5.2|5.3|5.4) ;;
+      5.1|5.2|5.3|5.4|5.5) ;;
       *) die "Invalid Lua version in flag $key."
       esac
       LUA_VERSION_SET=yes
@@ -321,7 +321,7 @@
 done
 
 echo
-BLUE "Configuring LuaRocks version 3.12.2..."
+BLUE "Configuring LuaRocks version 3.13.0..."
 echo
 echo
 
@@ -362,8 +362,11 @@
 5.4)
    names="lua5.4 lua54 lua-5.4 lua-54 lua"
    ;;
+5.5)
+   names="lua5.5 lua55 lua-5.5 lua-55 lua"
+   ;;
 *)
-   names="lua5.4 lua54 lua-5.4 lua-54 lua5.3 lua53 lua-5.3 lua-53 lua5.2 lua52 
lua-5.2 lua-52 lua5.1 lua51 lua-5.1 lua-51 luajit lua"
+   names="lua5.5 lua55 lua-5.5 lua-55 lua5.4 lua54 lua-5.4 lua-54 lua5.3 lua53 
lua-5.3 lua-53 lua5.2 lua52 lua-5.2 lua-52 lua5.1 lua51 lua-5.1 lua-51 luajit 
lua"
    ;;
 esac
 
@@ -438,7 +441,12 @@
    do
       if [ -f "$lua_h" ]
       then
-         grep "LUA_VERSION_NUM.*$LUA_VERSION" "$lua_h" > /dev/null 2> 
/dev/null && return
+         if [ "$LUA_VERSION" = "5.5" ]
+         then
+            grep "LUA_VERSION_MINOR_N.*5" "$lua_h" > /dev/null 2> /dev/null && 
return
+         else
+            grep "LUA_VERSION_NUM.*$LUA_VERSION" "$lua_h" > /dev/null 2> 
/dev/null && return
+         fi
       fi
       tried="$tried $lua_h"
    done
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/docs/file_locations.md 
new/luarocks-3.13.0/docs/file_locations.md
--- old/luarocks-3.12.2/docs/file_locations.md  2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/docs/file_locations.md  2025-12-29 00:01:55.000000000 
+0100
@@ -67,7 +67,7 @@
 installation of LuaRocks will install both under /usr/local, meaning that the
 environment variables for the system-wide rock tree are correct by default.
 
-The command `[luarocks path](luarocks_path.md)` outputs the correct environment
+The command [`luarocks path`](luarocks_path.md) outputs the correct environment
 variables set for a rock tree.
 
 # Path where command-line scripts are installed 
@@ -90,7 +90,7 @@
 On Unix, /usr/local/bin is usually in the $PATH by default, but
 $HOME/.luarocks/bin is not. 
 
-The command `[luarocks path](luarocks_path.md) --bin` outputs the correct PATH
+The command [`luarocks path --bin`](luarocks_path.md) outputs the correct PATH
 environment variables set for a rock tree.
 
 # Compiler 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/luarocks-3.12.2-1.rockspec 
new/luarocks-3.13.0/luarocks-3.12.2-1.rockspec
--- old/luarocks-3.12.2/luarocks-3.12.2-1.rockspec      2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/luarocks-3.12.2-1.rockspec      1970-01-01 
01:00:00.000000000 +0100
@@ -1,38 +0,0 @@
-rockspec_format = "3.0"
-package = "luarocks"
-version = "3.12.2-1"
-source = {
-   url = "git+https://github.com/luarocks/luarocks";,
-   tag = "v3.12.2",
-}
-description = {
-   summary = "A package manager for Lua modules.",
-   detailed = [[
-      LuaRocks allows you to install Lua modules as self-contained
-      packages called "rocks", which also contain version dependency
-      information. This information is used both during installation,
-      so that when one rock is requested all rocks it depends on are
-      installed as well, and at run time, so that when a module is
-      required, the correct version is loaded. LuaRocks supports both
-      local and remote repositories, and multiple local rocks trees.
-   ]],
-   homepage = "http://www.luarocks.org";,
-   issues_url = "https://github.com/luarocks/luarocks/issues";,
-   maintainer = "Hisham Muhammad",
-   license = "MIT",
-}
-test_dependencies = {
-   "luacov",
-   "busted-htest",
-}
-test = {
-   type = "busted",
-   platforms = {
-      windows = {
-         flags = { "--exclude-tags=ssh,git,unix", "-Xhelper", 
"lua_dir=$(LUA_DIR)", "-Xhelper", "lua=$(LUA)" }
-      },
-      unix = {
-         flags = { "--exclude-tags=ssh,git", "-Xhelper", "lua_dir=$(LUA_DIR)", 
"-Xhelper", "lua=$(LUA)" }
-      }
-   }
-}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/luarocks-3.13.0-1.rockspec 
new/luarocks-3.13.0/luarocks-3.13.0-1.rockspec
--- old/luarocks-3.12.2/luarocks-3.13.0-1.rockspec      1970-01-01 
01:00:00.000000000 +0100
+++ new/luarocks-3.13.0/luarocks-3.13.0-1.rockspec      2025-12-29 
00:01:55.000000000 +0100
@@ -0,0 +1,39 @@
+rockspec_format = "3.0"
+package = "luarocks"
+version = "3.13.0-1"
+source = {
+   url = "git+https://github.com/luarocks/luarocks";,
+   tag = "v3.13.0"
+   tag = "v3.12.2",
+}
+description = {
+   summary = "A package manager for Lua modules.",
+   detailed = [[
+      LuaRocks allows you to install Lua modules as self-contained
+      packages called "rocks", which also contain version dependency
+      information. This information is used both during installation,
+      so that when one rock is requested all rocks it depends on are
+      installed as well, and at run time, so that when a module is
+      required, the correct version is loaded. LuaRocks supports both
+      local and remote repositories, and multiple local rocks trees.
+   ]],
+   homepage = "http://www.luarocks.org";,
+   issues_url = "https://github.com/luarocks/luarocks/issues";,
+   maintainer = "Hisham Muhammad",
+   license = "MIT",
+}
+test_dependencies = {
+   "luacov",
+   "busted-htest",
+}
+test = {
+   type = "busted",
+   platforms = {
+      windows = {
+         flags = { "--exclude-tags=ssh,git,unix", "-Xhelper", 
"lua_dir=$(LUA_DIR)", "-Xhelper", "lua=$(LUA)" }
+      },
+      unix = {
+         flags = { "--exclude-tags=ssh,git", "-Xhelper", "lua_dir=$(LUA_DIR)", 
"-Xhelper", "lua=$(LUA)" }
+      }
+   }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/publishrelease 
new/luarocks-3.13.0/publishrelease
--- old/luarocks-3.12.2/publishrelease  2025-06-27 08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/publishrelease  2025-12-29 00:01:55.000000000 +0100
@@ -124,7 +124,7 @@
       print "\"'$v'\": {"
       print "\"date\": \"'$(date +'%Y-%m-%d')'\","
       print "\"files\": [\"luarocks-'$v'.tar.gz\", 
\"luarocks-'$v'.tar.gz.asc\", \"luarocks-'$v'-win32.zip\", 
\"luarocks-'$v'-win32.zip.asc\", \"luarocks-'$v'-windows-32.zip\", 
\"luarocks-'$v'-windows-32.zip.asc\", \"luarocks-'$v'-windows-64.zip\", 
\"luarocks-'$v'-windows-64.zip.asc\", \"luarocks-'$v'-linux-x86_64.zip\", 
\"luarocks-'$v'-linux-x86_64.zip.asc\"],"
-      print "\"about\": []"
+      print "\"about\": [],"
       print "\"source_digest\": \"'$source_digest'\""
       print "}},"
    }
@@ -139,6 +139,18 @@
 git push
 
 #######################################
+# GitHub Releases
+#######################################
+
+assets=()
+for p in "${packages[@]}"
+do
+   assets=("${assets[@]}" "-a" "$p")
+done
+echo "LuaRocks $version" > release.txt
+hub release edit -F release.txt "${assets[@]}" v"$version"
+
+#######################################
 # luarocks.org
 #######################################
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/spec/init_spec.lua 
new/luarocks-3.13.0/spec/init_spec.lua
--- old/luarocks-3.12.2/spec/init_spec.lua      2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/spec/init_spec.lua      2025-12-29 00:01:55.000000000 
+0100
@@ -153,13 +153,13 @@
          lfs.mkdir(myproject)
          lfs.chdir(myproject)
 
-         assert(run.luarocks("init --lua-versions=5.1,5.2,5.3,5.4"))
+         assert(run.luarocks("init --lua-versions=5.1,5.2,5.3,5.4,5.5"))
          local rockspec_name = myproject .. "/myproject-dev-1.rockspec"
          assert.truthy(lfs.attributes(rockspec_name))
          local fd = assert(io.open(rockspec_name, "rb"))
          local data = fd:read("*a")
          fd:close()
-         assert.truthy(data:find("lua >= 5.1, < 5.5", 1, true))
+         assert.truthy(data:find("lua >= 5.1, < 5.6", 1, true))
       end, finally)
    end)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/spec/util/test_env.lua 
new/luarocks-3.13.0/spec/util/test_env.lua
--- old/luarocks-3.12.2/spec/util/test_env.lua  2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/spec/util/test_env.lua  2025-12-29 00:01:55.000000000 
+0100
@@ -250,6 +250,10 @@
       "LUA_CPATH_5_2",
       "LUA_PATH_5_3",
       "LUA_CPATH_5_3",
+      "LUA_PATH_5_4",
+      "LUA_CPATH_5_4",
+      "LUA_PATH_5_5",
+      "LUA_CPATH_5_5",
       "LUAROCKS_SYSCONFDIR",
    }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/cmd/write_rockspec.lua 
new/luarocks-3.13.0/src/luarocks/cmd/write_rockspec.lua
--- old/luarocks-3.12.2/src/luarocks/cmd/write_rockspec.lua     2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/cmd/write_rockspec.lua     2025-12-29 
00:01:55.000000000 +0100
@@ -28,12 +28,17 @@
    "5.2",
    "5.3",
    "5.4",
+   "5.5",
    "5.1,5.2",
    "5.2,5.3",
    "5.3,5.4",
+   "5.4,5.5",
    "5.1,5.2,5.3",
    "5.2,5.3,5.4",
+   "5.3,5.4,5.5",
    "5.1,5.2,5.3,5.4",
+   "5.2,5.3,5.4,5.5",
+   "5.1,5.2,5.3,5.4,5.5",
 }
 
 function write_rockspec.cmd_options(parser)
@@ -110,12 +115,17 @@
    ["5.2"] = "lua ~> 5.2",
    ["5.3"] = "lua ~> 5.3",
    ["5.4"] = "lua ~> 5.4",
+   ["5.5"] = "lua ~> 5.5",
    ["5.1,5.2"] = "lua >= 5.1, < 5.3",
    ["5.2,5.3"] = "lua >= 5.2, < 5.4",
    ["5.3,5.4"] = "lua >= 5.3, < 5.5",
+   ["5.4,5.5"] = "lua >= 5.4, < 5.6",
    ["5.1,5.2,5.3"] = "lua >= 5.1, < 5.4",
    ["5.2,5.3,5.4"] = "lua >= 5.2, < 5.5",
+   ["5.3,5.4,5.5"] = "lua >= 5.3, < 5.6",
    ["5.1,5.2,5.3,5.4"] = "lua >= 5.1, < 5.5",
+   ["5.2,5.3,5.4,5.5"] = "lua >= 5.2, < 5.6",
+   ["5.1,5.2,5.3,5.4,5.5"] = "lua >= 5.1, < 5.6",
 }
 
 local simple_scm_protocols = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/cmd/write_rockspec.tl 
new/luarocks-3.13.0/src/luarocks/cmd/write_rockspec.tl
--- old/luarocks-3.12.2/src/luarocks/cmd/write_rockspec.tl      2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/cmd/write_rockspec.tl      2025-12-29 
00:01:55.000000000 +0100
@@ -28,12 +28,17 @@
    "5.2",
    "5.3",
    "5.4",
+   "5.5",
    "5.1,5.2",
    "5.2,5.3",
    "5.3,5.4",
+   "5.4,5.5",
    "5.1,5.2,5.3",
    "5.2,5.3,5.4",
-   "5.1,5.2,5.3,5.4"
+   "5.3,5.4,5.5",
+   "5.1,5.2,5.3,5.4",
+   "5.2,5.3,5.4,5.5",
+   "5.1,5.2,5.3,5.4,5.5",
 }
 
 function write_rockspec.cmd_options(parser: Parser)
@@ -110,12 +115,17 @@
    ["5.2"] = "lua ~> 5.2",
    ["5.3"] = "lua ~> 5.3",
    ["5.4"] = "lua ~> 5.4",
+   ["5.5"] = "lua ~> 5.5",
    ["5.1,5.2"] = "lua >= 5.1, < 5.3",
    ["5.2,5.3"] = "lua >= 5.2, < 5.4",
    ["5.3,5.4"] = "lua >= 5.3, < 5.5",
+   ["5.4,5.5"] = "lua >= 5.4, < 5.6",
    ["5.1,5.2,5.3"] = "lua >= 5.1, < 5.4",
    ["5.2,5.3,5.4"] = "lua >= 5.2, < 5.5",
+   ["5.3,5.4,5.5"] = "lua >= 5.3, < 5.6",
    ["5.1,5.2,5.3,5.4"] = "lua >= 5.1, < 5.5",
+   ["5.2,5.3,5.4,5.5"] = "lua >= 5.2, < 5.6",
+   ["5.1,5.2,5.3,5.4,5.5"] = "lua >= 5.1, < 5.6",
 }
 
 local simple_scm_protocols = {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/core/cfg.lua 
new/luarocks-3.13.0/src/luarocks/core/cfg.lua
--- old/luarocks-3.12.2/src/luarocks/core/cfg.lua       2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/core/cfg.lua       2025-12-29 
00:01:55.000000000 +0100
@@ -21,7 +21,7 @@
 
 
--------------------------------------------------------------------------------
 
-local program_version = "3.12.2"
+local program_version = "3.13.0"
 
 local is_windows = package.config:sub(1,1) == "\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/core/util.lua 
new/luarocks-3.13.0/src/luarocks/core/util.lua
--- old/luarocks-3.12.2/src/luarocks/core/util.lua      2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/core/util.lua      2025-12-29 
00:01:55.000000000 +0100
@@ -96,7 +96,7 @@
             else
                cart = cart .. " = {\n"
                for k, v in pairs(value) do
-                  k = basic_serialize(k)
+                  local k = basic_serialize(k)
                   local fname = ("%s[%s]"):format(name, k)
                   field = ("[%s]"):format(k)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/core/util.tl 
new/luarocks-3.13.0/src/luarocks/core/util.tl
--- old/luarocks-3.12.2/src/luarocks/core/util.tl       2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/core/util.tl       2025-12-29 
00:01:55.000000000 +0100
@@ -96,7 +96,7 @@
             else
                cart = cart .. " = {\n"
                for k, v in pairs(value) do
-                  k = basic_serialize(k)
+                  local k = basic_serialize(k)
                   local fname = ("%s[%s]"):format(name, k)
                   field = ("[%s]"):format(k)
                   -- three spaces between levels
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/deps.lua 
new/luarocks-3.13.0/src/luarocks/deps.lua
--- old/luarocks-3.12.2/src/luarocks/deps.lua   2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/src/luarocks/deps.lua   2025-12-29 00:01:55.000000000 
+0100
@@ -705,15 +705,19 @@
 end
 
 local function lua_h_exists(d, luaver)
-   local major, minor = luaver:match("(%d+)%.(%d+)")
-   local luanum = ("%s%02d"):format(major, math.tointeger(minor))
+   local major_s, minor_s = luaver:match("(%d+)%.(%d+)")
+   local major, minor = math.tointeger(major_s), math.tointeger(minor_s)
 
    local lua_h = dir.path(d, "lua.h")
    local fd = io.open(lua_h)
    if fd then
       local data = fd:read("*a")
       fd:close()
-      if data:match("LUA_VERSION_NUM%s*" .. tostring(luanum)) then
+      if vers.parse_version(("%d.%d"):format(major, minor)) >= 
vers.parse_version("5.5") then
+         if data:match("LUA_VERSION_MAJOR_N%s+" .. major) and 
data:match("LUA_VERSION_MINOR_N%s+" .. minor) then
+            return d ~= nil
+         end
+      elseif data:match("LUA_VERSION_NUM%s*" .. ("%d%02d"):format(major, 
minor)) then
          return d ~= nil
       end
       return nil, "Lua header lua.h found at " .. d .. " does not match Lua 
version " .. luaver .. ". You can use `luarocks config variables.LUA_INCDIR 
<path>` to set the correct location.", "dependency", 2
@@ -811,7 +815,7 @@
    local err
    if ok then
       local filename = dir.path(vars.LUA_LIBDIR, vars.LUA_LIBDIR_FILE)
-      local fd = io.open(filename, "r")
+      local fd = io.open(filename, "rb")
       if fd then
          if not vars.LUA_LIBDIR_FILE:match((cfg.lua_version:gsub("%.", 
"%%.?"))) then
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/deps.tl 
new/luarocks-3.13.0/src/luarocks/deps.tl
--- old/luarocks-3.12.2/src/luarocks/deps.tl    2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/src/luarocks/deps.tl    2025-12-29 00:01:55.000000000 
+0100
@@ -705,15 +705,19 @@
 end
 
 local function lua_h_exists(d: string, luaver: string): boolean, string, 
string, integer
-   local major, minor = luaver:match("(%d+)%.(%d+)")
-   local luanum = ("%s%02d"):format(major, math.tointeger(minor))
+   local major_s, minor_s = luaver:match("(%d+)%.(%d+)")
+   local major, minor = math.tointeger(major_s), math.tointeger(minor_s)
 
    local lua_h = dir.path(d, "lua.h")
    local fd = io.open(lua_h)
    if fd then
       local data = fd:read("*a")
       fd:close()
-      if data:match("LUA_VERSION_NUM%s*" .. tostring(luanum)) then
+      if vers.parse_version(("%d.%d"):format(major, minor)) >= 
vers.parse_version("5.5") then
+         if data:match("LUA_VERSION_MAJOR_N%s+" .. major) and 
data:match("LUA_VERSION_MINOR_N%s+" .. minor) then
+            return d ~= nil
+         end
+      elseif data:match("LUA_VERSION_NUM%s*" .. ("%d%02d"):format(major, 
minor)) then
          return d ~= nil
       end
       return nil, "Lua header lua.h found at " .. d .. " does not match Lua 
version " .. luaver .. ". You can use `luarocks config variables.LUA_INCDIR 
<path>` to set the correct location.", "dependency", 2
@@ -811,7 +815,7 @@
    local err: string
    if ok then
       local filename = dir.path(vars.LUA_LIBDIR, vars.LUA_LIBDIR_FILE)
-      local fd = io.open(filename, "r")
+      local fd = io.open(filename, "rb")
       if fd then
          if not vars.LUA_LIBDIR_FILE:match((cfg.lua_version:gsub("%.", 
"%%.?"))) then
             -- if filename isn't versioned, check file contents
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/fs/lua.lua 
new/luarocks-3.13.0/src/luarocks/fs/lua.lua
--- old/luarocks-3.12.2/src/luarocks/fs/lua.lua 2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/src/luarocks/fs/lua.lua 2025-12-29 00:01:55.000000000 
+0100
@@ -213,6 +213,7 @@
    local path = package.path:sub(-1, -1) == ";" and package.path or 
package.path .. ";"
    local paths = {}
    for location in path:gmatch("(.-);") do
+      local location = location
       if location:lower() == "?.lua" then
          location = "./?.lua"
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/fs/win32/tools.lua 
new/luarocks-3.13.0/src/luarocks/fs/win32/tools.lua
--- old/luarocks-3.12.2/src/luarocks/fs/win32/tools.lua 2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/fs/win32/tools.lua 2025-12-29 
00:01:55.000000000 +0100
@@ -131,6 +131,7 @@
    local pipe = io.popen(fs.command_at(at, fs.quiet_stderr(vars.FIND), true))
    for file in pipe:lines() do
       -- Windows find is a bit different
+      local file = file
       local first_two = file:sub(1,2)
       if first_two == ".\\" or first_two == "./" then file=file:sub(3) end
       if file ~= "." then
@@ -223,7 +224,7 @@
    local result = {}
    local fd = assert(io.popen("wmic UserAccount get name"))
    for user in fd:lines() do
-      user = user:gsub("%s+$", "")
+      local user = user:gsub("%s+$", "")
       if not exclude[user] then
          table.insert(result, user)
       end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/tools/patch.lua 
new/luarocks-3.13.0/src/luarocks/tools/patch.lua
--- old/luarocks-3.12.2/src/luarocks/tools/patch.lua    2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/tools/patch.lua    2025-12-29 
00:01:55.000000000 +0100
@@ -188,6 +188,7 @@
    local lineno = 0
 
    for line in file_lines(fp) do
+      local line = line
       lineno = lineno + 1
       if state == 'header' then
          if startswith(line, "--- ") then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/tools/patch.tl 
new/luarocks-3.13.0/src/luarocks/tools/patch.tl
--- old/luarocks-3.12.2/src/luarocks/tools/patch.tl     2025-06-27 
08:32:52.000000000 +0200
+++ new/luarocks-3.13.0/src/luarocks/tools/patch.tl     2025-12-29 
00:01:55.000000000 +0100
@@ -188,6 +188,7 @@
   local lineno = 0
 
   for line in file_lines(fp) do
+    local line = line
     lineno = lineno + 1
     if state == 'header' then
       if startswith(line, "--- ") then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/util.lua 
new/luarocks-3.13.0/src/luarocks/util.lua
--- old/luarocks-3.12.2/src/luarocks/util.lua   2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/src/luarocks/util.lua   2025-12-29 00:01:55.000000000 
+0100
@@ -160,7 +160,7 @@
 end
 
 function util.lua_versions(sort)
-   local versions = { "5.1", "5.2", "5.3", "5.4" }
+   local versions = { "5.1", "5.2", "5.3", "5.4", "5.5" }
    local i = 0
    if sort == "descending" then
       i = #versions + 1
@@ -286,7 +286,7 @@
    local vers = require("luarocks.core.vers")
    if fs.is_dir(subdir) then
       for file in fs.dir(subdir) do
-         file = dir.path(subdir, file)
+         local file = dir.path(subdir, file)
 
          if file:match("rockspec$") and fs.is_file(file) then
             local rock, version = path.parse_name(file)
@@ -550,7 +550,7 @@
       rocks_provided["bit32"] = lv .. "-1"
    end
 
-   if lv == "5.3" or lv == "5.4" then
+   if lv == "5.3" or lv == "5.4" or lv == "5.5" then
       rocks_provided["utf8"] = lv .. "-1"
    end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/luarocks-3.12.2/src/luarocks/util.tl 
new/luarocks-3.13.0/src/luarocks/util.tl
--- old/luarocks-3.12.2/src/luarocks/util.tl    2025-06-27 08:32:52.000000000 
+0200
+++ new/luarocks-3.13.0/src/luarocks/util.tl    2025-12-29 00:01:55.000000000 
+0100
@@ -160,7 +160,7 @@
 end
 
 function util.lua_versions(sort?: string): function(): string
-   local versions = { "5.1", "5.2", "5.3", "5.4" }
+   local versions = { "5.1", "5.2", "5.3", "5.4", "5.5" }
    local i = 0
    if sort == "descending" then
       i = #versions + 1
@@ -286,7 +286,7 @@
    local vers = require("luarocks.core.vers")
    if fs.is_dir(subdir) then
       for file in fs.dir(subdir) do
-         file = dir.path(subdir, file)
+         local file = dir.path(subdir, file)
 
          if file:match("rockspec$") and fs.is_file(file) then
             local rock, version = path.parse_name(file)
@@ -550,7 +550,7 @@
       rocks_provided["bit32"] = lv.."-1"
    end
 
-   if lv == "5.3" or lv == "5.4" then
+   if lv == "5.3" or lv == "5.4" or lv == "5.5" then
       rocks_provided["utf8"] = lv.."-1"
    end
 

Reply via email to