Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285234 - /usr/lib/python2.6/cgi.py is executable and has invalid shebang /usr/local/bin/python
Summary: /usr/lib/python2.6/cgi.py is executable and has invalid shebang /usr/local/bi...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-16 19:01 UTC by Fabian Groffen
Modified: 2009-10-26 16:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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