Subject: Re: bug#48108: Wishlist: Command to remove redundant eln cache directories [native-comp]

From: Eli Zaretskii <[email-masked]>
Date: Mon, 28 Nov 2022 15:43:00 +0200

> From: Juanma Barranquero <[email-masked]>
> Date: Mon, 28 Nov 2022 14:22:05 +0100
> Cc: [email-masked], [email-masked], [email-masked]
> 
> Also, if you set a relative path in native-comp-eln-load-path (directly, not via `startup-redirect-eln-cache'), it
> defaults to `invocation-directory', which is (in an in-place run) the src/ subdir. 
> 
> Which is weird:
> 
> (push "./test-native" native-comp-eln-load-path)
> 
> and then the test-native/ subdir is created both under `user-emacs-directory' and `invocation-directory' (the
> .eln files go to the second one).

Why is this weird?  These files are needed early at startup, when Emacs is
still unable to do anything fancy, so how is it "weird" that relative file
names are interpreted as relative to where Emacs runs?  Are you aware of any
other programs that interpret relative file names differently?

If the effect surprises you, don't add relative file names to the variable.
You aren't supposed to anyway; AFAIR this option is only used during the
build, if at all.