aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2020-04-10 14:25:26 +0800
committerHongxu Jia <hongxu.jia@windriver.com>2020-04-10 16:34:17 +0800
commit8b22437b2540f8eda2d6528eb3e67d714154791d (patch)
tree455a6c3b3d0ce009af48c02dd08298b6feba7be0
parent0ae815fb676baef0c53653198e4df9d6d23b21f4 (diff)
downloadmeta-tensorflow-8b22437b2540f8eda2d6528eb3e67d714154791d.tar.gz
meta-tensorflow-8b22437b2540f8eda2d6528eb3e67d714154791d.tar.bz2
meta-tensorflow-8b22437b2540f8eda2d6528eb3e67d714154791d.zip
tensorflow: fix python3 script contains build path
The python3 script contains build path: ... '''exec' tmp-glibc/work/corei7-64-wrs-linux/tensorflow/1.13.0-r0/ recipe-sysroot-native/usr/bin/nativepython3 "$0" "$@" ... Improve sed operation to match nativepython3 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
-rw-r--r--recipes-framework/tensorflow/tensorflow_1.13.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-framework/tensorflow/tensorflow_1.13.0.bb b/recipes-framework/tensorflow/tensorflow_1.13.0.bb
index c6d7852..9dd61af 100644
--- a/recipes-framework/tensorflow/tensorflow_1.13.0.bb
+++ b/recipes-framework/tensorflow/tensorflow_1.13.0.bb
@@ -147,7 +147,7 @@ do_install() {
(
cd ${D}${PYTHON_SITEPACKAGES_DIR}/bin;
for app in `ls`; do
- sed -i "s:^'''exec' ${PYTHON} :'''exec' /usr/bin/python3 :g" $app
+ sed -i "s:^'''exec' ${STAGING_BINDIR_NATIVE}/nativepython3 :'''exec' /usr/bin/python3 :g" $app
mv $app ${D}${sbindir}
done