unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tanguy LE CARROUR <tanguy@bioneland.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Simon Tournier <zimon.toutoune@gmail.com>, help-guix@gnu.org
Subject: Re: Guix home reconfigure fails with "In procedure symlink: permission denied"
Date: Wed, 12 Jun 2024 08:25:51 +0200	[thread overview]
Message-ID: <171817355159.1113.16437394873653364873@bioneland.org> (raw)
In-Reply-To: <87zfrrlbzw.fsf@gnu.org>

Hi Ludo’,


Quoting Ludovic Courtès (2024-06-11 17:45:07)
> Tanguy LE CARROUR <tanguy@bioneland.org> skribis:
> 
> > Quoting Simon Tournier (2024-06-04 21:24:10)
> >> On Tue, 21 May 2024 at 11:38, Tanguy LE CARROUR <tanguy@bioneland.org> wrote:
> >> 
> >> >            2 (primitive-load "/gnu/store/fvly06ac6y0c01r8zavc2m1zfk6?")
> >> [...]
> >> >            0 (symlink "/gnu/store/676qwqy15al2zi7a5s4kb1lwjr6yxqpf-?" ?)
> >> [...]
> >> > # But files with longer names exist! Could the problem be the `?` caracter?
> >> > $ ls /gnu/store/fvly06ac6y0c01r8zavc2m1zfk6?*
> >> > /gnu/store/fvly06ac6y0c01r8zavc2m1zfk6pvhn9-files-builder
> >> >
> >> > $ ls /gnu/store/676qwqy15al2zi7a5s4kb1lwjr6yxqpf-?*
> >> > /gnu/store/676qwqy15al2zi7a5s4kb1lwjr6yxqpf-config
> >> > ```
> >> 
> >> Yeah, the character ’?’ is only to point that the string is cut.
> >> 
> >> The two files are:
> >> 
> >>     /gnu/store/fvly06ac6y0c01r8zavc2m1zfk6pvhn9-files-builder
> >>     /gnu/store/676qwqy15al2zi7a5s4kb1lwjr6yxqpf-config
> >> 
> >> 
> >> Now, why there is an issue with the symlink of these files is another
> >> story. :-)
> >
> > Whyyyyy! 😭
> > I tried reverting to an older version of my `home.scm`, without luck. 😞
> 
> It would be great if you could reduce your Home config to something
> small that reproduces the bug.  ‘guix home build home.scm’ is enough to
> reproduce this bug and it doesn’t have any side effect.
> 
> Most likely it has to do with what gets passed to
> ‘home-files-service-type’.

Thanks to Nils and Simon, I was able to solve the problem.
A file in `home-files-service-type` was in conflict with one of my `home-service`.
But it was not obvious from the error message.
I cannot really reproduce with a simple `home.scm`, for the following works as
expected:

```
$ cat home.scm
(use-modules (gnu home) (gnu home services) (guix gexp))

(home-environment
  (services
    (list
      (service home-xdg-configuration-files-service-type
        `(("fontconfig/fonts.conf" ,(local-file "fontconfig" #:recursive? #t)))))))

$ guix home build home.scm
guix home: error: duplicate '.config/fontconfig/fonts.conf' entry for files/
```

?! 🤔


Thanks anyway!


-- 
Tanguy


      reply	other threads:[~2024-06-12  6:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-21  9:38 Guix home reconfigure fails with "In procedure symlink: permission denied" Tanguy LE CARROUR
2024-06-04 19:24 ` Simon Tournier
2024-06-06  6:49   ` Tanguy LE CARROUR
2024-06-06  9:02     ` Nils Landt
2024-06-06 11:14       ` Tanguy LE CARROUR
2024-06-06 11:19         ` Nils Landt
2024-06-06 11:26           ` Tanguy LE CARROUR
2024-06-11 15:45     ` Ludovic Courtès
2024-06-12  6:25       ` Tanguy LE CARROUR [this message]

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=171817355159.1113.16437394873653364873@bioneland.org \
    --to=tanguy@bioneland.org \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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.
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).