Re: Adding site and site-ccache in ~/.local to load(-compiled)-path by default?
Tomas Volf <[email protected]> Sat, 13 Jun 2026 19:42:02 +0200
| Newsgroups | gmane.lisp.guile.devel |
|---|---|
| Message-ID | <[email protected]> |
Matt Wette <[email protected]> writes: > On 6/12/26 6:32 PM, Tomas Volf wrote: >> 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 pref= ix >>> the %load-path gets set correctly to /opt/local/share/guile. >> Interesting, it does work for me. >> >> > I built from the guile-3.0.11 distribution tarball. > I notice that there have been a number of updates to the configure > scripts in the guile repo.=C2=A0 =C2=A0Maybe those affect it. I feel like I must be doing something wrong. :) --8<---------------cut here---------------start------------->8--- $ cd /tmp $ curl -sSfLO https://ftp.gnu.org/gnu/guile/guile-3.0.11.tar.gz $ tar -xf guile-3.0.11.tar.gz $ cd guile-3.0.11 $ guix shell -CDf guix.scm [..] [env]$ ./configure --enable-mini-gmp --prefix=3D$HOME/.local [..] [env]$ make -j32 [..] [env]$ make install [..] [env]$ ~/.local/bin/guile -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--- The load path seems correct. Tomas --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.