All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] A couple of fixes for oe-run-native
@ 2018-07-17 12:34 Paul Eggleton
  2018-07-17 12:34 ` [PATCH 1/2] oe-run-native: ensure arguments get quoted Paul Eggleton
  2018-07-17 12:34 ` [PATCH 2/2] oe-find-native-sysroot: drop message if pseudo is not found Paul Eggleton
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Eggleton @ 2018-07-17 12:34 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 26e04b23ba1b6942aa7c7df478d41dfe7b73e6e0:

  oeqa/selftest/wic: Split tests into two class groups (2018-07-15 16:36:09 +0100)

are available in the Git repository at:

  git://git.openembedded.org/openembedded-core-contrib paule/oe-run-native-fixes
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=paule/oe-run-native-fixes

Paul Eggleton (2):
  oe-run-native: ensure arguments get quoted
  oe-find-native-sysroot: drop message if pseudo is not found

 scripts/oe-find-native-sysroot | 2 --
 scripts/oe-run-native          | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

-- 
2.17.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] oe-run-native: ensure arguments get quoted
  2018-07-17 12:34 [PATCH 0/2] A couple of fixes for oe-run-native Paul Eggleton
@ 2018-07-17 12:34 ` Paul Eggleton
  2018-07-17 12:34 ` [PATCH 2/2] oe-find-native-sysroot: drop message if pseudo is not found Paul Eggleton
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2018-07-17 12:34 UTC (permalink / raw)
  To: openembedded-core

If you pass quoted arguments to oe-run-native, they need to be passed
as-is to the underlying tool. Putting quotes around $@ ensures each
argument is quoted individually.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 scripts/oe-run-native | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-run-native b/scripts/oe-run-native
index 1131122e685..bbdd1d8c1a8 100755
--- a/scripts/oe-run-native
+++ b/scripts/oe-run-native
@@ -60,7 +60,7 @@ tool_find=`/usr/bin/which $tool 2>/dev/null`
 
 if [ -n "$tool_find" ] ; then
     # add old path to allow usage of host tools
-    PATH=$PATH:$OLD_PATH $@
+    PATH=$PATH:$OLD_PATH "$@"
 else
     echo "Error: Unable to find '$tool' in $PATH"
     echo "Error: Have you run 'bitbake $native_recipe -caddto_recipe_sysroot'?"
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] oe-find-native-sysroot: drop message if pseudo is not found
  2018-07-17 12:34 [PATCH 0/2] A couple of fixes for oe-run-native Paul Eggleton
  2018-07-17 12:34 ` [PATCH 1/2] oe-run-native: ensure arguments get quoted Paul Eggleton
@ 2018-07-17 12:34 ` Paul Eggleton
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2018-07-17 12:34 UTC (permalink / raw)
  To: openembedded-core

pseudo won't always be in the native sysroot for a recipe, so we
shouldn't be complaining if it isn't there.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 scripts/oe-find-native-sysroot | 2 --
 1 file changed, 2 deletions(-)

diff --git a/scripts/oe-find-native-sysroot b/scripts/oe-find-native-sysroot
index 350ea21373a..cc146b3fdbc 100755
--- a/scripts/oe-find-native-sysroot
+++ b/scripts/oe-find-native-sysroot
@@ -110,6 +110,4 @@ pseudo="$OECORE_NATIVE_SYSROOT/usr/bin/pseudo"
 if [ -e "$pseudo" ]; then
     echo "PSEUDO=$pseudo"
     PSEUDO="$pseudo"
-else
-    echo "PSEUDO $pseudo is not found."
 fi
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-17 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 12:34 [PATCH 0/2] A couple of fixes for oe-run-native Paul Eggleton
2018-07-17 12:34 ` [PATCH 1/2] oe-run-native: ensure arguments get quoted Paul Eggleton
2018-07-17 12:34 ` [PATCH 2/2] oe-find-native-sysroot: drop message if pseudo is not found Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.