From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 28 13:18:16 2022 Received: (at submit) by debbugs.gnu.org; 28 Jan 2022 18:18:16 +0000 Received: from localhost ([127.0.0.1]:60477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDVpA-0002Dz-6i for submit@debbugs.gnu.org; Fri, 28 Jan 2022 13:18:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:43504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDVp7-0002Dq-SZ for submit@debbugs.gnu.org; Fri, 28 Jan 2022 13:18:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDVp7-00037t-NW for guix-patches@gnu.org; Fri, 28 Jan 2022 13:18:13 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nDVp4-00070c-GD for guix-patches@gnu.org; Fri, 28 Jan 2022 13:18:12 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1643393888; cv=none; d=zohomail.com; s=zohoarc; b=Tbb9N7aEyNsw8NH65WgS+qjF3RwqKX0Yoec50yXP6YTC6WX5hShYlgyl6nrXKsJhDYZHg98VWjNwZNRih/3tdnENVs3NaRBBrrQgK98j9C4h+w9BjC+6AJVRFkgLapwLH/BVuSEG+WF4hGDyGY5AQgFxVmzyMP9kFAZtrss03EU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643393888; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=TeSGmzbxj99/NBFmZvQeBsUEd2iKm4oCj8E7B47N4do=; b=Uu2BK7FeoYdKIQkBYkNpdtitgHdGxQWlbAikqAWDLctfbGP0gzgYufJKEOfZwPVcyjSPOJroOmYLQlzbrUDHnJIRDesmzas/TmSlpO1xnXcxUcYbJVYnBZfLFHCruMU0nbkRUuWwu02ck9bC9GbsXF8Mu3APFacl0fo0wtSBrn0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643393888; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Transfer-Encoding; bh=TeSGmzbxj99/NBFmZvQeBsUEd2iKm4oCj8E7B47N4do=; b=NqylvxTCz8QOp5p9ejmHnJJ+jGRV3pQDkERy6AvmbBJIlxiITmr6ky4Pg+Ncm1sE Km7HUk3HwpMysmLECFK0tTGqocuV3yhuhT/XahHUovKGECcGtSL+iz4c7TQrdmtLKAM XJAm7680bc1J7qaz2QMDJ4W3PmxMUdzP2zsWl3h4= Received: from localhost (p54ad4fa1.dip0.t-ipconnect.de [84.173.79.161]) by mx.zohomail.com with SMTPS id 1643393886514667.9815203075382; Fri, 28 Jan 2022 10:18:06 -0800 (PST) From: Ricardo Wurmus To: guix-patches@gnu.org Subject: [PATCH] guix: Restore profile hook for TeX Live font maps. Date: Fri, 28 Jan 2022 19:18:01 +0100 Message-Id: <20220128181801.14998-1-rekado@elephly.net> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Ricardo Wurmus 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: -2.3 (--) * gnu/packages/tex.scm (texlive-default-updmap.cfg): New variable. * guix/profiles.scm (texlive-configuration): Rename this... (texlive-font-maps): ...to this; update to run updmap-sys on the contents of the profile to generate only font maps. (%default-profile-hooks): Add texlive-font-maps. * guix/status.scm (hook-message): Rename unused texlive-configuration to texlive-font-maps. --- gnu/packages/tex.scm | 12 ++++++ guix/profiles.scm | 99 +++++++++++++++++++------------------------- guix/status.scm | 4 +- 3 files changed, 56 insertions(+), 59 deletions(-) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 89f60f89d5..72437ce2f6 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -4314,6 +4314,18 @@ (define-public texlive-base '() default-packages))))) +(define-public texlive-default-updmap.cfg + (origin + (method url-fetch) + (uri (string-append "https://tug.org/svn/texlive/tags/" + %texlive-tag "/Master/texmf-dist/web2c/updmap.cfg" + "?revision=" (number->string %texlive-revision))) + (file-name (string-append "updmap.cfg-" + (number->string %texlive-revision))) + (sha256 + (base32 + "0zhpyld702im6352fwp41f2hgfkpj2b4j1kfsjqbkijlcmvb6w2c")))) + ;;; TODO: Add a TeX Live profile hook computing fonts maps (and others?) ;;; configuration from the packages in the profile, similar to what's done ;;; below. diff --git a/guix/profiles.scm b/guix/profiles.scm index 1d354ecb78..403dbc18ed 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -1738,8 +1738,8 @@ (define (manual-database/optional manifest) (manual-database manifest) (return #f)))) -(define (texlive-configuration manifest) - "Return a derivation that builds a TeXlive configuration for the entries in +(define (texlive-font-maps manifest) + "Return a derivation that builds the TeX Live font maps for the entries in MANIFEST." (define entry->texlive-input (match-lambda @@ -1768,72 +1768,56 @@ (define build ;; Build a modifiable union of all texlive inputs. We do this so ;; that TeX live can resolve the parent and grandparent directories ;; correctly. There might be a more elegant way to accomplish this. - (union-build #$output + (union-build "/tmp/texlive" '#$(append-map entry->texlive-input (manifest-entries manifest)) #:create-all-directories? #t #:log-port (%make-void-port "w")) - (let ((texmf.cnf (string-append - #$output - "/share/texmf-dist/web2c/texmf.cnf"))) - (when (file-exists? texmf.cnf) - (substitute* texmf.cnf - (("^TEXMFROOT = .*") - (string-append "TEXMFROOT = " #$output "/share\n")) - (("^TEXMF = .*") - "TEXMF = $TEXMFROOT/share/texmf-dist\n")) - - ;; XXX: This is annoying, but it's necessary because texlive-bin - ;; does not provide wrapped executables. - (setenv "PATH" - (string-append #$(file-append coreutils "/bin") - ":" - #$(file-append sed "/bin"))) - (setenv "PERL5LIB" #$(file-append texlive-bin "/share/tlpkg")) - (setenv "TEXMF" (string-append #$output "/share/texmf-dist")) - - ;; Remove invalid maps from config file. - (let* ((web2c (string-append #$output "/share/texmf-config/web2c/")) - (maproot (string-append #$output "/share/texmf-dist/fonts/map/")) - (updmap.cfg (string-append web2c "updmap.cfg"))) - (mkdir-p web2c) - - ;; Some profiles may already have this file, which prevents us - ;; from copying it. Since we need to generate it from scratch - ;; anyway, we delete it here. - (when (file-exists? updmap.cfg) - (delete-file updmap.cfg)) - (copy-file #$updmap.cfg updmap.cfg) - (make-file-writable updmap.cfg) - (let* ((port (open-pipe* OPEN_WRITE - #$(file-append texlive-bin "/bin/updmap-sys") - "--syncwithtrees" - "--nohash" - "--force" - (string-append "--cnffile=" web2c "updmap.cfg")))) - (display "Y\n" port) - (when (not (zero? (status:exit-val (close-pipe port)))) - (error "failed to filter updmap.cfg"))) - - ;; Generate font maps. - (invoke #$(file-append texlive-bin "/bin/updmap-sys") - (string-append "--cnffile=" web2c "updmap.cfg") - (string-append "--dvipdfmxoutputdir=" - maproot "updmap/dvipdfmx/") - (string-append "--dvipsoutputdir=" - maproot "updmap/dvips/") - (string-append "--pdftexoutputdir=" - maproot "updmap/pdftex/"))))) - #t))) + + ;; XXX: This is annoying, but it's necessary because texlive-bin + ;; does not provide wrapped executables. + (setenv "PATH" + (string-append #$(file-append coreutils "/bin") + ":" + #$(file-append sed "/bin"))) + (setenv "PERL5LIB" #$(file-append texlive-bin "/share/tlpkg")) + (setenv "GUIX_TEXMF" "/tmp/texlive/share/texmf-dist") + + ;; Remove invalid maps from config file. + (let* ((web2c (string-append #$output "/share/texmf-dist/web2c/")) + (maproot (string-append #$output "/share/texmf-dist/fonts/map/")) + (updmap.cfg (string-append web2c "updmap.cfg"))) + (mkdir-p web2c) + (copy-file #$updmap.cfg updmap.cfg) + (make-file-writable updmap.cfg) + (let* ((port (open-pipe* OPEN_WRITE + #$(file-append texlive-bin "/bin/updmap-sys") + "--syncwithtrees" + "--nohash" + "--force" + (string-append "--cnffile=" updmap.cfg)))) + (display "Y\n" port) + (when (not (zero? (status:exit-val (close-pipe port)))) + (error "failed to filter updmap.cfg"))) + + ;; Generate font maps. + (invoke #$(file-append texlive-bin "/bin/updmap-sys") + (string-append "--cnffile=" updmap.cfg) + (string-append "--dvipdfmxoutputdir=" + maproot "dvipdfmx/updmap") + (string-append "--dvipsoutputdir=" + maproot "dvips/updmap") + (string-append "--pdftexoutputdir=" + maproot "pdftex/updmap")))))) (mlet %store-monad ((texlive-base (manifest-lookup-package manifest "texlive-base"))) (if texlive-base - (gexp->derivation "texlive-configuration" build + (gexp->derivation "texlive-font-maps" build #:substitutable? #f #:local-build? #t #:properties `((type . profile-hook) - (hook . texlive-configuration))) + (hook . texlive-font-maps))) (return #f)))) (define %default-profile-hooks @@ -1849,6 +1833,7 @@ (define %default-profile-hooks glib-schemas gtk-icon-themes gtk-im-modules + texlive-font-maps xdg-desktop-database xdg-mime-database)) diff --git a/guix/status.scm b/guix/status.scm index eefe18365f..fba28765df 100644 --- a/guix/status.scm +++ b/guix/status.scm @@ -395,8 +395,8 @@ (define (hook-message hook-type) (G_ "building XDG MIME database...")) ('fonts-dir (G_ "building fonts directory...")) - ('texlive-configuration - (G_ "building TeX Live configuration...")) + ('texlive-font-maps + (G_ "building TeX Live font maps...")) ('manual-database (G_ "building database for manual pages...")) ('package-cache ;package cache generated by 'guix pull' -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 18:02:17 2022 Received: (at 53613) by debbugs.gnu.org; 31 Jan 2022 23:02:17 +0000 Received: from localhost ([127.0.0.1]:41174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEfgf-0000rf-9m for submit@debbugs.gnu.org; Mon, 31 Jan 2022 18:02:17 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:41898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEfgd-0000rP-M4 for 53613@debbugs.gnu.org; Mon, 31 Jan 2022 18:02:16 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2973335A; Tue, 1 Feb 2022 00:02:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YeTXa5KULVrM; Tue, 1 Feb 2022 00:02:09 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 640C91BD; Tue, 1 Feb 2022 00:02:09 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#53613: [PATCH] guix: Restore profile hook for TeX Live font maps. References: <20220128181801.14998-1-rekado@elephly.net> Date: Tue, 01 Feb 2022 00:02:09 +0100 In-Reply-To: <20220128181801.14998-1-rekado@elephly.net> (Ricardo Wurmus's message of "Fri, 28 Jan 2022 19:18:01 +0100") Message-ID: <87iltz8q6m.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 2973335A X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53613 Cc: 53613@debbugs.gnu.org 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: -0.0 (/) Hi! Ricardo Wurmus skribis: > * gnu/packages/tex.scm (texlive-default-updmap.cfg): New variable. > * guix/profiles.scm (texlive-configuration): Rename this... > (texlive-font-maps): ...to this; update to run updmap-sys on the contents= of > the profile to generate only font maps. > (%default-profile-hooks): Add texlive-font-maps. > * guix/status.scm (hook-message): Rename unused texlive-configuration to > texlive-font-maps. Out of curiosity, what does it fix, and how does it relate to past changes in this area (looks like =E2=80=98texlive-configuration=E2=80=99 wa= s added, then removed, then reintroduced)? I=E2=80=99m asking for documentation purposes because I trust your judgment anyway. :-) Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 18:42:35 2022 Received: (at 53613) by debbugs.gnu.org; 31 Jan 2022 23:42:35 +0000 Received: from localhost ([127.0.0.1]:41190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEgJe-0001wf-Ub for submit@debbugs.gnu.org; Mon, 31 Jan 2022 18:42:35 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEgJd-0001wX-7Q for 53613@debbugs.gnu.org; Mon, 31 Jan 2022 18:42:34 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1643672543; cv=none; d=zohomail.com; s=zohoarc; b=LMvLxY0pNDkYEcgD+GtET4ZnGEB0cn+O42qpgVFFMA96fE5hfuQ3VEbyrYcGvMsfQWDpuks/g+//cMJrKI1bPZsPQ2sXye6nQCYaPVtRyk7WZUMwrXWojMuiqz4fHpSWSh/af0whGAgF5yFmMXXhr8Ys2JuW9QQaV4NOv8Qv/AI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1643672543; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3UrfTM5cCCzpNk0GZ2nglzREp9j/im1HiseQcOzgdFg=; b=GZjaMXRg3SrCczP3StERxFOWxPuGdCBULkIeWc5WhUJHjPGsoj+jTvBrd8ViQy7miZXQaghEU2ER7n5hrD2DLiIzxpmxXDV3TgaXD4DLGqjfNsS23kUTHYi+Xe36sJgHSXO+td4Su52ti1Cz9+MXBh1IXLRA/m9Wg2KEnCyq0W8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643672543; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=3UrfTM5cCCzpNk0GZ2nglzREp9j/im1HiseQcOzgdFg=; b=dDviFsFjvm55xvXJIeTVAqxWVjbgtfyGxo/yEHlA+r4FSqCl6qKa4N2NJM+xobkL xQPfDyqGxZSmmgKtZWeM9mY0Au1OoFVeBg0TAi8me3epF9HARBB5lc0mKyCGC+f4UE+ hxa0YUYreb4xgBTKRH3HlH3fsS1b8sIzIF01gBkg= Received: from localhost (p54ad4fa2.dip0.t-ipconnect.de [84.173.79.162]) by mx.zohomail.com with SMTPS id 1643671639948719.4353639018707; Mon, 31 Jan 2022 15:27:19 -0800 (PST) References: <20220128181801.14998-1-rekado@elephly.net> <87iltz8q6m.fsf@gnu.org> User-agent: mu4e 1.6.10; emacs 27.2 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#53613: [PATCH] guix: Restore profile hook for TeX Live font maps. Date: Tue, 01 Feb 2022 00:08:02 +0100 In-reply-to: <87iltz8q6m.fsf@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87pmo78p0r.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 53613 Cc: 53613@debbugs.gnu.org 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 (-) Ludovic Court=C3=A8s writes: > Ricardo Wurmus skribis: > >> * gnu/packages/tex.scm (texlive-default-updmap.cfg): New variable. >> * guix/profiles.scm (texlive-configuration): Rename this... >> (texlive-font-maps): ...to this; update to run updmap-sys on the content= s of >> the profile to generate only font maps. >> (%default-profile-hooks): Add texlive-font-maps. >> * guix/status.scm (hook-message): Rename unused texlive-configuration to >> texlive-font-maps. > > Out of curiosity, what does it fix, and how does it relate to past > changes in this area (looks like =E2=80=98texlive-configuration=E2=80=99 = was added, then > removed, then reintroduced)? > > I=E2=80=99m asking for documentation purposes because I trust your judgme= nt > anyway. :-) The profile hook was called =E2=80=9Ctexlive-configuration=E2=80=9D because= it would create a customized texmf.cnf, the main configuration file for the whole TeX Live tree. Back then I saw no other way to support a modular TeX Live tree than to operate on the texlive-* packages that have actually been installed in the profile, build a union directory (hence the procedure name =E2=80=9Ctexlive-union=E2=80=9D, which did the same thing but for packages)= , and then install a texmf.cnf file that declared the prefix of the TeX Live tree to be the union directory. This was what the =E2=80=9Ctexlive-configuration=E2=80=9D hook primarily ac= complished: build the union, patch and install texmf.cnf. It then proceeded to operate on that union directory and generated font maps based on the fonts that had actually been installed. This approach had multiple disadvantages, the worst of which was that you could only really have one TeX Live tree. Maxim addressed this in commit 04a0b1e09abce99857e7930336421ca6d15ae630, where texmf.cnf was modified *once* and for all in texlive-bin to reference the GUIX_TEXMF variable to determine the root of the tree. This made much of =E2=80=9Ctexlive-configuration=E2=80=9D (and =E2=80=9Ctexlive-union=E2=80= =9D) obsolete, because we didn=E2=80=99t need to have any union directories at all, because we had no= need for a customized per-profile variant of texmf.cnf. Unfortunately, this change threw out the font-map-sized baby with the texmf.cnf-infested bath water. The effect of that was barely noticeable because font maps are weird and aren=E2=80=99t always used. Besides, we ha= d a couple of other font-related problems (e.g. invalid assumptions about directory links in kpathsea), which masked this newly introduced problem. This patch pulls the baby out of the drain: we=E2=80=99re again generating = font maps (such as pdftex.map) based on the contents of the profile. An alternative would be to install fully featured static font maps, which would almost always be completely wrong, because they would refer to fonts that haven=E2=80=99t been installed. The profile hook ensures a) = that the expected font map files exist and b) that they contain nothing beyond valid entries that correspond to the profile contents. Does this really solve problems? I don=E2=80=99t know. I think it=E2=80= =99s the right thing to do (and thus makes our modular TeX Live less wrong), but it didn=E2=80=99t solve mysteries like that koma-script bug that seems to be related to a missing font map file. The koma-script bug remains because the font map file is ignored. So =E2=80=A6 there=E2=80=99s more to fixing everything that=E2=80=99s wrong= with fonts in our modular TeX Live, but we=E2=80=99ve been chipping at it with commits like 4d2c861dfbd49f0e1619fda5dbf18e4cb5bca1d0, 2a5ed25c412e162505b2b371d00987fd158a91d4, and the like =E2=80=94 this is another one of these small things that should get us closer to the platonic ideal of fonts with TeX Live. I hope. --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 01 04:22:23 2022 Received: (at 53613) by debbugs.gnu.org; 1 Feb 2022 09:22:23 +0000 Received: from localhost ([127.0.0.1]:41704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEpMl-00082H-Cy for submit@debbugs.gnu.org; Tue, 01 Feb 2022 04:22:23 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:52186) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEpMg-000821-Sy for 53613@debbugs.gnu.org; Tue, 01 Feb 2022 04:22:22 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 195DD3F3; Tue, 1 Feb 2022 10:22:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fBtKR3lkzx4b; Tue, 1 Feb 2022 10:22:12 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DBF983D4; Tue, 1 Feb 2022 10:22:11 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#53613: [PATCH] guix: Restore profile hook for TeX Live font maps. References: <20220128181801.14998-1-rekado@elephly.net> <87iltz8q6m.fsf@gnu.org> <87pmo78p0r.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?utf-8?Q?Pluvi=C3=B4se?= an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 01 Feb 2022 10:22:11 +0100 In-Reply-To: <87pmo78p0r.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 01 Feb 2022 00:08:02 +0100") Message-ID: <87r18n54cc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 195DD3F3 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53613 Cc: 53613@debbugs.gnu.org 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: -0.0 (/) Howdy! Ricardo Wurmus skribis: [...] > Unfortunately, this change threw out the font-map-sized baby with the > texmf.cnf-infested bath water. The effect of that was barely noticeable > because font maps are weird and aren=E2=80=99t always used. Besides, we = had a > couple of other font-related problems (e.g. invalid assumptions about > directory links in kpathsea), which masked this newly introduced > problem. > > This patch pulls the baby out of the drain: we=E2=80=99re again generatin= g font > maps (such as pdftex.map) based on the contents of the profile. Oh, I see, makes perfect sense. Should some of this go in the commit log? [...] > Does this really solve problems? I don=E2=80=99t know. I think it=E2=80= =99s the right > thing to do (and thus makes our modular TeX Live less wrong), but it > didn=E2=80=99t solve mysteries like that koma-script bug that seems to be > related to a missing font map file. The koma-script bug remains because > the font map file is ignored. I didn=E2=80=99t see how the koma-script bug could relate to fonts but your explanation at looks plausible to my (untrained) eye. Thanks for explaining and fixing this! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 10 16:20:43 2022 Received: (at 53613) by debbugs.gnu.org; 10 Feb 2022 21:20:43 +0000 Received: from localhost ([127.0.0.1]:57346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIGrr-0004HM-2F for submit@debbugs.gnu.org; Thu, 10 Feb 2022 16:20:43 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:39804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIGrp-0004H6-9Q for 53613@debbugs.gnu.org; Thu, 10 Feb 2022 16:20:42 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 379CCAD3; Thu, 10 Feb 2022 22:20:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6qYaEQXJFCh8; Thu, 10 Feb 2022 22:20:34 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id EAADF2A1; Thu, 10 Feb 2022 22:20:33 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ricardo Wurmus Subject: Re: bug#53613: [PATCH] guix: Restore profile hook for TeX Live font maps. References: <20220128181801.14998-1-rekado@elephly.net> <87iltz8q6m.fsf@gnu.org> <87pmo78p0r.fsf@elephly.net> <87r18n54cc.fsf@gnu.org> Date: Thu, 10 Feb 2022 22:20:33 +0100 In-Reply-To: <87r18n54cc.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Tue, 01 Feb 2022 10:22:11 +0100") Message-ID: <87r18a2zby.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 379CCAD3 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53613 Cc: 53613@debbugs.gnu.org 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: -0.0 (/) Hello! Ludovic Court=C3=A8s skribis: > Ricardo Wurmus skribis: > > [...] > >> Unfortunately, this change threw out the font-map-sized baby with the >> texmf.cnf-infested bath water. The effect of that was barely noticeable >> because font maps are weird and aren=E2=80=99t always used. Besides, we= had a >> couple of other font-related problems (e.g. invalid assumptions about >> directory links in kpathsea), which masked this newly introduced >> problem. >> >> This patch pulls the baby out of the drain: we=E2=80=99re again generati= ng font >> maps (such as pdftex.map) based on the contents of the profile. > > Oh, I see, makes perfect sense. > > Should some of this go in the commit log? To be clear, I think you can go ahead and commit it, possibly with an extra comment if you feel so inclined. Thanks again, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 10 16:43:06 2022 Received: (at 53613-done) by debbugs.gnu.org; 10 Feb 2022 21:43:06 +0000 Received: from localhost ([127.0.0.1]:57381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIHDW-0007CG-IN for submit@debbugs.gnu.org; Thu, 10 Feb 2022 16:43:06 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIHDU-0007C8-I7 for 53613-done@debbugs.gnu.org; Thu, 10 Feb 2022 16:43:05 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1644529376; cv=none; d=zohomail.com; s=zohoarc; b=WFkBgToKQr7qMYGgJfwOHQ7TUD6tNX6eQpVTAqa7qFeZPRzH+52U3PY8JY5RPJcRDuI1TleK/62GPAt4T/FJVP0UrZ/504AL79abOJ5s0+CoRhXEPcIwxbvJeCuuxOxT6IltUpR3rOO/S7WAYFDUcSccZ38D9vbWnXyTz9Ie8WY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1644529376; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=eb9nqG2hw3ah2oHPTSEMq0c+fBx+r5Ro0qnmfmaqBXs=; b=NGez9myQE6ozGbF8A8jxAa4TwfLtHxmlmbkzwM/P7/Nns8i92iA0zYElwKBL9/mAg6yqtuRksgTQ+h1/uJ6oXiIW0EiGc1atsVvsq7Y9dIrDKZHKxvJI4diMyTJKywj3m31QjS2qvWTbY67Qn2XwKltNWt81rsy2o/+yJt4/bxc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1644529376; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=eb9nqG2hw3ah2oHPTSEMq0c+fBx+r5Ro0qnmfmaqBXs=; b=Me/GEynH919zUk6FxIAwM1Gouiv3GGP1IcknqbTT9YT9i0D5YJkSmhYV9XKLNh6J 8UH7cd0A51SCI2fXnopPkh5uFN2GIig7NTe9b2f4lid6VYtPG6dsasBB5BQoIbpkuXZ I2oC7p+LzXVmBS9wma4z6FSK/qsZOH2GIYhQFWJU= Received: from localhost (p54ad4fce.dip0.t-ipconnect.de [84.173.79.206]) by mx.zohomail.com with SMTPS id 1644529373884493.1713863626195; Thu, 10 Feb 2022 13:42:53 -0800 (PST) References: <20220128181801.14998-1-rekado@elephly.net> <87iltz8q6m.fsf@gnu.org> <87pmo78p0r.fsf@elephly.net> <87r18n54cc.fsf@gnu.org> <87r18a2zby.fsf_-_@gnu.org> User-agent: mu4e 1.6.10; emacs 27.2 From: Ricardo Wurmus To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#53613: [PATCH] guix: Restore profile hook for TeX Live font maps. Date: Thu, 10 Feb 2022 22:39:00 +0100 In-reply-to: <87r18a2zby.fsf_-_@gnu.org> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87iltmv1no.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53613-done Cc: 53613-done@debbugs.gnu.org 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 (-) Ludovic Court=C3=A8s writes: > Hello! > > Ludovic Court=C3=A8s skribis: > >> Ricardo Wurmus skribis: >> >> [...] >> >>> Unfortunately, this change threw out the font-map-sized baby with the >>> texmf.cnf-infested bath water. The effect of that was barely noticeable >>> because font maps are weird and aren=E2=80=99t always used. Besides, w= e had a >>> couple of other font-related problems (e.g. invalid assumptions about >>> directory links in kpathsea), which masked this newly introduced >>> problem. >>> >>> This patch pulls the baby out of the drain: we=E2=80=99re again generat= ing font >>> maps (such as pdftex.map) based on the contents of the profile. >> >> Oh, I see, makes perfect sense. >> >> Should some of this go in the commit log? > > To be clear, I think you can go ahead and commit it, possibly with an > extra comment if you feel so inclined. That=E2=80=99s how I understood it. I did go ahead and pushed it with an explanation in the commit message. Thanks for the review! --=20 Ricardo From unknown Fri Aug 15 21:23:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Mar 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator