From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 28 17:55:51 2022 Received: (at 55113) by debbugs.gnu.org; 28 Jul 2022 21:55:51 +0000 Received: from localhost ([127.0.0.1]:59528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHBTz-0003NH-3Z for submit@debbugs.gnu.org; Thu, 28 Jul 2022 17:55:51 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:42968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHBTw-0003N3-Ik for 55113@debbugs.gnu.org; Thu, 28 Jul 2022 17:55:49 -0400 Received: by mail-qk1-f170.google.com with SMTP id o1so2446000qkg.9 for <55113@debbugs.gnu.org>; Thu, 28 Jul 2022 14:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=pMPjalB90FjPNjj5HMTqTf+nEve4elC4PaVGOvImTiQ=; b=Y4w5bNnptzRNzf6RX5y/TjQZRStEVuZeYwRRfoUW3KpaBt5k0cZLtCSatpfZCUd7f2 aeG/8vlxv8XVyeNQHb72MrOaiFP+73o5WP4Wrri/XIC3HIKpcyXYtclzZRAyP4T1hzIH YbF+EamlkoEuQqIyxyd4B4J1aKHPAe+Xmi0dqd137XlVnU8lvmSxtinl768quqLOSNKk lMoHq5ai/qjVAAPyIRPhTVE16b1L3jUcGTbznD/TvvLCbtarj6fCmuRcVSJW1J8yV+wM /kphTAwy1bWXqunHGeluTtrcuTQF+enCrrJ0CjT/JdXcDuWs8vKFzsSB9VhZ92RKk1aE KAQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=pMPjalB90FjPNjj5HMTqTf+nEve4elC4PaVGOvImTiQ=; b=JmO8RKT/s9xawny1ttQlmnhf9GD/0AJdkz73YOxyBmyTfBQn/+8p1zL6FZ1YsgJYKg Yiz8/YOUW94/D+B9/L5nU72x0Jw26xbicbGP4NoQpZFsl2um3ajARxtI9LO9HOfxZ/i2 KufVeozl536sNmT3uSqFAy2qpzJqkfVW9hZnKOu9sHKUdlNqOm00hXl4XbA+2xygAZl7 Rqbz2cuumZa/X7MYIIWlwuokpXmWJU+lA1flJaIPtpIGjpttqOPlD4+E1iL6nnntt0e/ /u9hy4ZUnDmKo3JMMiimg13HlVidKCFt3YcAzkFMOebLNBAET2NQOWA5wO7xNHodc0nI a4aw== X-Gm-Message-State: AJIora+Jho8G+as0N9N/lYjXIwehCzE5mHWu6GeVlOoeShRxOerrbcaV O3HP3tYrU1vtwqgLcUVT5DHc+kVRO24aTw== X-Google-Smtp-Source: AGRyM1tehHEJhbafU6ctgINp6zsIvtl0KCZtiGc/Me36bYjIEQun9MbbOrpaV+Sz6Etk1+6MGikPFg== X-Received: by 2002:ae9:e313:0:b0:6b5:e41b:64fe with SMTP id v19-20020ae9e313000000b006b5e41b64femr685793qkf.323.1659045342776; Thu, 28 Jul 2022 14:55:42 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::bae2]) by smtp.gmail.com with ESMTPSA id bq16-20020a05622a1c1000b0031ece8b6666sm1075882qtb.43.2022.07.28.14.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jul 2022 14:55:40 -0700 (PDT) References: <87h73huceo.fsf@gmail.com> User-agent: mu4e 1.6.11; emacs 28.1 From: Christopher Rodriguez To: Maxim Cournoyer Subject: Re: bug#55113: [BUG] texlive-bin doesn't set $TEXMFCACHE properly Date: Thu, 28 Jul 2022 16:58:17 -0400 In-reply-to: <87h73huceo.fsf@gmail.com> Message-ID: <87k07wsy0b.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 55113 Cc: 55113@debbugs.gnu.org, Christopher Rodriguez X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Sorry for the delay; I came down with the rona and was knocked out of commission for a while. Maxim Cournoyer 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 =2D-=20 Christopher Rodriguez --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJMQbvYVxvZ0eF/84XZ6FgaGVz3sFAmLjBdQACgkQXZ6FgaGV z3v9OA//TCi5Idk94iJ3yrM1pUgWqeAptK2ELXFy+8Ku+8LMgOLKWKs0fS2bfNbU KqdraGBnRUIlAKNAbbG13+MtrRF9I2g9j34rVFLQpJmveuckIBa38dk4uql7Rl4l Cv5M6UoVttIgJItE97UqHqzZpI/Glrxda3Wqe6L4aL2KY7uhFCHLqVCAn0CH7CnQ +n483+vqyHO7YrfcZiT/EMI8sS/ats5AIgmmWjGaKtFN9m65n8puQhwr65fVHWBR YORlXcWp2l1R+LwXTXOXmdiGhAwwC3+OQh84kITOsGlwBXmuQO8gfXp6FItj5msF e8oYxEVF/yFLQOuyjrMOrSnRV583g1Y8iCU2IS8iJR1e3zyJ7UvXtVg6KAiSXVTm pG97faal3cHw6mt5Bfo8fFimcJaJA5o2TVYLsin03whL7wHuWM3pZvK3Q9hWKiVc ZpB8WQmAZtS4wG89xFJZ20HYPHzKjFTZdWdOnG0Dq5bBksed7PLBGd8zUbaZc6aW 5EeuRYHH6zW28l/2EhyOVxlGcowkjvZsCNb8Ii8g3qNnt4paaWvfOK5iNWveiKq4 OUrEoQGWqqTzG9QZHF0Brj0SdlbaGNUbj2nPYGGgbEUl/obIaWLXCRmKHKqlKV7z 7n8db1FkH90jRsx4YbvGgPPWauK5hBO2I5lNOOQgHlG2GpWwmBE= =5/2b -----END PGP SIGNATURE----- --=-=-=--