Bug 521898
Summary: | Fix instances of #!/usr/bin/env python in python-tools | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Issue Tracker <tao> | |
Component: | python | Assignee: | Robert Kuska <rkuska> | |
Status: | CLOSED ERRATA | QA Contact: | Jan Kepler <jkejda> | |
Severity: | low | Docs Contact: | ||
Priority: | low | |||
Version: | 6.5 | CC: | bnater, cww, jberan, jkejda, rkuska, tao, tcallawa | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | python-2.6.6-49.el6 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1019336 (view as bug list) | Environment: | ||
Last Closed: | 2013-11-21 09:12:50 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, 1019336 |
Description
Issue Tracker
2009-09-08 16:17:45 UTC
Event posted on 09-08-2009 12:15pm EDT by kbaxley There'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-tools in RHEL5 has at least one instance of a python script containing #!/usr/bin/env python. /usr/lib64/python2.4/Demo/scripts/find-uname.py in python-tools-2.4.3-27.el5 /usr/lib64/python2.4/Demo/pdist/rcvs in python-tools-2.4.3-27.el5 /usr/lib64/python2.4/Demo/pdist/rcsbump in python-tools-2.4.3-27.el5 /usr/lib64/python2.4/Demo/pdist/rrcs in python-tools-2.4.3-27.el5 /usr/lib64/python2.4/Doc/tools/mkhowto in python-tools-2.4.3-27.el5 /usr/lib64/python2.4/site-packages/pynche/pynche in python-tools-2.4.3-27.el5 This event sent from IssueTracker by kbaxley [LLNL (HPC)] issue 339906 Note that the pathfix script ("/usr/lib/python2.4/Tools/scripts/pathfix.py" in the python-tools rpm) can be used to fix up such issues. In theory, the copy of this script embedded in the source tree _is_ being invoked at the end of the %build phase of python.spec on ".", leading to a recursive walk of the all of the files. However, when recursing, it only affects files matching this regex: ispythonprog = regex.compile('^[a-zA-Z0-9_]+\.py$') and this fails to match the files listed in comment #1: find-uname.py has an embedded dash character, and the other tools lack a .py extenstion. One possible fix would be to explicitly list these files after "." when invoking pathfix. This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?". This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. I've changed shenbangs accroding the https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython Relevant commit http://pkgs.devel.redhat.com/cgit/rpms/python/commit/?h=rhel-6.5&id=9f2037d719a28bd63bcdf4a86b366bbcaea27817 Agreed with jkejda, who is working on rhel-6.5 advisory. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-1582.html |