Subject: bug#72869: closed (Re: [bug#72869] [PATCH] gnu: texlive-digestif: Fix build.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 30 Aug 2024 08:50:02 +0000

Your bug report

#72869: [PATCH] gnu: texlive-digestif: Fix build.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
72869: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72869
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#72869] [PATCH] gnu: texlive-digestif: Fix build.
From: Ludovic Courtès <[email-masked]>
To: Ada Stevenson <[email-masked]>
Cc: Andreas Enge <[email-masked]>, Nicolas Goaziou <[email-masked]>, [email-masked]
Date: Fri, 30 Aug 2024 10:46:35 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Ada,

Ada Stevenson <[email-masked]> skribis:

> * gnu/packages/tex.scm (texlive-digestif):
> [arguments]: <#:phases>: Add 'fix-data-path phase.
> This hardcodes the path for 'digestif.zip', which was not being found
> previously.
>
> Change-Id: I2884185d0daa8919dd72e8b9055eb3988eb40f5d

Applied on ‘core-updates’ (to be merged real soon) after splitting the
long line.

Thanks!

Ludo’.

Subject: [PATCH] gnu: texlive-digestif: Fix build.
From: Ada Stevenson <[email-masked]>
To: [email-masked]
Cc: Ada Stevenson <[email-masked]>
Date: Thu, 29 Aug 2024 16:26:53 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/tex.scm (texlive-digestif):
[arguments]: <#:phases>: Add 'fix-data-path phase.
This hardcodes the path for 'digestif.zip', which was not being found
previously.

Change-Id: I2884185d0daa8919dd72e8b9055eb3988eb40f5d
---
 gnu/packages/tex.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 828bcde0e2..b94d1dd67e 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -33786,7 +33786,14 @@ (define-public texlive-digestif
               "1s7nmbjxpa6klmh0cc6g4s6vd9wmlv4dxp51xb4b872hrj510zbi")))
     (outputs '("out" "doc"))
     (build-system texlive-build-system)
-    (arguments (list #:link-scripts #~(list "digestif.texlua")))
+    (arguments (list #:link-scripts #~(list "digestif.texlua")
+                     #:phases
+                     #~(modify-phases %standard-phases
+                         (add-after 'unpack 'fix-data-path
+                           (lambda _
+                             (substitute* "scripts/digestif/digestif.texlua"
+                               (("(local archive = )(.*)$" all beginning end)
+                                (string-append beginning "\"" #$output "/share/texmf-dist/scripts/digestif/digestif.zip\"" "\n"))))))))
     (home-page "https://ctan.org/pkg/digestif")
     (synopsis "Editor plugin for LaTeX, ConTeXt etc.")
     (description

base-commit: 53f1d10f089dd1bf155a95d0ba166728498972bb
-- 
2.45.2