From: Junio C Hamano Date: Mon, 03 Jul 2006 00:06:01 GMT Subject: Re: Quick merge status updates. Message-ID: <7v1wt31riu.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > On Sun, 2 Jul 2006, Junio C Hamano wrote: >> Yuck; that means we would need to have something evil like this. > > That's just disgusting. > > How about a _much_ simpler approach. > > Just make it do > > BEGIN { push ENV{'GIT_PERL_EXEC_DIR'}; } > > And then simply _require_ that the setup code sets up GIT_PERL_EXEC_DIR. No, we are not mucking with /usr/bin but are talking about a directory for platform specific Perl libraries, which we need to ask Perl at build-time. And the standard way to say that is to do: use lib '@@INSTLIBDIR@@'; but that always prepends the directory to the search path, and the ugly stuff is to allow test scripts to override it when needed.