From patchwork Sun Jun 16 19:08:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: spencerpeters X-Patchwork-Id: 65409 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5E2AD27BBE2; Mon, 17 Jun 2024 02:09:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 72BC127BBE9 for ; Mon, 17 Jun 2024 02:09:43 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJ0s5-00058B-Lw; Sun, 16 Jun 2024 21:09:21 -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 1sIzAG-00033B-NI for guix-patches@gnu.org; Sun, 16 Jun 2024 19:20:01 -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 1sIzAG-0007WH-FC for guix-patches@gnu.org; Sun, 16 Jun 2024 19:20:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sIzAH-0004jv-U6 for guix-patches@gnu.org; Sun, 16 Jun 2024 19:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71602] [PATCH] gnu: texlive-scripts: add mktexfmt Resent-From: spencerpeters Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Jun 2024 23:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71602 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71602@debbugs.gnu.org Cc: "rekado@elephly.net" , "andreas@enge.fr" X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.171857994618142 (code B ref -1); Sun, 16 Jun 2024 23:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jun 2024 23:19:06 +0000 Received: from localhost ([127.0.0.1]:56560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIz9M-0004iX-Uv for submit@debbugs.gnu.org; Sun, 16 Jun 2024 19:19:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:52100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIvFM-0002sI-0k for submit@debbugs.gnu.org; Sun, 16 Jun 2024 15:09:00 -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 1sIvFJ-0005V2-T4 for guix-patches@gnu.org; Sun, 16 Jun 2024 15:08:58 -0400 Received: from mail-40132.protonmail.ch ([185.70.40.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIvFG-00018k-PG for guix-patches@gnu.org; Sun, 16 Jun 2024 15:08:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1718564920; x=1718824120; bh=o5VMl//awHZOp9G5tgtDps27wa87t4Z0Jnow+viLAmg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=XB96DRTTBFOrdJLx+b6m7iRtA+oX1aacHKWzNLobsD0ii7BpDMh+5p1desm+FAfxl ql9gW+OZlhDxV7AWKCb7S0DOA6aNsY3nUsmgir7Qoi5u0BCvgOzZgIvEFql3hAnohf G13KfXAduU9k9Zf+6LudIhMUKtbzRuucqAjrJfKVEJL6dF0R0KhQv32U8qzaRIe0nJ TS4sq1VCWSPWb17LdiGt1fXFP53+NY9YnKsOTbZOfB7tCS48R/gna1T8EHxQFkhy+k EHOsztA1H7iqJNj982vH/INoo7BCNIT3KNl9IzNMwD9VW9mDaOgNPhgK5myolrofbx gI6D+fq5cyP7g== Date: Sun, 16 Jun 2024 19:08:37 +0000 Message-ID: Feedback-ID: 8784119:user:proton X-Pm-Message-ID: 1d0fe451ccd0c01df621b886f4df006e2159df6d MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.132; envelope-from=spencerpeters@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 16 Jun 2024 19:19:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 16 Jun 2024 21:09:19 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: spencerpeters X-ACL-Warn: , spencerpeters via Guix-patches X-Patchwork-Original-From: spencerpeters via Guix-patches via From: spencerpeters Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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(-) -- 2.45.1 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")