all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: spencerpeters via Guix-patches via <guix-patches@gnu.org>
To: 71602@debbugs.gnu.org
Cc: "rekado@elephly.net" <rekado@elephly.net>,
	"andreas@enge.fr" <andreas@enge.fr>
Subject: [bug#71602] [PATCH] gnu: texlive-scripts: add mktexfmt
Date: Sun, 16 Jun 2024 19:08:37 +0000	[thread overview]
Message-ID: <CM8ctR0aIM2Hsd4u2h3ySzVLXZMdKdWGJP2dmR_jM_ZEvneWa_rPETFk5idr-dF1B6DsgzMGCK-i5okcq95lqPJ6G5PGAcGT69cZCRHbRyQ=@protonmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]

* 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

[-- Attachment #2: Type: text/html, Size: 4686 bytes --]

             reply	other threads:[~2024-06-17  1:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-16 19:08 spencerpeters via Guix-patches via [this message]
2024-06-17  7:18 ` bug#71602: [PATCH] gnu: texlive-scripts: add mktexfmt Nicolas Goaziou via Guix-patches via
2024-06-30 11:34 ` [bug#71602] " Jorge Acereda
2024-06-30 14:32   ` Nicolas Goaziou via Guix-patches via
2024-06-30 16:47     ` Jorge Acereda
2024-06-30 17:10       ` Nicolas Goaziou via Guix-patches via
2024-06-30 17:49         ` Jorge Acereda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CM8ctR0aIM2Hsd4u2h3ySzVLXZMdKdWGJP2dmR_jM_ZEvneWa_rPETFk5idr-dF1B6DsgzMGCK-i5okcq95lqPJ6G5PGAcGT69cZCRHbRyQ=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=71602@debbugs.gnu.org \
    --cc=andreas@enge.fr \
    --cc=rekado@elephly.net \
    --cc=spencerpeters@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.