Re: Adding site and site-ccache in ~/.local to load(-compiled)-path by default?
Tomas Volf <[email protected]> Sat, 13 Jun 2026 03:32:01 +0200
| Newsgroups | gmane.lisp.guile.devel |
|---|---|
| Message-ID | <[email protected]> |
Matt Wette <[email protected]> writes: > On 6/9/26 11:31 AM, Dr. Arne Babenhauserheide wrote: >> Hi, >> >> I just set up a guile library for the kids manually, naturally >> configuring with >> >> ./configure --prefix=3D$HOME/.local >> Is there a good reason why we do not include the site dir and the >> site-ccache dir in $HOME/.local in the %load-path and >> %load-compiled-path by default (if they exist)? >> > > =C2=A0I didn't believe it at first but you are right. > So, I tried, and %load-path ended up under /usr/share/guile. > This seems messed up, IMO. > > Note that I usually build with --prefix=3D/opt/local and with that prefix > the %load-path gets set correctly to /opt/local/share/guile. Interesting, it does work for me. --8<---------------cut here---------------start------------->8--- $ git show --no-patch commit 1165ddafdc5ae6fef74c887588bbec12b2c292e6 (HEAD -> main, origin/main,= origin/HEAD) Author: Olivier Dion <[email protected]> Date: Sat Jun 6 19:37:28 2026 -0400 Fix srfi-235 tests srfi-64 test-suite =20=20=20=20 * test-suite/tests/srfi-235.test: Migrate tests to use test-suite library instead of srfi-64. Fix some tests that were not passing. =20=20=20=20 Signed-off-by: Olivier Dion <[email protected]> $ git clean -xffd [..] $ guix shell -CDf guix.scm -- ./autogen.sh [..] $ guix shell -CDf guix.scm -- ./configure --enable-mini-gmp --prefix=3D$HOM= E/.local [..] $ guix shell -CDf guix.scm -- make -j32 [..] $ guix shell --share local=3D/home/u/.local -CDf guix.scm -- make install [..] $ guix shell --share local=3D/home/u/.local -CDf guix.scm -- local/bin/guil= e -c '(pk %load-path)' ;;; (("/home/u/.local/share/guile/3.0" "/home/u/.local/share/guile/site/3.0= " "/home/u/.local/share/guile/site" "/home/u/.local/share/guile")) --8<---------------cut here---------------end--------------->8--- Albeit it is all done in a container, effectively it should be the same as just installing it to home. Any ideas what I am doing differently? Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.