-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot check
or save
with ConTeXt.
#232
Comments
I don't think that this is an option. I would not like it at all if l3build would overwrite my texmfauxtrees settings. And using
l3build could probably add some option which suppresses the setting. |
The ConTeXt formats (
There's this comment in the code: but I can't say that I understand it at all. There's also this: but its suggestion of copying I did manage to find a way to get diff --git a/regression-test.old b/regression-test.tex
index 0a1ef5f..e2db047 100755
--- a/regression-test.old
+++ b/regression-test.tex
@@ -292,7 +292,15 @@
\fi
\fi
\fi
+
+\ifdefined\startluacode
+ \startluacode
+ local hashes = resolvers.gethashes()
+ hashes[#hashes + 1] = {cache = false, type = "file", name = os.getenv("EXTRATEXMF")}
+ resolvers.generators.file({filename = os.getenv("EXTRATEXMF")})
+ \stopluacode
+\fi
\reset@catcodes diff --git a/l3build-check.old b/l3build-check.lua
index f016c25..d267f1c 100755
--- a/l3build-check.old
+++ b/l3build-check.lua
@@ -747,8 +747,16 @@ function runtest(name, engine, hide, ext, test_type, breakout)
local function setup(file)
return " -jobname=" .. name .. tokens .. ' "\\input ' .. file .. '" '
end
+ local texmfcnf
if match(checkformat,"^context$") then
function setup(file) return tokens .. ' "' .. file .. '" ' end
+ -- Only works for a `localtexmf()` that has a single path
+ texmfcnf = os_setenv .. " EXTRATEXMF=" .. localtexmf():gsub(";", ""):gsub("//", "/")
+ .. os_concat
+ else
+ -- Allow for local texmf files
+ texmfcnf = os_setenv .. " TEXMFCNF=." .. os_pathsep
+ .. os_concat
end
local basename = testdir .. "/" .. name
local gen_file = basename .. test_type.generated
@@ -781,9 +789,7 @@ function runtest(name, engine, hide, ext, test_type, breakout)
-- Avoid spurious output from (u)pTeX
os_setenv .. " GUESS_INPUT_KANJI_ENCODING=0"
.. os_concat ..
- -- Allow for local texmf files
- os_setenv .. " TEXMFCNF=." .. os_pathsep
- .. os_concat ..
+ texmfcnf ..
set_epoch_cmd(epoch, forcecheckepoch) ..
-- Ensure lines are of a known length
os_setenv .. " max_print_line=" .. maxprintline This patch is fairly awful though; it seems to work, but it's also really ugly and fragile. Another solution that also works is setting |
I've committed a partial fix: this simply avoids setting |
I had been using a similar patch for just over a year and it worked great. I've just installed 2023-07-17 and my standard l3build config now works with ConTeXt, so I believe that this issue is resolved.
I've been using l3build to test MkIV+MkXL for almost a year and a half now, and my earlier patch was all that I needed to make it work. If you're curious, you can look at my l3build config at https://github.com/gucci-on-fleek/lua-widow-control, but the way I'm using l3build is very idiosyncratic. I've had a pretty good experience with using l3build to test ConTeXt. My only complaint is that it's quite annoying to set up testing if you need to support 4 different formats like I do. Although I'm probably just doing something wrong. Anyways, thanks for the fix! |
Indeed, but leaves open the question of what happens when you need non-standard settings.
I was thinking of the GitHub Actions side of things: something is not quite right. |
l3build
modifies the$TEXMFCNF
variable, which makes ConTeXt tests break completely. Commenting out these lines:l3build/l3build-check.lua
Lines 794 to 796 in fb53b22
allows ConTeXt to run, although this causes
tdsdirs
to be ignored. This issue is present in both ConTeXt LMTX/MkXL and MkIV.This mailing list thread suggests that you can use the
$TEXMFAUXTREES
variable instead, although I have not tried this.Setup
I'm currently running TL 2021,
l3build
2022-03-15, and ConTeXt MkXL2022.04.20 19:18
on Windows 10 x86_64.Files
Create these files to test:
build.lua
context.lvt
context.tlg
Unmodified
l3build
Saving
Testing
Patched
l3build
Saving
Testing
The text was updated successfully, but these errors were encountered: