Bug 521282 - Fix instances of #!/usr/bin/env python in rhpl
Summary: Fix instances of #!/usr/bin/env python in rhpl
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rhpl
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Anaconda Maintenance Team
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-04 16:20 UTC by James G. Brown III
Modified: 2018-10-20 00:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-04 17:40:28 UTC


Attachments (Terms of Use)

Description James G. Brown III 2009-09-04 16:20:38 UTC
"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, rhpl in RHEL5 has at least one instance of a
python script containing #!/usr/bin/env python"

Comment 1 Chris Lumens 2009-09-04 17:10:06 UTC
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' *
clumens@localhost:~/src/rhpl$

Comment 2 Kent Baxley 2009-09-04 17:35:37 UTC
We were trying to do a sweep of packages that had any files that contained #!/usr/bin/env python via:

#!/bin/bash
if file $1 | grep "a python script text executable" >/dev/null;then
    if head -1 $1 | grep env >/dev/null;then
exit 0
   fi
else
   exit 1
fi


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.