Bug 521282 - Fix instances of #!/usr/bin/env python in rhpl
Fix instances of #!/usr/bin/env python in rhpl
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhpl (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Anaconda Maintenance Team
Release Test Team
Depends On:
  Show dependency treegraph
Reported: 2009-09-04 12:20 EDT by James G. Brown III
Modified: 2014-12-01 18:06 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-09-04 13:40:28 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James G. Brown III 2009-09-04 12:20:38 EDT
"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:


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


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, rhpl in RHEL5 has at least one instance of a
python script containing #!/usr/bin/env python"
Comment 1 Chris Lumens 2009-09-04 13:10:06 EDT
Which python script are you referring to?  As you can see...

clumens@localhost:~/src/rhpl$ git status
# On branch rhel5-branch
nothing to commit (working directory clean)
clumens@localhost:~/src/rhpl$ grep -r 'usr/bin/env' *
Comment 2 Kent Baxley 2009-09-04 13:35:37 EDT
We were trying to do a sweep of packages that had any files that contained #!/usr/bin/env python via:

if file $1 | grep "a python script text executable" >/dev/null;then
    if head -1 $1 | grep env >/dev/null;then
exit 0
   exit 1

Then we ran:

find / -type f -exec /root/python_search.sh '{}' \; -exec rpm -qf '{}' \;

...I'm not sure (yet) how rhpl got pulled into the list.

Note You need to log in before you can comment on or make changes to this bug.