head 1.2; access; symbols pkgsrc-2023Q4:1.1.0.6 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.4 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.2 pkgsrc-2023Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2024.03.21.08.27.03; author markd; state dead; branches; next 1.1; commitid fdbbOglF7zJcg03F; 1.1 date 2023.05.24.12.03.35; author markd; state Exp; branches; next ; commitid RHMAB8K5V7r9adqE; desc @@ 1.2 log @luatex: update to 1.18.0 Part of TeXlive 2024 * Lua-level checks for writing to files now similar to the TeX-level checks. * If the Lua value texconfig.trace_extra_newline is set, blank lines are output in the log between macro parameters. In 2020–2023, this was the case by default; before that, such blank lines were never output, which is the behavior of the other engines. @ text @$NetBSD: patch-texk_web2c_luatexdir_lua_luatex-core.lua,v 1.1 2023/05/24 12:03:35 markd Exp $ 1.16.0 -> 1.17.0 --- texk/web2c/luatexdir/lua/luatex-core.lua 2023/05/01 23:50:21 66983 +++ texk/web2c/luatexdir/lua/luatex-core.lua 2023/05/02 15:26:43 66984 @@@@ -7,7 +7,7 @@@@ -- copyright = 'LuaTeX Development Team', -- } -LUATEXCOREVERSION = 1.151 -- we reflect the luatex version where changes happened +LUATEXCOREVERSION = 1.161 -- we reflect the luatex version where changes happened -- This file overloads some Lua functions. The readline variants provide the same -- functionality as LuaTeX <= 1.04 and doing it this way permits us to keep the @@@@ -16,6 +16,8 @@@@ LUATEXCOREVERSION = 1.151 -- we reflect -- We test for functions already being defined so that we don't overload ones that -- are provided in the startup script. + + local saferoption = status.safer_option local shellescape = status.shell_escape -- 0 (disabled) 1 (anything) 2 (restricted) local kpseused = status.kpse_used -- 0 1 @@@@ -34,7 +36,7 @@@@ if kpseused == 1 then local kpse_recordoutputfile = kpse.record_output_file local io_open = io.open - local io_popen = io.popen + -- local io_popen = io.popen -- not need, we use os.kpsepopen local io_lines = io.lines local fio_readline = fio.readline @@@@ -75,12 +77,13 @@@@ if kpseused == 1 then return f end - local function luatex_io_popen(name,...) - local okay, found = kpse_checkpermission(name) - if okay and found then - return io_popen(found,...) - end - end + -- not need, we use os.kpsepopen + --local function luatex_io_popen(name,...) + -- local okay, found = kpse_checkpermission(name) + -- if okay and found then + -- return io_popen(found,...) + -- end + --end -- local function luatex_io_lines(name,how) -- if name then @@@@ -130,7 +133,8 @@@@ if kpseused == 1 then mt.lines = luatex_io_readline io.open = luatex_io_open - io.popen = luatex_io_popen + --io.popen = luatex_io_popen -- not need, we use os.kpsepopen + io.popen = os.kpsepopen else @@@@ -169,6 +173,8 @@@@ if saferoption == 1 then os.setenv = installdummy("os.setenv") os.tempdir = installdummy("os.tempdir") + os.kpsepopen = installdummy("os.kpsepopen") + io.popen = installdummy("io.popen") io.open = installdummy("io.open",luatex_io_open_readonly) @ 1.1 log @luatex: update to 1.17.0 (via patches) fixes CVE-2023-32700 @ text @d1 1 a1 1 $NetBSD$ @