From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 0OhNIWDQwmS3LAEASxT56A (envelope-from ) for ; Thu, 27 Jul 2023 22:15:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EH9PIWDQwmQ9SQAA9RJhRA (envelope-from ) for ; Thu, 27 Jul 2023 22:15:28 +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 0F0F4306B6 for ; Thu, 27 Jul 2023 22:15:26 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=n9kgKfHn; 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=1690488926; 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=xb/xOHsCiTVL+UMne8s7jB18Kc3hEREcKKBGcf08fbg=; b=QRiF6kgqgqiiBPG/QcZNzncHjHueeIhJYTT1hn+FV9p3mPHuRR7KSDpyRZZAMhRCd5ewnj SpN/kUyYAiZ8XrK+gJi9Zhmmsx6fod3Rrr+WrM+P+6KCpnKhUwv2QUQpBnG2e3lK7Tsbl+ fdM9fFinSqNgGcpkHNXaMQL0n41rmGUlAOR0oyyjjIC1jOybDuf6TdStJAvmvuUroTUzbC pgQzYwNSZ2rKRYCW7l+jL7tOnO8kgAMo23L+m04X7ky5xaHw3YzAm1sbxHjbmG8P5Y/okN P+/QF15dNbymE8BS/3t3vRcMPXe1DctwsjYYtgysNu6mOkke8EpKRL2kzOGbyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1690488926; a=rsa-sha256; cv=none; b=mN/KHHU9BbAQnqUhUZGrE2/VAP9xHTu5dqpWpzLDGHsiYZZDL1jeOYrByGqKL5DPzqRfhW Elv7j1BdlFUnt1Sn2COyf60PeFHT5hLVO1xEIs/QHTl8PNsQ6tuGw53qMxfN9qTFePATTu QvDIYSoCPFxQPnhqKAoFuGyNRhEwKR/zU7kfg9F7pJQ3+4u3sNQtdGOFgRP/n3hNLnQ1x+ fEfqL6ENZzLoV1bX3SWGytFlIgwndGqMFXyV+0n8xopgUBfZprepNjMXzlA5H5u9QwefiU lKs3KCF2oEMija81+wIvOI0+Eg7KCUCeIK4IWIRPwxi3qRVCFGFNs3zh0/TvRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=n9kgKfHn; 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 1qP7HH-0002oB-OH; Thu, 27 Jul 2023 16:08: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 1qP7HG-0002o0-CR for bug-guix@gnu.org; Thu, 27 Jul 2023 16:08: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 1qP7HG-0004RK-4j for bug-guix@gnu.org; Thu, 27 Jul 2023 16:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qP7HF-00076y-Nn for bug-guix@gnu.org; Thu, 27 Jul 2023 16:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64772: TeXlive (specifically LuaLaTeX) has become terribly slow Resent-From: Wojtek Kosior Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 27 Jul 2023 20:08: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.169048844727295 (code B ref 64772); Thu, 27 Jul 2023 20:08:01 +0000 Received: (at 64772) by debbugs.gnu.org; 27 Jul 2023 20:07:27 +0000 Received: from localhost ([127.0.0.1]:43178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP7Gh-00076A-9f for submit@debbugs.gnu.org; Thu, 27 Jul 2023 16:07:27 -0400 Received: from koszko.org ([93.95.227.159]:49678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qP7Gc-00075s-BO for 64772@debbugs.gnu.org; Thu, 27 Jul 2023 16:07:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To: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:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xb/xOHsCiTVL+UMne8s7jB18Kc3hEREcKKBGcf08fbg=; b=n9kgKfHnNi+o3M25+ldY1xh+3y qfrePFxI8xXjbnfZqsEanwxKzaWT5CrJZn5U4f8UEpThdNfSMcr5+mWz3r5WTVyw28SAztO9HvO+T 1VDEnc/5bhZwsoB96qfPyxyYV+CUIkTzpN6w8ra3HO7607lMPgwwo2gNRTukUs530olFE2zmaEins OOSOVXu9ckxPA2hxy/+tiiJBthWuDhzIc9X9Uqj9J7AGDouyEyln/9PtNx3MUHPmSz+16iUbvf+Ih HWSVlNYsZS95n5NA4wuSnuLBJuMa9NkNB4nyEiqDZgKpzMwIbfEnwj8ZjyKVRBPcW/B+aAXxFWbwm MBabvYIQHPd2KfHiniytavEEOeulZt6paCu9jZJh2FRvjkntxgwBSrqJUGH5TI+iYrvF0OPi1wIjD PR3iIKCX/SW2ORaRfRrYJitEI2hqEu4rP9ZvXdi2xyHBtP4eRgdc7YZQtK6mo7zqUN03I3LsYgSlZ hNnZwM7LUBFpfyyGl2sJTGx50CspZ+VnEUgJoRNSpKpx2noayV8+o2fFXKoTu9aXCjQFAbuKt5aTB Qk5kv3k4OzJBh0wPBgWdbHXD0aAfK8NPaA2Y0lfi22cjXzVLEj6TIeiTWlW4wA6dfRehWHGdVZUyl XlFtIG93P0TKqOH9QryZ0ft7zc5rOP7jWs13adkEg=; 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 1qP7GU-0003Up-Vf; Thu, 27 Jul 2023 22:07:15 +0200 Date: Thu, 27 Jul 2023 22:07:12 +0200 Message-ID: <20230727220712.41f5e278.koszko@koszko.org> In-Reply-To: <20230727002142.072c0bab.koszko@koszko.org> References: <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_/ZM=L6XGzgXPvHFAfrNN8DZn"; 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: -7.24 X-Spam-Score: -7.24 X-Migadu-Queue-Id: 0F0F4306B6 X-TUID: 5L89wNMTegxg --Sig_/ZM=L6XGzgXPvHFAfrNN8DZn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I ran lualatex under strace, additionally prepending the time to each line of output. The new (i.e. after tex-team-next merge this July) lualatex has *a lot* of lines like this in the output --8<---------------cut here---------------start------------->8--- Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.lua", R_OK) =3D -= 1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luatex", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luc", R_OK) =3D -= 1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.luctex", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.texlua", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.texluc", R_OK) = =3D -1 ENOENT (No such file or directory) Thu Jul 27 09:31:56 PM CEST 2023: access("/home/urz/.guix-home/profile/shar= e/texmf-dist/scripts/context/lua/lualatexquotejobname/lua.tlu", R_OK) =3D -= 1 ENOENT (No such file or directory) --8<---------------cut here---------------end--------------->8--- The "old" lualetex (i.e. one from before the merge) does not produce these under strace. This test has been done (in case anyone's wondering) *after* bind-mounting the texmf.cnf of texlive-kpathsea as explained in my previous message. Hopefully, this will help someone solve this 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) On Thu, 27 Jul 2023 00:21:42 +0200 Wojtek Kosior wrote: > Hi, >=20 > 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 >=20 > TEXMFROOT =3D {$GUIX_TEXMF}/.. >=20 > 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 ",". >=20 > 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 >=20 > TEXMFROOT =3D $GUIX_TEXMF/.. >=20 > 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 n= eed to > be different. Just in case, this is the part of texlive-kpathsea > definition in gnu/packages/tex.scm that prepares 'texmf.cnf': >=20 > ``` > (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_T= EXMF > ;; environment variable defined via a search path below. > ;; > ;; This phase must happen before the `configure' phase, becau= se > ;; 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")= ))) >=20 > ``` >=20 > Unfortunately, changes to 'texmf.cnf' don't affect the running time of > lualatex =E2=80=94 it's still terribly slow >=20 > Wojtek >=20 > -- (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 >=20 > =E2=99=A5 R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ=3D=3D | =C3=B7 c2luIHNlcGFyY= XRlZCBtZSBmcm9tIEhpbQ=3D=3D > =E2=9C=9D YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ=3D=3D | ? U2hhbGwgSSBiZWNvbW= UgSGlzIGZyaWVuZD8=3D > -- (sig_end) --Sig_/ZM=L6XGzgXPvHFAfrNN8DZn Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMLOcAAKCRBLxSIcWnn9 GtDCAQCKKvSijDhWcPZrBeRrarALwQ4vGC82QN6VLnzguNjS7wEAzZp2O7wsLgVP ktCD/veJo+UyuzSbRbIZIOR4kNm7Sgk= =8KpM -----END PGP SIGNATURE----- --Sig_/ZM=L6XGzgXPvHFAfrNN8DZn--