bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20330: Do not capture build-time $PATH in 'emacs' binary


From: Ludovic Courtès
Subject: bug#20330: Do not capture build-time $PATH in 'emacs' binary
Date: Wed, 15 Apr 2015 18:37:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> skribis:

>> From: ludo@gnu.org (Ludovic Courtès)
>> Cc: 20330@debbugs.gnu.org
>> Date: Wed, 15 Apr 2015 09:45:38 +0200
>> 
>> >> >> The attached patch makes sure that the ‘emacs’ executable does not
>> >> >> capture the value of the build-time $PATH (which notably includes the
>> >> >> build directory, which may or may not exist afterwards.)
>> >> >
>> >> > Why only exec-path?
>> >> 
>> >> AFAICS this is the only thing that captures the build-time $PATH in the
>> >> installed binary.
>> >
>> > What makes PATH special?  Don't you want to prevent any build-time
>> > directories (except source-directory) from leaking into the binary?
>> 
>> I do, but I haven’t noticed any other leaks.  Do you think there are
>> others?
>
> load-path comes to mind, it can include PATH_DUMPLOADSEARCH, AFAIR.

Maybe you’re right, but I haven’t noticed any such thing with Guix’s
conservative GC scanner.

Ludo’.





reply via email to

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