Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #16476 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

git-core 1.6.0.1 instaweb fails, can't run perl

Reported by: walter@… Owned by: bryan@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: git instaweb perl Cc: maccheck@…, ryandesign@…
Port: git-core

Description

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.

Attachments

Portfile.patch (1.4 KB) - added by maccheck@… 3 months ago.

Change History

Changed 3 months ago by ryandesign@…

  • cc maccheck@… added; walter@… removed
  • owner changed from macports-tickets@… to bryan@…

Changed 3 months ago by maccheck@…

Changed 3 months ago by maccheck@…

Removing the PERL_PATH occurrences in the Portfile did the trick for me. Until now, I didn't find any incompatibilities due to that change.

I attached my Portfile as a patch.

Changed 3 months ago by maccheck@…

I added the patch in the version update to git-core 1.6.0.2 as well (see #16546).

Changed 2 months ago by ryandesign@…

  • cc ryandesign@… added
  • status changed from new to closed
  • resolution set to fixed

Fixed in r40118. Thanks!

Note: See TracTickets for help on using tickets.