[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hard coded paths in csc and relocatable chicken

From: Marc Feeley
Subject: Re: Hard coded paths in csc and relocatable chicken
Date: Fri, 21 May 2021 11:00:35 -0400

> On May 21, 2021, at 8:58 AM, Théo Cavignac <> wrote:
> Hi Matt,
> I have been interested in this problem for other reasons, mainly because I 
> was interested in the possibility of installing eggs in userspace while 
> Chicken was installed through distro package manager (thus in root).
> Anyway, in the current states of the compiler it appears that the whole build 
> process of Chicken is built around the assumption of a fixed install path.
> The dust project ( solved this by putting a 
> placeholder 256 * "X" instead of the path in binaries, then editing the 
> binaries in place when installing in your location.
> I don't know how it would fit in your use case and it is definitely hacky but 
> it works.
> Cheers,
> Théo

A similar hack that is used by Gambit is to put a long sequence of ./././ etc 
in the paths embedded in the binary and patching the binary when it is 
installed.  The benefit of that approach is that the path in the unpatched 
binary can be the path where the binary is usually installed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]