[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/10: services: pipefs: Correctly handle lack of extensions.
From: |
guix-commits |
Subject: |
01/10: services: pipefs: Correctly handle lack of extensions. |
Date: |
Tue, 3 May 2022 12:03:31 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 7855a9366b2f5248d8fffab93c108abef8146f40
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon May 2 23:24:46 2022 +0200
services: pipefs: Correctly handle lack of extensions.
Previously, in the absence of extensions of 'pipefs-service-type', we'd
get a wrong-type-arg exception while folding services:
In gnu/services/nfs.scm:
134:37 1 (_ #<<pipefs-configuration> mount-point: "/var/lib/nfs…> …)
In ice-9/boot-9.scm:
1685:16 0 (raise-exception _ #:continuable? _)
In procedure car: Wrong type argument in position 1 (expecting pair): ()
* gnu/services/nfs.scm (pipefs-service-type)[extend]: Gracefully handle
the case where VALUES is the empty list, as done in 'gss-service-type'.
---
gnu/services/nfs.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/services/nfs.scm b/gnu/services/nfs.scm
index 9b795c9e71..209cde24b3 100644
--- a/gnu/services/nfs.scm
+++ b/gnu/services/nfs.scm
@@ -131,7 +131,10 @@ use this facility."))))
;; configure and start this service. Only one value can be provided. We
;; override it with the value returned by the extending service.
(compose identity)
- (extend (lambda (config values) (first values)))
+ (extend (lambda (config values)
+ (match values
+ ((first . rest) first)
+ (_ config))))
(default-value (pipefs-configuration))
(description "Mount the pipefs file system, which is used to transfer
NFS-related data between the kernel and user-space programs."))))
- branch master updated (654f878f0b -> 8b2d266607), guix-commits, 2022/05/03
- 02/10: gnu: petsc-openmpi: Fix header inclusions., guix-commits, 2022/05/03
- 03/10: gnu: sundials: Fix various issues., guix-commits, 2022/05/03
- 08/10: gnu: dealii-openmpi: Remove input labels., guix-commits, 2022/05/03
- 05/10: gnu: sundials: Update to 6.2.0., guix-commits, 2022/05/03
- 06/10: gnu: sundials: Add 5.8.0., guix-commits, 2022/05/03
- 04/10: gnu: sundials-openmpi: Add HYPRE dependency., guix-commits, 2022/05/03
- 09/10: gnu: dealii: Add SUNDIALS dependency., guix-commits, 2022/05/03
- 07/10: gnu: dealii: Remove trailing booleans., guix-commits, 2022/05/03
- 10/10: gnu: dealii: Update to 9.3.3., guix-commits, 2022/05/03
- 01/10: services: pipefs: Correctly handle lack of extensions.,
guix-commits <=