#12221 closed defect (fixed)
BUG: Python /usr/local/bin/python packaging
Reported by: | afb@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | pat@…, mwdiers@…, mww@… | |
Port: |
Description
cgi.py says:
#! /usr/local/bin/python # NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is # intentionally NOT "/usr/bin/env python". On many systems # (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI # scripts, and /usr/local/bin is the default directory where Python is # installed, so /usr/bin/env would be unable to find python. Granted, # binary installations by Linux vendors often install Python in # /usr/bin. So let those vendors patch cgi.py to match their choice # of installation.
Which means that we need to patch it to ${prefix}/bin/python... (this applies to both the python24 and python25 port versions)
Most likely it should use the versioned name, e.g. "python2.4"
Attachments (1)
Change History (6)
comment:1 Changed 17 years ago by afb@…
Milestone: | → Port Bugs |
---|
comment:2 Changed 17 years ago by nox@…
Cc: | pat@… mwdiers@… mww@… added |
---|---|
Priority: | Expected → Normal |
Version: | 1.5 |
Changed 17 years ago by afb@…
Attachment: | python24-cgi.patch added |
---|
comment:3 Changed 17 years ago by afb@…
Since Python is unmaintained, I'll probably just commit these in a stealth update...
comment:4 Changed 17 years ago by afb@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r28753, but didn't bump revision since "python" binary was deleted. (this breaks a lot of ports unless using python_select, as new users know)
Note: See
TracTickets for help on using
tickets.
python24-cgi.patch