Re: Adding site and site-ccache in ~/.local to load(-compiled)-path by default?

Matt Wette <[email protected]> Sat, 13 Jun 2026 13:48:46 -0700
Newsgroups gmane.lisp.guile.devel
Message-ID <[email protected]>
On 6/13/26 10:42 AM, Tomas Volf wrote:
> 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=$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)?
>>>>>
>>>>    I 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=/opt/local and with that prefix
>>>> 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.   Maybe 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=$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
>

This time I cleaned up my PATH before configure and built to install 
under~/.lokal
and it worked fine.   I'm not sure what the difference is from before.

Matt