From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuOD-0006te-Vm for guix-patches@gnu.org; Fri, 15 Jun 2018 15:28:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuOA-0000qi-Qr for guix-patches@gnu.org; Fri, 15 Jun 2018 15:28:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42772) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTuOA-0000qY-Mt for guix-patches@gnu.org; Fri, 15 Jun 2018 15:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fTuOA-0000dg-Gs for guix-patches@gnu.org; Fri, 15 Jun 2018 15:28:02 -0400 Subject: [bug#31850] [PATCH] gnu: texlive-bin: Use absolute path to ghostscript executable "gs". Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuN4-0006bH-Hu for guix-patches@gnu.org; Fri, 15 Jun 2018 15:26:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuN0-0000Fa-Ij for guix-patches@gnu.org; Fri, 15 Jun 2018 15:26:54 -0400 Received: from [2001:19f0:5:274f:351:616f:fec3:2694] (port=33460 helo=vultr.systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fTuN0-0000BT-0Y for guix-patches@gnu.org; Fri, 15 Jun 2018 15:26:50 -0400 From: Arun Isaac Date: Sat, 16 Jun 2018 00:56:22 +0530 Message-Id: <20180615192622.6416-1-arunisaac@systemreboot.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31850@debbugs.gnu.org * 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