GNU bug report logs -
#74872
bugfix: update symlinks
Previous Next
Reported by: ngraves <at> ngraves.fr
Date: Sat, 14 Dec 2024 16:51:02 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#74872: bugfix: update symlinks
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 74872 <at> debbugs.gnu.org.
--
74872: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74872
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
ngraves <at> ngraves.fr skribis:
> For some reason, rename-file fails when the target and destination are
> not in the same filesystem. However, we can't assume for the
> update-symlink script that all users will always have
> e.g. ~/.local/share/applications (managed by guix-home) and ~ on the
> same filesystem. My use-case is trying to implement home
> impermanence. The patch is attached.
>
> From fe07066b88556c3755db3fc29665ce93d23cc071 Mon Sep 17 00:00:00 2001
> From: Nicolas Graves <ngraves <at> ngraves.fr>
> Date: Sat, 14 Dec 2024 12:38:14 +0100
> Subject: [PATCH] gnu: home: Replace rename in update-symlinks scripts.
>
> * gnu/home/services/symlink-manager.scm (update-symlinks): Use
> copy-file and delete-file instead of rename-file to avoid an error
> when the target and backup are not in the same filesystem.
Applied, thanks!
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
For some reason, rename-file fails when the target and destination are
not in the same filesystem. However, we can't assume for the
update-symlink script that all users will always have e.g.
~/.local/share/applications (managed by guix-home) and ~ on the same
filesystem. My use-case is trying to implement home impermanence. The
patch is attached.
[0001-gnu-home-Replace-rename-in-update-symlinks-scripts.patch (text/x-diff, attachment)]
This bug report was last modified 144 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.