GNU bug report logs - #31850
[PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable "gs".

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Fri, 15 Jun 2018 19:28:02 UTC

Severity: normal

Tags: patch

Done: Arun Isaac <arunisaac <at> systemreboot.net>

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: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: bug#31850: closed (Re: [bug#31850] [PATCH] gnu: texlive-bin: Use
 absolute path to ghostscript executable "gs".)
Date: Sun, 17 Jun 2018 16:02:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#31850: [PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable "gs".

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 31850 <at> debbugs.gnu.org.

-- 
31850: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31850
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
Cc: 31850-done <at> debbugs.gnu.org, Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: [bug#31850] [PATCH] gnu: texlive-bin: Use absolute path to
 ghostscript executable "gs".
Date: Sun, 17 Jun 2018 21:31:17 +0530
>> But, we'd be forcing people to download the huge (~ 2.2 GB)
>> texlive-texmf source tarball. And, the texlive package which depends on
>> texlive-bin spends a good deal of time in the install phase. Is this
>> fine?
>
> Only until this is built, which in the case of texlive should not take a
> very long time on the build farm.

Ok, done. Pushed!

[Message part 3 (message/rfc822, inline)]
From: Arun Isaac <arunisaac <at> systemreboot.net>
To: guix-patches <at> gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable
 "gs".
Date: Sat, 16 Jun 2018 00:56:22 +0530
* gnu/packages/tex.scm (texlive-bin)[arguments]: Rename fix-unix-detection
phase to configure-ghostscript-executable. Replace "gs" in epstopdf.pl with
the absolute path to "gs" in the store.
---
 gnu/packages/tex.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index b6bc9dda6..91081c64b 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -176,14 +176,16 @@
                            (string-prefix? "mips64" s))))
       #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'fix-unix-detection
+         (add-after 'unpack 'configure-ghostscript-executable
            ;; ps2eps.pl uses the "gswin32c" ghostscript executable on Windows,
            ;; and the "gs" ghostscript executable on Unix. It detects Unix by
            ;; checking for the existence of the /usr/bin directory. Since
            ;; GuixSD does not have /usr/bin, it is also detected as Windows.
-           (lambda _
+           (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "utils/ps2eps/ps2eps-src/bin/ps2eps.pl"
                (("gswin32c") "gs"))
+             (substitute* "texk/texlive/linked_scripts/epstopdf/epstopdf.pl"
+               (("\"gs\"") (string-append "\"" (assoc-ref inputs "ghostscript") "/bin/gs\"")))
              #t))
          (add-after 'install 'postint
            (lambda* (#:key inputs outputs #:allow-other-keys #:rest args)
-- 
2.15.1




This bug report was last modified 7 years and 31 days ago.

Previous Next


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