Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23997 - [python/python2] cgi.py in python{,2} should use /usr/bin/python{,2}

Attached to Project: Arch Linux
Opened by Kaiting Chen (kaitocracy) - Saturday, 30 April 2011, 02:49 GMT
Last edited by Stéphane Gaudreault (stephane) - Monday, 11 July 2011, 13:07 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Stéphane Gaudreault (stephane)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Copied verbatim from /usr/lib/python{2.7,3.2}/cgi.py:

#! /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.

So line 1 in that file needs to be changed to /usr/bin/python{,2} depending on which Python it is for.
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Monday, 11 July 2011, 13:07 GMT
Reason for closing:  Fixed
Additional comments about closing:  python-3.2.1 in [testing]
Comment by Dave Reisner (falconindy) - Saturday, 30 April 2011, 02:50 GMT
I think you mean it should be /usr/local/bin/python{,2} in the respective packages.
Comment by Kaiting Chen (kaitocracy) - Saturday, 30 April 2011, 02:51 GMT
No /usr/local/bin/python{,2} doesn't exist. It should point to the actual location of the python{,2} binary in /usr/bin.
Comment by Dave Reisner (falconindy) - Saturday, 30 April 2011, 02:52 GMT
I think you're right.
Comment by Stéphane Gaudreault (stephane) - Sunday, 12 June 2011, 03:25 GMT
python 2.7.2 in [testing].

Will be fixed in python 3 when 3.2.1 will be released (around June 19).

Loading...