unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [core-updates] texlive 2021 bootstrap problem
@ 2021-06-15 19:00 Thiago Jung Bauermann
  2021-06-22  0:43 ` Thiago Jung Bauermann
  0 siblings, 1 reply; 9+ messages in thread
From: Thiago Jung Bauermann @ 2021-06-15 19:00 UTC (permalink / raw)
  To: guix-devel

Hello,

In an attempt to verify whether bug 48064¹ (”texlive-* packages fail to 
build non-deterministically”) is fixed by the current TeX Live version, I’ve 
been working on updating it to version 2021.1².

Unfortunately I ran into a bootstrapping issue: texlive-latex-base now 
depends on texlive-latex-l3kernel, otherwise its build fails with:

LaTeX2e <2020-10-01> patch level 4
! LaTeX requires expl3.

The problem is that if I add texlive-latex-l3kernel to the propagated-
inputs list of texlive-latex-base, then a dependency loop is formed since 
texlive-latex-l3kernel uses the texlive-build-system, which adds texlive-
latex-base as an implicit input. And if I understand thing correctly, 
l3kernel does indeed need some form of TeX or LaTeX in order to run
`source/latex/l3kernel/l3.ins`.

I tried to “cheat” and added the build argument
`#:texlive-latex-base ,texlive-bin` to texlive-latex-l3kernel (since 
texlive-bin doesn’t depend on texlive-latex-base), but then I get an error 
about not being able to find `luatex.fmt`.

Looking around the web, I found this answer:

> To answer your question about deactivation ... the L3 programming layer 
> is part of the core LaTeX format since release 2019-10-01 and it can't be 
> deactivated. At the moment it is there to speed up processing of packages 
> written in expl3, e.g., xparse, fontspec, and many others, but going 
> forward core parts of LaTeX will make direct use of it.
> 
> Deactivation is only possible by using a release prior to 2019-10 (even 
> rollback via "latexrelease" will load).
https://tex.stackexchange.com/a/538716

Does anyone have an idea how to break this dependency loop? Do we need to 
have a package definition for a pre-2019-10 version of LaTeX just to build 
texlive-latex-l3kernel, and then use that as a dependency for the actual 
texlive-latex-base package?

The only alternative I can think of is trying to build a minimal version of 
2021.1 LaTeX which somehow doesn’t use expl3 so that it can be used to 
build texlive-latex-l3kernel. But that is above my very superficial 
understanding of TeX and LaTeX. And the quote I pasted above doesn’t look 
very encouraging.

If anyone wants to have a look at what I have so far, I pushed my patch to 
branch “bug-48064-texlive-2021” at https://gitlab.com/bauermann/guix .

-- 
Thanks,
Thiago


¹ https://issues.guix.gnu.org/48064
² Well, almost. In order to have a stable URL to fetch from, I’m using the 
latest version available in the historic repository, which is slightly 
older than 2021.1.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-05  0:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 19:00 [core-updates] texlive 2021 bootstrap problem Thiago Jung Bauermann
2021-06-22  0:43 ` Thiago Jung Bauermann
2021-06-24 18:26   ` Maxim Cournoyer
2021-06-24 20:53     ` Thiago Jung Bauermann
2021-06-25  3:34       ` Maxim Cournoyer
2021-06-25  5:00         ` Thiago Jung Bauermann
2021-06-29 20:43           ` Thiago Jung Bauermann
2021-06-30 16:21             ` Maxim Cournoyer
2021-07-05  0:24               ` Thiago Jung Bauermann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).