[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile-2.0 on mingw: the sequel
From: |
Mark H Weaver |
Subject: |
Re: guile-2.0 on mingw: the sequel |
Date: |
Sun, 25 Aug 2013 17:19:20 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Eli Zaretskii <address@hidden> skribis:
>
>>> From: Mark H Weaver <address@hidden>
>>> Cc: Eli Zaretskii <address@hidden>, "address@hidden" <address@hidden>
>>> Date: Fri, 23 Aug 2013 11:13:19 -0400
>>>
>>> Of course, ideally we would allow the entire Guile install to be freely
>>> relocatable, as Windows users have come to expect. This would require
>>> some help from a Windows developer.
>>
>> Why should this feature be limited to Windows builds of Guile? Why
>> not make it work for Posix platforms as well? Some other projects
>> already do, they use argv[0] and PATH search to find the place where
>> the executable is installed, and record relative file names from
>> there.
>
> This is not completely reliable when using argv[0] because argv[0] can
> be anything, though this can be work around on Linux-based systems with
> /proc/self/exe as done in
> <http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/patches/guile-relocatable.patch>.
This finds the executable, but as I noted in a recent message, that
doesn't reliably lead to finding the location of libguile. I think
you're assuming that the executable is the standard 'guile' executable,
or at least that it's installed in the same prefix as libguile.
> Here’s a proposal: add a --enable-relocatable configure option, have it
> default to yes on MinGW and Cygwin (assuming there’s a method that works
> reliably on these), and default to no elsewhere; alternately, have it
> default to no everywhere.
>
> WDYT?
In theory, I like this idea. I just don't see how it can be made to
work reliably on POSIX systems.
Thanks,
Mark
- Re: guile-2.0 on mingw: the sequel, (continued)
- Re: guile-2.0 on mingw: the sequel, Eli Zaretskii, 2013/08/25
- Re: guile-2.0 on mingw: the sequel, Mark H Weaver, 2013/08/25
- Re: guile-2.0 on mingw: the sequel, dsmich, 2013/08/25
- Re: guile-2.0 on mingw: the sequel, Eli Zaretskii, 2013/08/25
- Re: guile-2.0 on mingw: the sequel, Mark H Weaver, 2013/08/26
- Re: guile-2.0 on mingw: the sequel, Mark H Weaver, 2013/08/26
- Re: guile-2.0 on mingw: the sequel, Eli Zaretskii, 2013/08/26
- Re: guile-2.0 on mingw: the sequel, Eli Zaretskii, 2013/08/25
- Re: guile-2.0 on mingw: the sequel, Eli Zaretskii, 2013/08/25
- Re: guile-2.0 on mingw: the sequel, Ludovic Courtès, 2013/08/25
- Re: guile-2.0 on mingw: the sequel,
Mark H Weaver <=
- Re: guile-2.0 on mingw: the sequel, Eli Zaretskii, 2013/08/25