-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Guile setup hook, use compiled files #88720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Something to investigate is why does everything in GUILE_LOAD_COMPILED_PATH there twice |
I marked this as stale due to inactivity. → More info |
Can you target staging and rebase the PR? |
Don't touch the install paths, but let Guile's setup hook do the right think[^1]. Also run `haunt --version` after installing to make sure we got this right. [^1]: Which it somewhat doesn't; see github:NixOS/nixpkgs#88720.
Often packages install the compiled files to `$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache` (e.g. see guile-opengl). This path is not explicitly given in the info page, but is used in a couple of places, and is also part of `%load-compiled-path` variable in guile (for `"${guile}/lib/guile/2.2/ccache`). Similarly, the site-ccache is also part of `%load-compiled-path` in guile.
1d96331
to
612ec25
Compare
I rebased this onto staging and fixed the commit message to be in line with our contribution guidelines. |
Thanks @andir (I didn't realise others could force-push to my branch, I presume because it's forked from NixOS/nixpkgs and it's a pull request). For what it's worth, the duplicate paths are a problem elsewhere so this pull request doesn't create any new problems. E.g.
I don't know why this is but I suspect it's because of dependency graph walking and shared dependencies. |
Sounds good enough for now. This is already an improvement. When we find a "better" way of doing that we can do it. |
Often packages install the compiled files to
$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
(e.g. seeguile-opengl). This path is not explicitly given in the info page, but
is used in a couple of places, and is also part of
%load-compiled-path
variable in guile (for
"${guile}/lib/guile/2.2/ccache
).Similarly, the site-ccache is also part of
%load-compiled-path
inguile.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)