GNU bug report logs - #55113
[BUG] texlive-bin doesn't set $TEXMFCACHE properly

Previous Next

Package: guix;

Reported by: Christopher Rodriguez <yewscion <at> gmail.com>

Date: Mon, 25 Apr 2022 18:19:01 UTC

Severity: normal

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55113 in the body.
You can then email your comments to 55113 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#55113; Package guix. (Mon, 25 Apr 2022 18:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Rodriguez <yewscion <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 25 Apr 2022 18:19:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Rodriguez <yewscion <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: [BUG] texlive-bin doesn't set $TEXMFCACHE properly
Date: Mon, 25 Apr 2022 14:10:52 -0400
[Message part 1 (text/plain, inline)]
Hello all,

I'm currently switching from using the monolithic texlive package to a
bunch of the broken-out, smaller ones. However, when texlive-bin is
installed (and thus, when luaotfload-tool is available), the environment
variable $TEXMFCACHE is not defined. This leads to it being auto-detected
(and incorrectly identified somehow as
`$PWD/'{'$GUIX_PROFILE/share/texmf-dist` which is read-only.)

As a workaround, I have added an explicit definition for $TEXMFCACHE in
my .bash_profile, but I wanted to report this as a bug in case someone
more familiar with the package could fix it.

--

Christopher Rodriguez
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55113; Package guix. (Sat, 16 Jul 2022 00:31:02 GMT) Full text and rfc822 format available.

Message #8 received at 55113 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Christopher Rodriguez <yewscion <at> gmail.com>
Cc: 55113 <at> debbugs.gnu.org
Subject: Re: bug#55113: [BUG] texlive-bin doesn't set $TEXMFCACHE properly
Date: Fri, 15 Jul 2022 20:30:39 -0400
Hi,

Christopher Rodriguez <yewscion <at> gmail.com> writes:

> Hello all,
>
> I'm currently switching from using the monolithic texlive package to a
> bunch of the broken-out, smaller ones. However, when texlive-bin is
> installed (and thus, when luaotfload-tool is available), the environment
> variable $TEXMFCACHE is not defined. This leads to it being auto-detected
> (and incorrectly identified somehow as
> `$PWD/'{'$GUIX_PROFILE/share/texmf-dist` which is read-only.)

Could you share your workload to demonstrate the problem (reproducer),
if it's not too complicated?  texlive-bin sets GUIX_TEXMF; perhaps
TEXMFCACHE is derived from it in the default texlive config.

Thanks,

Maxim




Added tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Sat, 16 Jul 2022 00:31:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#55113; Package guix. (Thu, 28 Jul 2022 21:56:02 GMT) Full text and rfc822 format available.

Message #13 received at 55113 <at> debbugs.gnu.org (full text, mbox):

From: Christopher Rodriguez <yewscion <at> gmail.com>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 55113 <at> debbugs.gnu.org, Christopher Rodriguez <yewscion <at> gmail.com>
Subject: Re: bug#55113: [BUG] texlive-bin doesn't set $TEXMFCACHE properly
Date: Thu, 28 Jul 2022 16:58:17 -0400
[Message part 1 (text/plain, inline)]
Sorry for the delay; I came down with the rona and was knocked out of
commission for a while.

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Could you share your workload to demonstrate the problem (reproducer),
> if it's not too complicated?  texlive-bin sets GUIX_TEXMF; perhaps
> TEXMFCACHE is derived from it in the default texlive config.

Absolutely. I've taken the liberty of uploading a terminal log[1] to
demonstrate.

Basically, as I'm using these piecemeal packages, I am trying to include
as few packages as possible, and therefore keep things minimal. When I
do so, however, the selection of packages does not set TEXMFCACHE. As I
use lualatex, this means it is autodefined, and incorrectly, as the
following (note the braces; might be a failed variable or something?):

{$GUIX_PROFILE/share/texmf-dist/}

This ends up creating a \{/ directory in the same directory as lualatex
is run, and thus doesn't ever create a cache for fonts to use. If the
braces weren't there, it would instead be pointing to a read-only
directory in the store (or rather, a symlink to one) I believe.

The guix shell I used in my example[1] was the following:

guix shell --pure texlive-luaotfload texlive-bin bash \
texlive-tex-ini-files texlive-latex-base tree coreutils

I feel this is the minimal packages needed to show this issue, though
the above will always fail to create a /usable/ cache: It includes none
of the fonts (and so I bail on the compilation while it is looking for a
default font with 'X'. However, the directory has already been created
at this point, and therefore the problem already exists. The same
behavior, minus the failed compilation, can be observed in my full
manifest of texlive packages[2], though some of those are self-defined
in my personal channel[3]).

If GUIX_TEXMF is being set by texlive-bin, perhaps that variable should
be used to set an otherwise-empty TEXMFCACHE in texlive-bin as well? If
overrides are needed, the user could then still set that variable in
their profile. And this would allow the out-of-the-box experience for
piecemeal texlive packages to be smoother. (Also, so long as it points
to a writable directory, it doesn't really matter to me /where/ that
directory is. I chose $HOME/.local/share/texmf-dist/ because it seemed
standard, but I'm necessarily saying it is the 'correct' one.)

What do You think?


[1]: http://paste.debian.net/1248671/
[2]: http://paste.debian.net/1248676/
[3]: https://git.sr.ht/~yewscion/yewscion-guix-channel

-- 

Christopher Rodriguez
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55113; Package guix. (Thu, 26 Sep 2024 13:12:02 GMT) Full text and rfc822 format available.

Message #16 received at 55113 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: control <at> debbugs.gnu.org
Cc: 55113 <at> debbugs.gnu.org
Subject: Re: bug#55113: [BUG] texlive-bin doesn't set $TEXMFCACHE properly
Date: Thu, 26 Sep 2024 22:09:49 +0900
tags 55113 - moreinfo
quit




Removed tag(s) moreinfo. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 26 Sep 2024 13:12:02 GMT) Full text and rfc822 format available.

Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Thu, 26 Sep 2024 15:06:02 GMT) Full text and rfc822 format available.

Notification sent to Christopher Rodriguez <yewscion <at> gmail.com>:
bug acknowledged by developer. (Thu, 26 Sep 2024 15:06:02 GMT) Full text and rfc822 format available.

Message #23 received at 55113-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 55113-done <at> debbugs.gnu.org
Subject: Re: bug#55113: [BUG] texlive-bin doesn't set $TEXMFCACHE properly
Date: Thu, 26 Sep 2024 17:04:09 +0200
Hello,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> tags 55113 - moreinfo quit

This is actually fixed in latest TeX Live update.

I'm closing it.

Regards,
-- 
Nicolas Goaziou






Information forwarded to bug-guix <at> gnu.org:
bug#55113; Package guix. (Fri, 11 Oct 2024 01:50:02 GMT) Full text and rfc822 format available.

Message #26 received at 55113-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: 55113-done <at> debbugs.gnu.org
Subject: Re: bug#55113: [BUG] texlive-bin doesn't set $TEXMFCACHE properly
Date: Fri, 11 Oct 2024 10:47:42 +0900
Hi,

Nicolas Goaziou <mail <at> nicolasgoaziou.fr> writes:

> Hello,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>
>> tags 55113 - moreinfo quit
>
> This is actually fixed in latest TeX Live update.
>
> I'm closing it.

Awesome, thanks for working on it.

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 08 Nov 2024 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.