Re: Quick merge status updates.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jul 3, 2006, 00:06 UTC
- Message-ID
- <7v1wt31riu.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0607021655440.12404@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 12 quoted lines
> 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.