<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, May 5, 2014 at 12:37 AM, Tyler Hall <span dir="ltr"><<a href="mailto:tylerwhall@gmail.com" target="_blank">tylerwhall@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If python2 and python3 are both available, scripts that are subject to<br>
this substitution can possibly run with the wrong python version.<br>
python3-config is one such script.<br>
<br>
Signed-off-by: Tyler Hall <<a href="mailto:tylerwhall@gmail.com">tylerwhall@gmail.com</a>><br>
---<br>
meta/recipes-devtools/python/<a href="http://python3-native_3.3.3.bb" target="_blank">python3-native_3.3.3.bb</a> | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/recipes-devtools/python/<a href="http://python3-native_3.3.3.bb" target="_blank">python3-native_3.3.3.bb</a> b/meta/recipes-devtools/python/<a href="http://python3-native_3.3.3.bb" target="_blank">python3-native_3.3.3.bb</a><br>
index 7238eaf..0fd7349 100644<br>
--- a/meta/recipes-devtools/python/<a href="http://python3-native_3.3.3.bb" target="_blank">python3-native_3.3.3.bb</a><br>
+++ b/meta/recipes-devtools/python/<a href="http://python3-native_3.3.3.bb" target="_blank">python3-native_3.3.3.bb</a><br>
@@ -71,6 +71,6 @@ do_install() {<br>
<br>
# Make sure we use /usr/bin/env python<br></blockquote><div><br></div><div>the comment above should perhaps be updated together with this change<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do<br>
- sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT<br>
+ sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT<br>
done<br>
}<br></blockquote><br></div></div></div>