From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qGpkOCagwWQRcQEASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 00:37:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0MW0NyagwWS7KgEAG6o9tA (envelope-from ) for ; Thu, 27 Jul 2023 00:37:26 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 270BA4BA9A for ; Thu, 27 Jul 2023 00:37:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=umNNYFEO; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1690411046; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=A94aoDIxZ74azFr2yWir+/79Pfz68J3ff3iyTj0FaqE=; b=hy+xUUu7GzjQQiLMsJ7arlZgDVoAtL5jl7ClHkmiBhK1ZxKzbx+yGfSDnHNQDtkHMQs2Tm dGn4mqn9EMPtNWaQ+s+spGVNhnCocSCedi5SvlVdk54KcxS4HZud9KEhoMOY13yHzngZCh wd1JdtqjKM1zW0VkFC6pZdVmRnCAIbWVxueQ4RDYQxhmiWJtegtunFuRlVAb+9Fn7+/crt IGzZ0esj7GGEPukRWgKD25Aqm1FjYtI+u3Ahp4f3v6ZYf2vLWlAgDzxM4Aj2rmVq0UJyWh fu8VvmXwyfG1wSa6VnyO1QBfRiUQ+q2nPNRuPwG/Cq3TvmT4L0+FuZjAP9auZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690411046; a=rsa-sha256; cv=none; b=jSI8kLB5jteBYiStpPUTMAHvp9zu8QP9XwNw7vkEUm0IBbbfd6aVwaPtdoJS5U4I4/bSTL cyhyEpYriFH9Z9yjxTav8LWL6Zdyi7tgUvlAo+oZaEJnVHuZY3ssvBa3E3V7GOT6R0o5A4 ulPfK4TjOvZuugRQgZUlqppK2+1cZce4JHTgE683qo0T5yrrPxkSKU15yNjEgjw0osECYB rpVWsmpRpHWf3VLClTkKfSu+vo5zuMOyp0QdBRb8zhqIWk+j0lXd00gr+jId18SflvmCk6 iFFUVsYHPXp/a2PCVWKY39SJ/kxHEwRYGdSo1Lf4NSSWlqKhOFP3H+269+Tgww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=umNNYFEO; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOmtP-0005jO-Er; Wed, 26 Jul 2023 18:22:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOmtO-0005jG-70 for bug-guix@gnu.org; Wed, 26 Jul 2023 18:22:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qOmtN-00066B-V9 for bug-guix@gnu.org; Wed, 26 Jul 2023 18:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOmtN-0002bK-K5 for bug-guix@gnu.org; Wed, 26 Jul 2023 18:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow References: <86zg3pkzz6.fsf@gmail.com> In-Reply-To: <86zg3pkzz6.fsf@gmail.com> Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 26 Jul 2023 22:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 64772@debbugs.gnu.org Cc: Nicolas Goaziou Received: via spool by 64772-submit@debbugs.gnu.org id=B64772.16904101159985 (code B ref 64772); Wed, 26 Jul 2023 22:22:01 +0000 Received: (at 64772) by debbugs.gnu.org; 26 Jul 2023 22:21:55 +0000 Received: from localhost ([127.0.0.1]:40130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOmtG-0002ay-MG for submit@debbugs.gnu.org; Wed, 26 Jul 2023 18:21:55 -0400 Received: from koszko.org ([93.95.227.159]:49676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOmtD-0002ap-Ov for 64772@debbugs.gnu.org; Wed, 26 Jul 2023 18:21:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=A94aoDIxZ74azFr2yWir+/79Pfz68J3ff3iyTj0FaqE=; b=umNNYFEOs7gfB860vjxhPKngWK Vd0MxRNcGMyYMV1HvIii6ktWGF4kLhY9rE35Jrnp8Vd85CRE+8Rvq344600GxazovcyYM6oJ/VRew YoBRfpzVMxqGZCsTDVYlFcMCv/D3RovzioAu999Q1yBasND5Bm7FoOBIqk+Cvg4VvFgdiV+bKrIJ8 cNwim54sfFxk0+fT05JTYEAM9MDEFFra0z6j6jy1/UOXKzOHgvMJ3TC82d/QnqBQ8q1Qb4+8OuXXi kxCz2255PWS7eXWCc/xultRX1fWygCmU8bNZ4ysYbbCgx9WdvePssInRoWDoC+8ni72Hl3SkBKtBz D3OokORtPaWHvZArr6N3acW5Ec1qHQVDJpZiuQwyoVhflKZgFMc+3XZwhK9eVLd96WwVXsfjR14v1 QSuDBTMlWFR38VZoR+zIe8YVaVzyqsQDEXY2nn2jCOvuqGRZX5bsW2QX0LOK6XPIEJTS13dpNMDmm 3WSH2krNUq2DsHMROVtaxC2NCPyTeWJOTj+YKoLiLOp+6X6lD578F2P4Jurra1pbRLtTwZUoBHTEO 0IQ9INvoith3UA1wF0B00hz/3gRIeWeYwGMDC80kahJEfE7pY3Zf66cl+YDXXgCmTmzk4OKaGXN0b 9Uzh5N8NelrTEVFIqcJbWPUk6WnT0011Z/0/rz5Eg=; Received: from [77.252.47.76] (helo=localhost) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qOmt6-0002Jj-Az; Thu, 27 Jul 2023 00:21:44 +0200 Date: Thu, 27 Jul 2023 00:21:42 +0200 Message-ID: <20230727002142.072c0bab.koszko@koszko.org> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/PczSg.d.HGoPuVcuzcEuC0Z"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -8.74 X-Spam-Score: -8.74 X-Migadu-Queue-Id: 270BA4BA9A X-TUID: mEYw8/yiLPwr --Sig_/PczSg.d.HGoPuVcuzcEuC0Z Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I think I know what causes a subdirectory of '{' to be used for caches =E2=80=94 the 'share/texmf-dist/web2c/texmf.cnf' file in the texlive-libkpathsea package has a TEXMFROOT =3D {$GUIX_TEXMF}/.. line. It's a "runtime path configuration file for kpathsea" and in general it supports brace expansion. However, in this case something goes wrong. Maybe the expansion is only triggered when there's at least one comma in between the braces? Idk. Btw, Guix uses ":" and not a comma as path separator in 'GUIX_TEXMF' variable and I have no idea whether kpathsea's brace expansion allows ":" to be used instead of ",". Still, I'm pretty sure it is this line that causes the '{' directory problem =E2=80=94 I tried running lualatex after bind-mounting a modified texmf.cnf over the one in the store. I replaced that line with TEXMFROOT =3D $GUIX_TEXMF/.. and no '{' was created this time. Of course, it only worked because GUIX_TEXMF was holding just one path =E2=80=94 a general solution would nee= d to be different. Just in case, this is the part of texlive-kpathsea definition in gnu/packages/tex.scm that prepares 'texmf.cnf': ``` (add-after 'unpack 'customize-texmf.cnf ;; The default "texmf.cnf" file is provided by this package. ;; Every variable of interest is set relatively to the GUIX_TEX= MF ;; environment variable defined via a search path below. ;; ;; This phase must happen before the `configure' phase, because ;; the value of the TEXMFCNF variable (modified along with the ;; SELFAUTOLOC reference below) is used at compile time to ;; generate "paths.h" file. (lambda _ (substitute* "texk/kpathsea/texmf.cnf" (("^TEXMFROOT =3D .*") "TEXMFROOT =3D {$GUIX_TEXMF}/..\n") (("^TEXMF =3D .*") "TEXMF =3D {$GUIX_TEXMF}\n") (("\\$SELFAUTOLOC(/share/texmf-dist/web2c)" _ suffix) (string-append #$output suffix)) ;; Don't truncate lines. (("^error_line =3D .*$") "error_line =3D 254\n") (("^half_error_line =3D .*$") "half_error_line =3D 238\n") (("^max_print_line =3D .*$") "max_print_line =3D 1000\n")))) ``` Unfortunately, changes to 'texmf.cnf' don't affect the running time of lualatex =E2=80=94 it's still terribly slow Wojtek -- (sig_start) website: https://koszko.org/koszko.html fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A follow me on Fediverse: https://friendica.me/profile/koszko/profile =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyYXR= lZCBtZSBmcm9tIEhpbQ=3D=3D =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbWUg= SGlzIGZyaWVuZD8=3D -- (sig_end) --Sig_/PczSg.d.HGoPuVcuzcEuC0Z Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMGcdgAKCRBLxSIcWnn9 GimkAP418QD7rnAGfTbU9fqCuzx0KSm/Jh/6fj8FAehUThdpwQD8DB9orap7ZhA6 sQiGGjRqcy4E1fQoa4XUvr0uyxsmUQc= =ZvKp -----END PGP SIGNATURE----- --Sig_/PczSg.d.HGoPuVcuzcEuC0Z--