build-self: Execute trampoline in a clean environment.
authorLudovic Courtès <ludo@gnu.org>
Mon, 21 Jan 2019 09:05:00 +0000 (10:05 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 21 Jan 2019 09:19:32 +0000 (10:19 +0100)
commite9dfa4d839cf21b8519724ef53df4862a74c67ec
tree775fbcbbbb8f06ef603b74e6bf793f749eaee7cd
parentc680a7daa5e143dd37d1d045805e073497c591be
build-self: Execute trampoline in a clean environment.

Previously execution of the trampoline would be somewhat sensitive to
GUILE_LOAD_PATH & co., for example.

* build-aux/build-self.scm (build-program): Remove 'unsetenv' call and
%LOAD-COMPILED-PATH hack.
(call-with-clean-environment): New procedure.
(with-clean-environment): New macro.
(build): Wrap 'open-pipe*' call in 'with-clean-environment'.
build-aux/build-self.scm