[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
375/416: services: mpd: Use proper records for user and group fields.
From: |
guix-commits |
Subject: |
375/416: services: mpd: Use proper records for user and group fields. |
Date: |
Fri, 14 Apr 2023 15:26:28 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 865df7f080c64960f349fff79088427889e6c492
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Sun Mar 26 19:41:32 2023 +0100
services: mpd: Use proper records for user and group fields.
Deprecate using strings for these fields and prefer user-account
(resp. user-group) instead to avoid duplication within account-service-type.
Fixes #61570 <https://issues.guix.gnu.org/61570>.
* gnu/services/audio.scm (%mpd-user, %mpd-group)
(mpd-serialize-user-account, mpd-serialize-user-group)
(mpd-user-sanitizer, mpd-group-sanitizer): New variables.
(mpd-configuration)[user]: Use user-account as value type.
Sanitize via mpd-user-sanitizer.
[group]: Use user-group as value type.
Sanitize via mpd-group-sanitizer.
(mpd-shepherd-service): Adjust accordingly.
(mpd-accounts): Likewise.
* doc/guix.texi (Audio Services)[Music Player Daemon]: Likewise.
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
---
gnu/services/audio.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/services/audio.scm b/gnu/services/audio.scm
index 9ad63328c6..690409b7a1 100644
--- a/gnu/services/audio.scm
+++ b/gnu/services/audio.scm
@@ -140,6 +140,14 @@
(define list-of-symbol?
(list-of symbol?))
+;; Helpers for deprecated field types, to be removed later.
+(define %lazy-group (make-symbol "%lazy-group"))
+
+(define (%set-user-group user group)
+ (user-account
+ (inherit user)
+ (group (user-group-name group))))
+
;;;
;;; MPD
- 312/416: gnu: rust-pyo3-0.15: Update to 0.15.2., (continued)
- 312/416: gnu: rust-pyo3-0.15: Update to 0.15.2., guix-commits, 2023/04/14
- 317/416: gnu: rust-core-foundation-sys-0.8: Update to 0.8.3., guix-commits, 2023/04/14
- 326/416: gnu: rust-cc-1: Update to 1.0.79., guix-commits, 2023/04/14
- 330/416: gnu: Add rust-prettyplease-0.1., guix-commits, 2023/04/14
- 334/416: gnu: rust-slab-0.4: Update to 0.4.8., guix-commits, 2023/04/14
- 339/416: gnu: rust-futures-io-0.3: Update to 0.3.26., guix-commits, 2023/04/14
- 343/416: gnu: rust-futures-util-0.3: Update to 0.3.26., guix-commits, 2023/04/14
- 346/416: gnu: libexif: Update to 0.6.24. [fixes CVE-2020-0198, CVE-2020-0452], guix-commits, 2023/04/14
- 356/416: gnu: python-service-identity: Update to 21.1.0., guix-commits, 2023/04/14
- 376/416: gnu: Add ruby-unicode-plot., guix-commits, 2023/04/14
- 375/416: services: mpd: Use proper records for user and group fields.,
guix-commits <=
- 374/416: services: mpd: Fix unintentional API breakage for mixer-type field., guix-commits, 2023/04/14
- 390/416: gnu: gerbil: Use G-expressions., guix-commits, 2023/04/14
- 386/416: gnu: Add sentencepiece., guix-commits, 2023/04/14
- 405/416: gnu: python-zopfli: Update to 0.2.2., guix-commits, 2023/04/14
- 398/416: gnu: python-pyftpdlib: Update to 1.5.7., guix-commits, 2023/04/14
- 396/416: gnu: heimdal: Enable OpenLDAP support., guix-commits, 2023/04/14
- 185/416: gnu: rust-ryu-1: Update to 1.0.12., guix-commits, 2023/04/14
- 193/416: gnu: Add rust-cargo-util-0.1., guix-commits, 2023/04/14
- 199/416: gnu: rust-jobserver-0.1: Update to 0.1.24., guix-commits, 2023/04/14
- 201/416: gnu: rust-tar-0.4: Update to 0.4.36., guix-commits, 2023/04/14