Opened 17 years ago

Closed 17 years ago

Last modified 15 years ago

#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)

python24-cgi.patch (1.9 KB) - added by afb@… 17 years ago.
python24-cgi.patch

Download all attachments as: .zip

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: ExpectedNormal
Version: 1.5

Changed 17 years ago by afb@…

Attachment: python24-cgi.patch added

python24-cgi.patch

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: newclosed

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)

comment:5 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.