<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>D'oh! I checked master for changes to .sh generation but not the .py itself. My bad.</div><div><br></div><div>Change 175f20e2 (relocate_sdk.py: make it work also with python 3) appears to work fine.</div><div><br>---<br>Richard Tollerton &lt;rich.tollerton@ni.com&gt; (512)683-6346</div><br><br><font color="#990099">-----Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt; wrote: -----</font><div style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Richard Tollerton &lt;rich.tollerton@ni.com&gt;<br>From: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;<br>Date: 10/04/2013 06:34AM<br>Cc: openembedded-core@lists.openembedded.org, paul.eggleton@linux.intel.com, gratian.crisan@ni.com, ken.sharp@ni.com<br>Subject: Re: [OE-core] [dylan, master][PATCH] populate_sdk_base: Fix relocate_sdk.py execution on Arch<br><br><div><font face="Courier New,Courier,monospace" size="3">On Wed, 2013-10-02 at 18:18 -0500, Richard Tollerton wrote:<br>&gt; relocate_sdk.py is #!/usr/bin/env python, but is not python3-compatible.<br>&gt; The PEP 394 alias `python2` is sadly not universally supported, so<br>&gt; instead of modifying relocate_sdk.py directly, change the `exec` in<br>&gt; relocate_sdk.sh to use it if it exists.<br>&gt; <br>&gt; Signed-off-by: Richard Tollerton &lt;rich.tollerton@ni.com&gt;<br>&gt; ---<br>&gt; &nbsp;meta/classes/populate_sdk_base.bbclass | 3 ++-<br>&gt; &nbsp;1 file changed, 2 insertions(+), 1 deletion(-)<br><br>Wasn't the script fixed in master to avoid this problem?<br><br>Cheers,<br><br>Richard<br><br>&gt; diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass<br>&gt; index e5bc0b4..e67d8b6 100644<br>&gt; --- a/meta/classes/populate_sdk_base.bbclass<br>&gt; +++ b/meta/classes/populate_sdk_base.bbclass<br>&gt; @@ -256,8 +256,9 @@ if [ x$tdir = x ] ; then<br>&gt; &nbsp; &nbsp; echo "SDK relocate failed, could not create a temporary directory"<br>&gt; &nbsp; &nbsp; exit 1<br>&gt; &nbsp;fi<br>&gt; +python_bin="$(command -v python2 2&gt;/dev/null)" || python_bin=python<br>&gt; &nbsp;echo "#!/bin/bash" &gt; $tdir/relocate_sdk.sh<br>&gt; -echo exec ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir $dl_path $executable_files &gt;&gt; $tdir/relocate_sdk.sh<br>&gt; +echo exec $python_bin ${env_setup_script%/*}/relocate_sdk.py $target_sdk_dir $dl_path $executable_files &gt;&gt; $tdir/relocate_sdk.sh<br>&gt; &nbsp;$SUDO_EXEC mv $tdir/relocate_sdk.sh ${env_setup_script%/*}/relocate_sdk.sh<br>&gt; &nbsp;$SUDO_EXEC chmod 755 ${env_setup_script%/*}/relocate_sdk.sh<br>&gt; &nbsp;rm -rf $tdir<br><br><br></font></div></div></div></font>