help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guix home reconfigure fails with "In procedure symlink: permission d


From: Tanguy LE CARROUR
Subject: Re: Guix home reconfigure fails with "In procedure symlink: permission denied"
Date: Wed, 12 Jun 2024 08:25:51 +0200
User-agent: alot/0.10

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 via email to

[Prev in Thread] Current Thread [Next in Thread]