guile-utils.eclass: set GUILE_AUTO_COMPILE=fresh

Noticed this when looking at app-office/gnucash which was disabling
GUILE_AUTO_COMPILE entirely (see 72dbf2ec40).

We don't want Guile making decisions based on the system cache
files. Always recompile so we're deterministic.

See https://www.gnu.org/software/guile/manual/html_node/Environment-Variables.html#index-GUILE_005fAUTO_005fCOMPILE.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2024-12-26 10:01:35 +00:00
parent 19fe70594b
commit bd408878bb

View File

@@ -84,10 +84,14 @@ guile_check_compat
# @FUNCTION: guile_set_common_vars
# @DESCRIPTION:
# Sets common variables that apply to all Guile packages, namely,
# QA_PREBUILT.
# GUILE_AUTO_COMPILE and QA_PREBUILT.
guile_set_common_vars() {
debug-print-function ${FUNCNAME} "$@"
# We don't want Guile making decisions based on the system cache
# files. Always recompile so we're deterministic.
export GUILE_AUTO_COMPILE=fresh
# These aren't strictly speaking prebuilt. but they do generated a
# nonstandard ELF object.
if [[ -z ${QA_PREBUILT} ]]; then