Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 285234

Summary: /usr/lib/python2.6/cgi.py is executable and has invalid shebang /usr/local/bin/python
Product: Gentoo Linux Reporter: Fabian Groffen <grobian>
Component: New packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED LATER    
Severity: normal CC: djc, prefix
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fabian Groffen gentoo-dev 2009-09-16 19:01:11 UTC
although this is found by a Prefix QA check, it is a general problem

 * QA Notice: the following files use invalid (possible non-prefixed) shebangs:
 * Library/Gentoo/usr/lib/python2.6/cgi.py:/usr/local/bin/python
 * ERROR: dev-lang/python-2.6.2-r01.3 failed:
 *   Aborting due to QA concerns: invalid shebangs found

something like this in the ebuild will do:

    # fix invalid shebang /usr/local/bin/python
    sed -i -e '1c\#!'"${EPREFIX}"'/usr/bin/python' \
        "${ED}"/usr/$(get_libdir)/python${PYVER}/cgi.py
Comment 1 Fabian Groffen gentoo-dev 2009-10-26 16:17:09 UTC
timeout