git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] gitweb-lib.sh: Set up PATH to use perl from /usr/bin

From
Junio C Hamano <gitster@pobox.com>
Date
May 1, 2012, 17:53 UTC
Message-ID
<7v8vhbaitt.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4FA02274.6070601@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 21 quoted lines
> Thanks for all answers,
>> I think the patch we want is just:
>> 
>> diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh
>> index 21d11d6..ae2dc46 100644
>> --- a/t/gitweb-lib.sh
>> +++ b/t/gitweb-lib.sh
>> @@ -69,7 +69,7 @@ gitweb_run () {
>>  	# written to web server logs, so we are not interested in that:
>>  	# we are interested only in properly formatted errors/warnings
>>  	rm -f gitweb.log &&
>> -	perl -- "$SCRIPT_NAME" \
>> +	"$PERL_PATH" -- "$SCRIPT_NAME" \
>>  		>gitweb.output 2>gitweb.log &&
>>  	perl -w -e '
>>  		open O, ">gitweb.headers";
>> 
>> no? Torsten, does that fix your problem?
> Yes, it does.
>
> Should we go for that solution ?
Sounds good.
Previous: Torsten BögershausenNext: Jeff King
Message 8 of 12 in “gitweb-lib.sh: Set up PATH to use perl from /usr/bin”
  1. gitweb-lib.sh: Set up PATH to use perl from /usr/binTorsten Bögershausen, May 1, 2012
  2. Zbigniew Jędrzejewski-SzmekMay 1, 2012
  3. Jeff KingMay 1, 2012
  4. Junio C HamanoMay 1, 2012
  5. Zbigniew Jędrzejewski-SzmekMay 1, 2012
  6. Jeff KingMay 1, 2012
  7. Torsten BögershausenMay 1, 2012
  8. Junio C HamanoMay 1, 2012
  9. t/gitweb-lib: use $PERL_PATH to run gitwebJeff King, May 1, 2012
  10. Consistently use perl from /usr/bin/ for scriptsZbigniew Jędrzejewski-Szmek, May 1, 2012
  11. Randal L. SchwartzMay 1, 2012
  12. Junio C HamanoMay 1, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.