(address . bug-guix@gnu.org)(name . Guillaume Le Vaillant)(address . glv@posteo.net)
Since staging was merged a few days ago, I've noticed an undesirable
side-effect of our revamped asdf-build-system: the systems packages have
priority over the user-local ones.
Here is the default list of registries:
Toggle snippet (11 lines)
(defparameter* *default-source-registries*
'(environment-source-registry
user-source-registry
user-source-registry-directory
default-user-source-registry
system-source-registry
system-source-registry-directory
default-system-source-registry)
"List of default source registries" "3.1.0.102")
`user-source-registry' points to what is read in
~/.config/common-lisp/source-registry.conf(.d/)?, so nothing by default.
user-source-registry-directory reads what's in XDG_CONFIG_DIRS, and it
finds the Guix packages there.
The default-user-source-registry expands to
Toggle snippet (8 lines)
(:SOURCE-REGISTRY (:TREE (:HOME "common-lisp/"))
(:DIRECTORY (:HOME ".sbcl/systems/"))
(:DIRECTORY
#P"/home/ambrevar/.local/share/common-lisp/systems/")
(:TREE #P"/home/ambrevar/.local/share/common-lisp/source/")
:INHERIT-CONFIGURATION)
which is where I would drop my user-local packages.
Finally, default-system-source-registry reads what's in XDG_DATA_DIRS,
and it finds the packages there again, but it does not read the
Guix-generated conf which collects the dependencies of each package.
I believe the issue is that `user-source-registry-directory' should read
from XDG_CONFIG_HOME, and not XDG_CONFIG_DIRS (which would make it
redundant with `user-source-registry'). This would make it an upstream
issue, but I wanted to double-check I properly understood the problem
with the Guix community first.
Guillaume, thoughts on this?
--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----
iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl/IswUSHG1haWxAYW1i
cmV2YXIueHl6AAoJEJvc9Jeku8x/7QMH/Riz1Rp5GpGK6HxMVyTM9kaYgyYj3UFi
3htXx5JFQkDh12RwrnxsjyYiEYxT94buB2kELabB67Q67iS1ODqk/oj50gU64jBl
g76xKEO+RJy6sAC+4rzQqKnmekEPkRXvvExG8XtGiEbmSHpNKXRtHOePtVHdSi/5
YRzBugwGnGrrwd7Zb24AJ6pFeYTC2DOeJ90wswRprQLMNzNLbrzGGPIcKzAj/hk/
rgBnflLUZkE34P/z7MHPRrKsnBU2HAEkLoll+wL1Z8ZkZV5G3GL93Nu4JJNG6tZx
hIFscmVlNdardHJsn2f3xo4eJrVErfGShd66MrxAfYBGZIUR5VMNshs=
=t3jU
-----END PGP SIGNATURE-----