[MacPorts] #16476: git-core 1.6.0.1 instaweb fails, can't run perl

MacPorts noreply at macports.org
Fri Sep 5 21:39:08 PDT 2008


#16476: git-core 1.6.0.1 instaweb fails, can't run perl
------------------------------------+---------------------------------------
 Reporter:  walter at jacksonfish.com  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                  |      Status:  new                                  
 Priority:  Normal                  |   Milestone:  Port Bugs                            
Component:  ports                   |     Version:  1.6.0                                
 Keywords:  git instaweb perl       |        Port:  git-core                             
------------------------------------+---------------------------------------
 Symptom: git instaweb fails as follows:

 {{{
 $ git instaweb --httpd webrick
 (09-05 21:06)
 /opt/local/libexec/git-core/git-instaweb: line 6015: /usr/bin/env perl: No
 such file or directory
 [2008-09-05 21:06:29] INFO  WEBrick 1.3.1
 [2008-09-05 21:06:29] INFO  ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1]
 No known browser available.
 http://127.0.0.1:1234
 }}}

 The web server is launched but it doesn't work because the gitweb.cgi file
 is not written.

 The reason seems to be that the Portfile has this:

 {{{
 PERL_PATH="/usr/bin/env perl"
 }}}

 which causes trouble when git-instaweb does this:

 {{{
 PERL='/usr/bin/env perl'
 ...
 "$PERL" -p -e "$script" "$1.tmp"  > "$1"
 }}}

 I guess it's not surprising that setting PERL_PATH to something other than
 a path wouldn't work, but so far instaweb is the only thing I've tried
 that has the problem.

-- 
Ticket URL: <http://trac.macports.org/ticket/16476>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list