[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
57/75: packages: Fix repacked file name extension when zstd is unavailab
|
From: |
guix-commits |
|
Subject: |
57/75: packages: Fix repacked file name extension when zstd is unavailable. |
|
Date: |
Sun, 21 Jan 2024 13:21:49 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit a4c0315a2ea131c95fdb60e3a8993f114f0abd26
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Jan 20 22:50:19 2024 -0500
packages: Fix repacked file name extension when zstd is unavailable.
This is a follow-up commit to a869f4bef3 ("packages: Repack patched source
archives via zstd by default.").
* guix/packages.scm (patch-and-repack): Do not have xz fallback into the
zstd
variable, which is confusing and caused the extension selection to be wrong
when the xz fallback was used. Refine how PATH is set to avoid duplicates.
Change-Id: I580deba4de822eccf5f6fe53355b8ba57178c166
---
guix/packages.scm | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/guix/packages.scm b/guix/packages.scm
index ce1ba7c53a..64d1bc6158 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -949,10 +949,7 @@ specifies modules in scope when evaluating SNIPPET."
(bzip2 (lookup-input "bzip2"))
(lzip (lookup-input "lzip"))
(xz (lookup-input "xz"))
- (zstd (or (lookup-input "zstd")
- ;; Fallback to xz in case zstd is not available, such as
- ;; for bootstrap packages.
- xz))
+ (zstd (lookup-input "zstd"))
(patch (lookup-input "patch"))
(comp (and=> (compressor source-file-name) lookup-input))
(patches (map instantiate-patch patches)))
@@ -1033,10 +1030,13 @@ specifies modules in scope when evaluating SNIPPET."
locale (system-error-errno args)))))
(setenv "PATH"
- (string-append #+zstd "/bin"
- (if #+comp
- (string-append ":" #+comp "/bin")
- "")))
+ (string-join
+ (map (cut string-append <> "/bin")
+ ;; Fallback to xz in case zstd is not
+ ;; available, such as for bootstrap packages.
+ (delete-duplicates
+ (filter-map identity (list #+zstd #+xz #+comp))))
+ ":"))
(setenv "ZSTD_NBTHREADS" (number->string (parallel-job-count)))
- 66/75: gnu: qpdf: Update to 11.8.0., (continued)
- 66/75: gnu: qpdf: Update to 11.8.0., guix-commits, 2024/01/21
- 51/75: gnu: findutils-boot0: Re-enable most tests., guix-commits, 2024/01/21
- 17/75: gnu: font-canada1500: Install license file., guix-commits, 2024/01/21
- 36/75: gnu: libxcomposite: Update to 0.4.6., guix-commits, 2024/01/21
- 38/75: gnu: transset: Update to 1.0.3., guix-commits, 2024/01/21
- 42/75: gnu: bluez: enable wiimote plugin., guix-commits, 2024/01/21
- 44/75: gnu: man-pages-posix: Remove redundant manpage compression., guix-commits, 2024/01/21
- 46/75: build-system/go: Honor #:parallel-build?., guix-commits, 2024/01/21
- 48/75: import: crate: Emit new-style package inputs., guix-commits, 2024/01/21
- 54/75: gnu: bluez: Update to 5.72., guix-commits, 2024/01/21
- 57/75: packages: Fix repacked file name extension when zstd is unavailable.,
guix-commits <=
- 63/75: gnu: libgpg-error: Update to 1.47., guix-commits, 2024/01/21
- 64/75: gnu: libice: Update to 1.1.1., guix-commits, 2024/01/21
- 68/75: gnu: openjdk9: Make build reproducible., guix-commits, 2024/01/21
- 69/75: gnu: openjdk10: Make more reproducible., guix-commits, 2024/01/21
- 70/75: gnu: openjdk11: Make more reproducible., guix-commits, 2024/01/21
- 75/75: packages: Silence tar's support for --sort check output., guix-commits, 2024/01/21
- 39/75: gnu: xprop: Update to 1.2.6., guix-commits, 2024/01/21
- 49/75: import: go: Emit new-style package inputs., guix-commits, 2024/01/21
- 50/75: gnu: rust: Add profiling support., guix-commits, 2024/01/21
- 52/75: gnu: openjdk11: Update home page., guix-commits, 2024/01/21