aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2017-05-16 21:36:33 +0100
committerMarius Bakke <mbakke@fastmail.com>2017-05-17 16:57:05 +0200
commite7ee50f2d26355d7a2fee250cf19a943f0343853 (patch)
tree63bba00e4ce499a3b213326ac7017d122c47a6af
parent03bc86b8f46305d3c7c1dba26dddfd8d424c9693 (diff)
downloadguix-e7ee50f2d26355d7a2fee250cf19a943f0343853.tar
guix-e7ee50f2d26355d7a2fee250cf19a943f0343853.tar.gz
gnu: bzip2: Patch bzip2 utilities.
* gnu/packages/compression.scm (bzip2)[arguments]: Add patch-script phase to remove absolute reference to /bin/rm. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
-rw-r--r--gnu/packages/compression.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index a043585301..4908c9cccf 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -254,6 +254,12 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in
(copy-file file
(string-append libdir "/" base))))
(find-files "." "^libbz2\\.so")))
+ #t))
+ (add-after 'install-shared-lib 'patch-scripts
+ (lambda* (#:key outputs inputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (substitute* (string-append out "/bin/bzdiff")
+ (("/bin/rm") "rm")))
#t)))
#:make-flags (list (string-append "PREFIX="