#16476 closed defect (fixed)
git-core 1.6.0.1 instaweb fails, can't run perl
Reported by: | walter@… | Owned by: | bryan@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | git instaweb perl | Cc: | maccheck@…, ryandesign (Ryan Carsten Schmidt) |
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 (1)
Change History (6)
comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | maccheck@… added; walter@… removed |
---|---|
Owner: | changed from macports-tickets@… to bryan@… |
Changed 16 years ago by maccheck@…
Attachment: | Portfile.patch added |
---|
comment:2 Changed 16 years ago by maccheck@…
comment:3 Changed 16 years ago by maccheck@…
I added the patch in the version update to git-core 1.6.0.2 as well (see #16546).
comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in r40118. Thanks!
Note: See
TracTickets for help on using
tickets.
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.