[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/31: gnu: diffoscope: Don't embed build-time references.
From: |
guix-commits |
Subject: |
13/31: gnu: diffoscope: Don't embed build-time references. |
Date: |
Mon, 17 Jul 2023 11:37:21 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit ba9fdaa81439004889f944f6ccef794abd33c907
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Jul 9 02:00:01 2023 +0200
gnu: diffoscope: Don't embed build-time references.
* gnu/packages/diffoscope.scm (diffoscope)[arguments]:
Avoid using WHICH in the 'embed-tool-references phase.
---
gnu/packages/diffoscope.scm | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm
index 61bd23f3e2..5846c4cbd4 100644
--- a/gnu/packages/diffoscope.scm
+++ b/gnu/packages/diffoscope.scm
@@ -97,20 +97,22 @@
(delete-file "tests/comparators/test_wasm.py")))
(add-after 'unpack 'embed-tool-references
(lambda* (#:key inputs #:allow-other-keys)
+ (define (bin command)
+ (search-input-file inputs (string-append "bin/" command)))
(substitute* "diffoscope/comparators/utils/compare.py"
- (("\\[\"xxd\",")
- (string-append "[\"" (which "xxd") "\",")))
+ (("\\[\"(xxd)\"," _ command)
+ (string-append "[\"" (bin command) "\",")))
(substitute* "diffoscope/diff.py"
(("@tool_required\\(\"diff\"\\)") "")
- (("get_tool_name\\(\"diff\"\\)")
- (string-append "get_tool_name(\"" (which "diff") "\")")))
+ (("get_tool_name\\(\"(diff)\"\\)" _ command)
+ (string-append "get_tool_name(\"" (bin command) "\")")))
(substitute* "diffoscope/comparators/directory.py"
(("@tool_required\\(\"stat\"\\)") "")
(("@tool_required\\(\"getfacl\"\\)") "")
- (("\\[\"stat\",")
- (string-append "[\"" (which "stat") "\","))
- (("\\[\"getfacl\",")
- (string-append "[\"" (which "getfacl") "\",")))))
+ (("\\[\"(stat)\"," _ command)
+ (string-append "[\"" (bin command) "\","))
+ (("\\[\"(getfacl)\"," _ command)
+ (string-append "[\"" (bin command) "\",")))))
(add-after 'build 'build-man-page
(lambda _
(invoke "make" "-C" "doc")))
- 10/31: gnu: sdcv: Update to 0.5.5., (continued)
- 10/31: gnu: sdcv: Update to 0.5.5., guix-commits, 2023/07/17
- 11/31: gnu: diffoscope: Update to 244., guix-commits, 2023/07/17
- 12/31: gnu: diffoscope: Use G-expressions., guix-commits, 2023/07/17
- 26/31: gnu: stress: Update to 1.0.7., guix-commits, 2023/07/17
- 27/31: gnu: jc: Update to 1.23.3., guix-commits, 2023/07/17
- 05/31: gnu: vdirsyncer: Update to 0.19.2., guix-commits, 2023/07/17
- 17/31: gnu: libisofs: Update to 1.5.6.pl01., guix-commits, 2023/07/17
- 31/31: gnu: thermald: Update to 2.5.3., guix-commits, 2023/07/17
- 19/31: gnu: zutils: Use G-expressions., guix-commits, 2023/07/17
- 02/31: gnu: trurl: Improve description., guix-commits, 2023/07/17
- 13/31: gnu: diffoscope: Don't embed build-time references.,
guix-commits <=
- 21/31: gnu: hplip: Update to 3.23.5., guix-commits, 2023/07/17
- 20/31: gnu: xarchiver: Update to 0.5.4.21., guix-commits, 2023/07/17
- 23/31: gnu: zchunk: Update to 1.3.1., guix-commits, 2023/07/17
- 25/31: gnu: zchunk: Remove input labels., guix-commits, 2023/07/17
- 28/31: gnu: inxi-minimal: Update to 3.3.28-1., guix-commits, 2023/07/17
- 30/31: gnu: sudo: Update to 1.9.14p1., guix-commits, 2023/07/17
- 29/31: gnu: s-tui: Update to 1.1.4., guix-commits, 2023/07/17