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>
master
Christopher Baines 2017-05-16 21:36:33 +01:00 committed by Marius Bakke
parent 03bc86b8f4
commit e7ee50f2d2
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 6 additions and 0 deletions

View File

@ -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="