GNU bug report logs - #71602
[PATCH] gnu: texlive-scripts: add mktexfmt

Previous Next

Package: guix-patches;

Reported by: spencerpeters <spencerpeters <at> protonmail.com>

Date: Sun, 16 Jun 2024 23:20:01 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#71602: closed ([PATCH] gnu: texlive-scripts: add mktexfmt)
Date: Mon, 17 Jun 2024 07:20:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 17 Jun 2024 09:18:59 +0200
with message-id <87a5jkxcik.fsf <at> nicolasgoaziou.fr>
and subject line Re: [bug#71602] [PATCH] gnu: texlive-scripts: add mktexfmt
has caused the debbugs.gnu.org bug report #71602,
regarding [PATCH] gnu: texlive-scripts: add mktexfmt
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
71602: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71602
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: spencerpeters <spencerpeters <at> protonmail.com>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Cc: "rekado <at> elephly.net" <rekado <at> elephly.net>,
 "andreas <at> enge.fr" <andreas <at> enge.fr>
Subject: [PATCH] gnu: texlive-scripts: add mktexfmt
Date: Sun, 16 Jun 2024 19:08:37 +0000
[Message part 3 (text/plain, inline)]
* gnu/packages/tex.scm (texlive-scripts): add mktexfmt

Hello. I have noticed while using a modular TeX Live installation that the texlive-scripts package
lacks mktexfmt, which is necessary for creating TeX fmts. TeX Live places mktexfmt in a
separate folder from the remainder of the scripts in this package, but mktexfmt is simply
a symlink to fmtutil, which is included in this Guix package. As such, this patch adds a phase to
the build system to create this symlink after fmtutil has been installed. An alternative solution would
be to add the mktexfmt file in the upstream TeX Live repository as a source location, but since that
file is still only a symlink to fmtutil, I believe it is easier to create the symlink ourselves as the package
is built. I apologize if there are any errors as this is my first patch.

Best,
Spencer
---
gnu/packages/tex.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 828bcde0e2..5df60193d8 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -383,7 +383,12 @@ (define-public texlive-scripts
(apply (assoc-ref tex:%standard-phases 'link-scripts)
(list #:outputs outputs
#:link-scripts
- (find-files "scripts")))))))))
+ (find-files "scripts"))))))
+ (add-after 'link-scripts 'link-mktexfmt
+ (lambda _
+ (let ((fmtutil (string-append #$output "/bin/fmtutil")))
+ (symlink fmtutil
+ (string-append #$output "/bin/mktexfmt" ))))))))
(inputs (list perl))
(home-page "https://www.tug.org/texlive/")
(synopsis "TeX Live infrastructure programs")
--
2.45.1
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: spencerpeters via Guix-patches via <guix-patches <at> gnu.org>
Cc: "rekado <at> elephly.net" <rekado <at> elephly.net>, 71602-done <at> debbugs.gnu.org,
 "andreas <at> enge.fr" <andreas <at> enge.fr>,
 spencerpeters <spencerpeters <at> protonmail.com>
Subject: Re: [bug#71602] [PATCH] gnu: texlive-scripts: add mktexfmt
Date: Mon, 17 Jun 2024 09:18:59 +0200
Hello,

spencerpeters via Guix-patches via <guix-patches <at> gnu.org> writes:

> * gnu/packages/tex.scm (texlive-scripts): add mktexfmt

Good catch.

> Hello. I have noticed while using a modular TeX Live installation that the texlive-scripts package
> lacks mktexfmt, which is necessary for creating TeX fmts.

Actually, it is not strictly necessary. Guix uses "fmtutil-sys" to
generate such fmts.  But you're right, the script should be installed anyway.

> #:link-scripts
> - (find-files "scripts")))))))))
> + (find-files "scripts"))))))
> + (add-after 'link-scripts 'link-mktexfmt
> + (lambda _
> + (let ((fmtutil (string-append #$output "/bin/fmtutil")))
> + (symlink fmtutil
> + (string-append #$output "/bin/mktexfmt" ))))))))

I integrated this in the `link-scripts' phase, and pushed to "tex-team"
branch. "mktexfmt" should be available once this branch is merged.

Regards,
-- 
Nicolas Goaziou




This bug report was last modified 1 year and 21 days ago.

Previous Next


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