chicken-hackers
[Top][All Lists]
Advanced

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

[PATCH] recover CHICKEN_INSTALL_PREFIX


From: felix . winkelmann
Subject: [PATCH] recover CHICKEN_INSTALL_PREFIX
Date: Fri, 21 Jul 2023 15:54:41 +0200

Hi!

In complex build environments it is sometimes desirable to overriding
where "chicken-install" places programs, include- and data files, for
example when packaging. Currently it is possible to set 
CHICKEN_INSTALL_REPOSITORY
to set where extensions are placed and in combination with 
CHICKEN_REPOSITORY_PATH
it allows to have alternative additional egg repositories. But for programs
and other files that are not extension .so's and import libs such an
override is not possible, yet may still be desirable, for example when
packaging eggs or applications that use eggs and contain such "other" types
of build artifacts.

I'm completely aware that this is not a perfect solution (dependency eggs
may produce programs that we need during the build of eggs higher up in
the depedency graph), so combination of setting CHICKEN_REPOSITORY_PATH
and PATH may still be required. This is a last resort utility, IMHO
preferrable to even uglier hacks packages may need in the absence of an
alternative.

CHICKEN_INSTALL_PREFIX, which this patch uses, was actually already existing
previously, some remnants were inadvertendly not removed, most notably
in "(chicken-home)". Originally, the variable could be used to override
the install prefix at runtime, something that clearly leads to madness,
if used wrong. I removed this use and dedicate the variable solely to
"chicken-install" now, using it consistently for all installation destinations.


felix

Attachment: 0001-Allow-overriding-general-installation-prefix-in-chic.patch
Description: Text document


reply via email to

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