Bug 521304

Summary: Fix instances of #!/usr/bin/env python in python-imaging-devel
Product: Red Hat Enterprise Linux 5 Reporter: Chris Williams <cww>
Component: python-imagingAssignee: Roman Rakus <rrakus>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4CC: atodorov, borgan, cww, rvokal, tao, tsmetana
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-imaging-1.1.5-7.el5 Doc Type: Bug Fix
Doc Text:
The shebang lines in Python executables have been changed to "#!/usr/bin/python" to ensure the Python interpreter installed in the system is used.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-09 13:05:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 502912, 521940, 590060    

Description Chris Williams 2009-09-04 17:01:11 UTC
here's a project underway in Fedora 12 to finally resolve the issues
with Red Hat including #!/usr/bin/env python in our python executables:

https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython

There's also a Fedora bug opened on this, and comments in there state
that this is a big priority for RHEL6:

https://bugzilla.redhat.com/show_bug.cgi?id=518994

For RHEL5, we've been instructed by Product Management to open bugs on
a package-by-package basis to address the problem.

In this case, python-imaging-devel in RHEL5 has at least one instance of a
python script containing #!/usr/bin/env python

Comment 2 RHEL Program Management 2009-09-23 12:01:32 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

Comment 9 Roman Rakus 2011-02-07 14:39:57 UTC
Fixed in python-imaging-1.1.5-7.el5

Comment 11 Jaromir Hradilek 2011-02-07 15:38:32 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
The shebang lines in Python executables have been changed to "#!/usr/bin/python" to ensure the Python interpreter installed in the system is used.

Comment 12 Alexander Todorov 2011-02-08 08:07:02 UTC
The only files containing "/usr/bin/env python" that I found are from the python-imaging-devel package:

# rpm -ql  python-imaging-devel | xargs grep "/usr/bin/env"
/usr/share/doc/python-imaging-devel-1.1.5/Sane/demo_numarray.py:#!/usr/bin/env python
/usr/share/doc/python-imaging-devel-1.1.5/Sane/demo_pil.py:#!/usr/bin/env python
/usr/share/doc/python-imaging-devel-1.1.5/Scripts/pildriver.py:#!/usr/bin/env python


With python-imaging-devel-1.1.5-7.el5:
# rpm -ql  python-imaging-devel | xargs grep "/usr/bin/env" 


Moving to VERIFIED.

Comment 13 errata-xmlrpc 2011-02-09 13:05:48 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0205.html