From: Arun Isaac <arunisaac@systemreboot.net>
To: 31850@debbugs.gnu.org
Subject: [bug#31850] [PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable "gs".
Date: Sat, 16 Jun 2018 00:56:22 +0530 [thread overview]
Message-ID: <20180615192622.6416-1-arunisaac@systemreboot.net> (raw)
* 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
next reply other threads:[~2018-06-15 19:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 19:26 Arun Isaac [this message]
[not found] ` <handler.31850.B.15290908242382.ack@debbugs.gnu.org>
2018-06-15 19:56 ` [bug#31850] Acknowledgement ([PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable "gs".) Arun Isaac
2018-06-16 16:13 ` [bug#31850] [PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable "gs" Ludovic Courtès
2018-06-16 20:46 ` Ricardo Wurmus
2018-06-17 7:06 ` Arun Isaac
2018-06-17 11:44 ` Ricardo Wurmus
2018-06-17 16:01 ` bug#31850: " Arun Isaac
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=20180615192622.6416-1-arunisaac@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=31850@debbugs.gnu.org \
/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.