[Dev-luatex] socket.url not recognized as a built-in library

Reinhard Kotucha reinhard.kotucha at web.de
Tue Jul 17 03:13:44 CEST 2018


Dear Sirs,
the script

  texlive/2018/texmf-dist/scripts/getmap/getmapdl.lua 

doesn't work anymore.  No problems with former versions of TeX Live.

It contains the lines

  local http = require("socket.http");
  local ltn12 = require("ltn12")
  local url = require("socket.url")

The luatex version in TL-2018 requires that I change the last line,
and *only* the last line to

  local url = socket.url

Otherwise luatex searches socket.url (and only socket.url) in Lua's
search path (/usr/local/share/...) without success, though socket.url
is already compiled into the binary.

Because only socket.url is affected and not socket.http or ltn12 and
everything worked in the past, I suppose that socket.url is not
registered as a built-in package aymore in current releases of luatex.  

It seems that 

  package.loaded.socket.url._NAME

and

  package.loaded.socket.url._PACKAGE

were removed accidentally.

Regards,
  Reinhard

$ diff -u socket.url-TeX-Live-2017 socket.url-TeX-Live-2018 
--- socket.url-TeX-Live-2017	2018-07-17 02:57:49.894030637 +0200
+++ socket.url-TeX-Live-2018	2018-07-17 02:58:28.469719914 +0200
@@ -1,6 +1,4 @@
-package.loaded.socket.core.url._NAME = "socket.url"
-package.loaded.socket.core.url._PACKAGE = "socket."
-package.loaded.socket.core.url._VERSION = "URL 1.0.2"
+package.loaded.socket.core.url._VERSION = "URL 1.0.3"
 package.loaded.socket.core.url.absolute()
 package.loaded.socket.core.url.build()
 package.loaded.socket.core.url.build_path()
@@ -8,9 +6,7 @@
 package.loaded.socket.core.url.parse()
 package.loaded.socket.core.url.parse_path()
 package.loaded.socket.core.url.unescape()
-package.loaded.socket.url._NAME = "socket.url"
-package.loaded.socket.url._PACKAGE = "socket."
-package.loaded.socket.url._VERSION = "URL 1.0.2"
+package.loaded.socket.url._VERSION = "URL 1.0.3"
 package.loaded.socket.url.absolute()
 package.loaded.socket.url.build()
 package.loaded.socket.url.build_path()


-- 
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:reinhard.kotucha at web.de
------------------------------------------------------------------


More information about the dev-luatex mailing list