[oe-commits] Laurentiu Palcu : populate_sdk_base: fix bashism
git at git.openembedded.org
git at git.openembedded.org
Mon Jul 29 12:19:11 UTC 2013
Module: openembedded-core.git
Branch: dylan
Commit: 135e681a3f3004a925b46b03cdada2fd86fc6c93
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=135e681a3f3004a925b46b03cdada2fd86fc6c93
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Thu Jul 4 12:53:55 2013 +0000
populate_sdk_base: fix bashism
Only the printf bash builtin knows about %q format option for escaping
spaces. The coreutils version doesn't. Unfortunately, neither dash nor
sh have a printf builtin. So, escape the spaces using sed.
[YOCTO #4811]
(From OE-Core master rev: 6ac06a65ce52d4c123da53f115c84cb0a98bc18f)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/populate_sdk_base.bbclass | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 31e848d..6378af9 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -181,7 +181,7 @@ else
echo "$target_sdk_dir"
fi
-eval target_sdk_dir=$(printf "%q" "$target_sdk_dir")
+eval target_sdk_dir=$(echo "$target_sdk_dir"|sed 's/ /\\ /g')
if [ -d "$target_sdk_dir" ]; then
target_sdk_dir=$(cd "$target_sdk_dir"; pwd)
else
More information about the Openembedded-commits
mailing list