From: Arun Isaac <arunisaac@systemreboot.net>
To: 55941@debbugs.gnu.org, Maxime Devos <maximedevos@telenet.be>
Cc: Arun Isaac <arunisaac@systemreboot.net>
Subject: [bug#55941] [PATCH core-updates 3/3] services: pcscd: Use switch-symlinks from (guix build utils).
Date: Mon, 13 Jun 2022 17:45:23 +0530 [thread overview]
Message-ID: <20220613121523.20327-3-arunisaac@systemreboot.net> (raw)
In-Reply-To: <20220613121523.20327-1-arunisaac@systemreboot.net>
switch-symlinks has been moved to (guix build utils). We need not duplicate it
anymore.
* gnu/services/security-token.scm (pcscd-activation): Use switch-symlinks
from (guix build utils).
---
gnu/services/security-token.scm | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/gnu/services/security-token.scm b/gnu/services/security-token.scm
index 52afad84a6..2356273398 100644
--- a/gnu/services/security-token.scm
+++ b/gnu/services/security-token.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2018, 2022 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;;
@@ -74,12 +74,7 @@ (define pcscd-activation
'((guix build utils)))
#~(begin
(use-modules (guix build utils))
- ;; XXX: We can't use (guix utils) because it requires a
- ;; dynamically-linked Guile, hence the duplicate switch-symlinks.
- (define (switch-symlinks link target)
- (let ((pivot (string-append link ".new")))
- (symlink target pivot)
- (rename-file pivot link)))
+
(mkdir-p "/var/lib")
(switch-symlinks "/var/lib/pcsc"
#$(directory-union
--
2.36.1
next prev parent reply other threads:[~2022-06-13 12:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-13 12:13 [bug#55941] [PATCH core-updates 0/3] Move switch-symlinks to (guix build utils) Arun Isaac
2022-06-13 12:15 ` [bug#55941] [PATCH core-updates 1/3] utils: " Arun Isaac
2022-06-13 12:15 ` [bug#55941] [PATCH core-updates 2/3] utils: Make switch-symlinks robust against interruption Arun Isaac
2022-06-13 12:15 ` Arun Isaac [this message]
2022-06-23 20:46 ` [bug#55941] [PATCH core-updates 0/3] Move switch-symlinks to (guix build utils) Ludovic Courtès
2022-06-24 20:30 ` bug#55941: " Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220613121523.20327-3-arunisaac@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=55941@debbugs.gnu.org \
--cc=maximedevos@telenet.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).