[oe-commits] Tyler Hall : python3: Substitute correct python version in shebang
git at git.openembedded.org
git at git.openembedded.org
Thu May 8 12:08:21 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: 23849347d0fe60a01578efdd6c6e23ebb444dcd6
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=23849347d0fe60a01578efdd6c6e23ebb444dcd6
Author: Tyler Hall <tylerwhall at gmail.com>
Date: Sun May 4 18:37:50 2014 -0400
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.
Signed-off-by: Tyler Hall <tylerwhall at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-devtools/python/python3-native_3.3.3.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 7238eaf..0fd7349 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() {
# Make sure we use /usr/bin/env python
for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do
- sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
+ sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
done
}
More information about the Openembedded-commits
mailing list