From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dA9As-0008PH-2A for guix-patches@gnu.org; Mon, 15 May 2017 02:08:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dA9An-0006kZ-TY for guix-patches@gnu.org; Mon, 15 May 2017 02:08:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:42711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dA9An-0006kO-Pp for guix-patches@gnu.org; Mon, 15 May 2017 02:08:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dA9An-0002JW-LK for guix-patches@gnu.org; Mon, 15 May 2017 02:08:01 -0400 Subject: bug#26730: [PATCH] gnu: bzip2: Patch bzip2 utilities. References: In-Reply-To: Resent-Message-ID: From: Christopher Baines Date: Mon, 15 May 2017 07:07:06 +0100 Message-Id: <20170515060706.1758-1-mail@cbaines.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: 26730@debbugs.gnu.org * gnu/packages/compression.scm (bzip2)[arguments]: Add patch-script phase to remove absolute reference to /bin/rm. --- gnu/packages/compression.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 7d3a62e2f..829fd5053 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -252,7 +252,12 @@ file; as a result, it is often used in conjunction with \"tar\", resulting in base libdir) (copy-file file (string-append libdir "/" base)))) - (find-files "." "^libbz2\\.so")))))) + (find-files "." "^libbz2\\.so"))))) + (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")))))) #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) -- 2.13.0