[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/12: profiles: 'manifest->gexp' emits 'properties' field only when nee
From: |
guix-commits |
Subject: |
01/12: profiles: 'manifest->gexp' emits 'properties' field only when needed. |
Date: |
Tue, 24 May 2022 11:21:50 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 93f601d97ca2d9b82c41afeb86879ee37eae39e6
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon May 23 22:06:12 2022 +0200
profiles: 'manifest->gexp' emits 'properties' field only when needed.
Partly fixes <https://issues.guix.gnu.org/55499>.
Reported by Ricardo Wurmus <rekado@elephly.net>.
For a profile built with:
guix install r-seurat r-cistopic r-monocle3 r-cicero-monocle3
this reduces the size of the 'manifest' file from 6.4M to 5.6M (12%).
* guix/profiles.scm (manifest->gexp)[entry->gexp]: When PROPERTIES is
empty, do not emit a 'properties' field.
---
guix/profiles.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/guix/profiles.scm b/guix/profiles.scm
index 3a547de492..bf50c00a1e 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -462,7 +462,9 @@ denoting a specific output of a package."
(propagated-inputs #$(map entry->gexp deps))
(search-paths #$(map search-path-specification->sexp
search-paths))
- (properties . #$properties)))
+ #$@(if (null? properties)
+ #~()
+ #~((properties . #$properties)))))
(($ <manifest-entry> name version output package
(deps ...) (search-paths ...) _ (properties ...))
#~(#$name #$version #$output
@@ -470,7 +472,9 @@ denoting a specific output of a package."
(propagated-inputs #$(map entry->gexp deps))
(search-paths #$(map search-path-specification->sexp
search-paths))
- (properties . #$properties)))))
+ #$@(if (null? properties)
+ #~()
+ #~((properties . #$properties)))))))
(match manifest
(($ <manifest> (entries ...))
- branch master updated (adf5ae5a41 -> 01793ed03e), guix-commits, 2022/05/24
- 02/12: gnu: gcc@11: Update 'compiler-cpu-architectures' property., guix-commits, 2022/05/24
- 04/12: gnu: gcc-toolchain: Add 12.1.0., guix-commits, 2022/05/24
- 11/12: gnu: dumb: Fix build., guix-commits, 2022/05/24
- 01/12: profiles: 'manifest->gexp' emits 'properties' field only when needed.,
guix-commits <=
- 10/12: gnu: Add python-preshed, guix-commits, 2022/05/24
- 03/12: gnu: gcc: Add 12.1.0., guix-commits, 2022/05/24
- 05/12: gnu: sssd: Update to 2.7.0., guix-commits, 2022/05/24
- 06/12: services: Add log rotation to most networking services., guix-commits, 2022/05/24
- 07/12: gnu: python-tldr: Update to 3.1.0., guix-commits, 2022/05/24
- 08/12: gnu: python-tldr: Use g-exp., guix-commits, 2022/05/24
- 09/12: gnu: Add python-cymem, guix-commits, 2022/05/24
- 12/12: gnu: cpuid: Update to 20220224., guix-commits, 2022/05/24