diff options
| author | Tyler Hall <tylerwhall@gmail.com> | 2014-05-04 18:37:50 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-29 13:42:21 +0100 |
| commit | 133472e7aaddcf9cbf2a6aa34bd7049b3990dcf6 (patch) | |
| tree | b82f642ed8314c57bca2d119abcf1a2ecd802b9e /meta/recipes-devtools/python/python3-native_3.3.3.bb | |
| parent | e4b9dabfbb7cc7ec365f87273f54f06025b99b4e (diff) | |
| download | poky-133472e7aaddcf9cbf2a6aa34bd7049b3990dcf6.tar.gz | |
python3: Substitute correct python version in shebang
If python2 and python3 are both available, scripts that are subject to
this substitution can possibly run with the wrong python version.
python3-config is one such script.
(From OE-Core rev: 23849347d0fe60a01578efdd6c6e23ebb444dcd6)
(From OE-Core rev: ae49adc13db10cb39eeb9377eb4c60a4db436e00)
Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-native_3.3.3.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-native_3.3.3.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-native_3.3.3.bb b/meta/recipes-devtools/python/python3-native_3.3.3.bb index 7238eaf27d..0fd73498e8 100644 --- a/meta/recipes-devtools/python/python3-native_3.3.3.bb +++ b/meta/recipes-devtools/python/python3-native_3.3.3.bb | |||
| @@ -71,6 +71,6 @@ do_install() { | |||
| 71 | 71 | ||
| 72 | # Make sure we use /usr/bin/env python | 72 | # Make sure we use /usr/bin/env python |
| 73 | for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do | 73 | for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do |
| 74 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT | 74 | sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT |
| 75 | done | 75 | done |
| 76 | } | 76 | } |
