]> code.ossystems Code Review - openembedded-core.git/commit
meta/files/toolchain-shar-relocate.sh: Detect different python binaries and select...
authorLiam R. Howlett <Liam.Howlett@windriver.com>
Tue, 19 Jan 2016 20:20:17 +0000 (15:20 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jan 2016 23:42:37 +0000 (23:42 +0000)
commit99d4d97f51b658d58a50789056b422e48df89ad9
tree0936072ce99a55fdf94392dc71241fa305e4bf76
parent9f6942524b1b1bf028f4176e4549acd583a69762
meta/files/toolchain-shar-relocate.sh: Detect different python binaries and select one that exists.

Although the relocate_sdk.sh supports python3, fc23 does not symlink
/usr/bin/python3 to /usr/bin/python.  Using exec instead of a call to
the correct interpreter causes a failure on fc23 when python2 is not
present.  This uses 'which' to locate python, python2, then python3 and
uses the first one that's found.

Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/files/toolchain-shar-relocate.sh