aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2020-04-06 09:34:47 +0800
committerHongxu Jia <hongxu.jia@windriver.com>2020-04-08 10:01:31 +0800
commit44166b2f740b07b8644d2179222d476fc9d7feb2 (patch)
treeba870ff97c5f54908372cda88e73e6ce12c59c89 /recipes-devtools
parentfb9c7130bc17be60e78c77c3cb4244cca67d1b1c (diff)
downloadmeta-tensorflow-44166b2f740b07b8644d2179222d476fc9d7feb2.tar.gz
meta-tensorflow-44166b2f740b07b8644d2179222d476fc9d7feb2.tar.bz2
meta-tensorflow-44166b2f740b07b8644d2179222d476fc9d7feb2.zip
bazel-native: remove hardcoded /bin and /usr/bin from PATH
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/bazel/files/0001-fix-unzip-command-not-found.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-devtools/bazel/files/0001-fix-unzip-command-not-found.patch b/recipes-devtools/bazel/files/0001-fix-unzip-command-not-found.patch
index 9fb0239..9fc7f03 100644
--- a/recipes-devtools/bazel/files/0001-fix-unzip-command-not-found.patch
+++ b/recipes-devtools/bazel/files/0001-fix-unzip-command-not-found.patch
@@ -8,6 +8,8 @@ Yocto native sysroot does have unzip.
The reason is var-PATH was not passed to bazel build in some cases.
+Remove hardcoded /bin and /usr/bin from PATH
+
Upstream-Status: Inappropriate [wr-installer specific]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
@@ -24,7 +26,7 @@ index fc4aad75..e1686732 100755
// at least there's a workaround.
if (os != OS.WINDOWS) {
- return "/bin:/usr/bin";
-+ return "/bin:/usr/bin:" + System.getenv("PATH");
++ return System.getenv("PATH");
}
// Attempt to compute the MSYS root (the real Windows path of "/") from `sh`.