From: Tom Rini Date: Mon, 18 Jul 2011 16:19:07 +0000 (-0700) Subject: python-native: Mangle scripts to use /usr/bin/env python, bump PR X-Git-Tag: 2011-1~667 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=339d039a9b2f0e97f25781ccf6937f1050d83989;p=openembedded-core.git python-native: Mangle scripts to use /usr/bin/env python, bump PR This is dd33ced4b8123600efa1f67f704aec13b0842ad1 in oe.dev and needed for building in deep paths. Signed-off-by: Tom Rini --- diff --git a/meta/recipes-devtools/python/python-native_2.6.6.bb b/meta/recipes-devtools/python/python-native_2.6.6.bb index fa943f4633..59ed61a67a 100644 --- a/meta/recipes-devtools/python/python-native_2.6.6.bb +++ b/meta/recipes-devtools/python/python-native_2.6.6.bb @@ -36,4 +36,9 @@ do_install() { oe_runmake 'DESTDIR=${D}' install install -d ${D}${bindir}/ install -m 0755 Parser/pgen ${D}${bindir}/ + + # Make sure we use /usr/bin/env python + for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT + done }