guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: gzip: Use absolute name for gzip in gunzip.


From: Ricardo Wurmus
Subject: 03/03: gnu: gzip: Use absolute name for gzip in gunzip.
Date: Sun, 3 Sep 2017 04:09:03 -0400 (EDT)

rekado pushed a commit to branch core-updates
in repository guix.

commit 48623f5be854e923b04ae83a1a882ff1cefdc742
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Aug 31 19:15:21 2017 +0200

    gnu: gzip: Use absolute name for gzip in gunzip.
    
    * gnu/packages/compression.scm (gzip)[arguments]: Add build phase
    "use-absolute-name-of-gzip".
    
    Fixes <https://bugs.gnu.org/28158>.
---
 gnu/packages/compression.scm | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 4e316e0..cd9ed7c 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -4,7 +4,7 @@
 ;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <address@hidden>
 ;;; Copyright © 2015, 2016 Eric Bavier <address@hidden>
-;;; Copyright © 2015, 2016 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <address@hidden>
 ;;; Copyright © 2015, 2017 Leo Famulari <address@hidden>
 ;;; Copyright © 2015 Jeff Mickey <address@hidden>
 ;;; Copyright © 2015, 2016, 2017 Efraim Flashner <address@hidden>
@@ -202,7 +202,16 @@ adding and extracting files to/from a tar archive.")
    (synopsis "General file (de)compression (using lzw)")
    (arguments
     ;; FIXME: The test suite wants `less', and optionally Perl.
-    '(#:tests? #f))
+    '(#:tests? #f
+      #:phases
+      (modify-phases %standard-phases
+        (add-after 'unpack 'use-absolute-name-of-gzip
+          (lambda* (#:key outputs #:allow-other-keys)
+            (substitute* "gunzip.in"
+              (("exec gzip")
+               (string-append "exec " (assoc-ref outputs "out")
+                              "/bin/gzip")))
+            #t)))))
    (description
     "GNU Gzip provides data compression and decompression utilities; the
 typical extension is \".gz\".  Unlike the \"zip\" format, it compresses a 
single



reply via email to

[Prev in Thread] Current Thread [Next in Thread]