* [PATCH 0/1] populate_sdk_base: fix bashism
@ 2013-07-04 12:53 Laurentiu Palcu
2013-07-04 12:53 ` [PATCH 1/1] " Laurentiu Palcu
0 siblings, 1 reply; 2+ messages in thread
From: Laurentiu Palcu @ 2013-07-04 12:53 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 8a186a6b3853fc1a7dcf342d421c8926c38949c9:
bitbake: hob: save button from settings called a nonexisting method (2013-07-03 08:13:35 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib lpalcu/b4811_printf_issue_in_sh
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/b4811_printf_issue_in_sh
Laurentiu Palcu (1):
populate_sdk_base: fix bashism
meta/classes/populate_sdk_base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] populate_sdk_base: fix bashism
2013-07-04 12:53 [PATCH 0/1] populate_sdk_base: fix bashism Laurentiu Palcu
@ 2013-07-04 12:53 ` Laurentiu Palcu
0 siblings, 0 replies; 2+ messages in thread
From: Laurentiu Palcu @ 2013-07-04 12:53 UTC (permalink / raw)
To: openembedded-core
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]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
meta/classes/populate_sdk_base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-04 12:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-04 12:53 [PATCH 0/1] populate_sdk_base: fix bashism Laurentiu Palcu
2013-07-04 12:53 ` [PATCH 1/1] " Laurentiu Palcu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox