* [PATCH] package.bbclass: quote pathname given to objdump
@ 2012-01-12 16:30 Enrico Scholz
2012-01-17 19:38 ` Saul Wold
0 siblings, 1 reply; 2+ messages in thread
From: Enrico Scholz @ 2012-01-12 16:30 UTC (permalink / raw)
To: openembedded-core; +Cc: Enrico Scholz
Packaging will fail with executable files containing spaces in their
names. Patch quotes the parameter passed to 'objdump'.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
---
meta/classes/package.bbclass | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index f8f0a12..1088470 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1205,7 +1205,7 @@ SHLIBSDIR = "${STAGING_DIR_HOST}/shlibs"
SHLIBSWORKDIR = "${WORKDIR}/shlibs"
python package_do_shlibs() {
- import re
+ import re, pipes
exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', 0)
if exclude_shlibs:
@@ -1234,7 +1234,7 @@ python package_do_shlibs() {
lf = bb.utils.lockfile(bb.data.expand("${PACKAGELOCK}", d))
def linux_so(root, path, file):
- cmd = d.getVar('OBJDUMP', True) + " -p " + os.path.join(root, file) + " 2>/dev/null"
+ cmd = d.getVar('OBJDUMP', True) + " -p " + pipes.quote(os.path.join(root, file)) + " 2>/dev/null"
cmd = "PATH=\"%s\" %s" % (d.getVar('PATH', True), cmd)
fd = os.popen(cmd)
lines = fd.readlines()
--
1.7.7.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] package.bbclass: quote pathname given to objdump
2012-01-12 16:30 [PATCH] package.bbclass: quote pathname given to objdump Enrico Scholz
@ 2012-01-17 19:38 ` Saul Wold
0 siblings, 0 replies; 2+ messages in thread
From: Saul Wold @ 2012-01-17 19:38 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Enrico Scholz
On 01/12/2012 08:30 AM, Enrico Scholz wrote:
> Packaging will fail with executable files containing spaces in their
> names. Patch quotes the parameter passed to 'objdump'.
>
> Signed-off-by: Enrico Scholz<enrico.scholz@sigma-chemnitz.de>
> ---
> meta/classes/package.bbclass | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index f8f0a12..1088470 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -1205,7 +1205,7 @@ SHLIBSDIR = "${STAGING_DIR_HOST}/shlibs"
> SHLIBSWORKDIR = "${WORKDIR}/shlibs"
>
> python package_do_shlibs() {
> - import re
> + import re, pipes
>
> exclude_shlibs = d.getVar('EXCLUDE_FROM_SHLIBS', 0)
> if exclude_shlibs:
> @@ -1234,7 +1234,7 @@ python package_do_shlibs() {
> lf = bb.utils.lockfile(bb.data.expand("${PACKAGELOCK}", d))
>
> def linux_so(root, path, file):
> - cmd = d.getVar('OBJDUMP', True) + " -p " + os.path.join(root, file) + " 2>/dev/null"
> + cmd = d.getVar('OBJDUMP', True) + " -p " + pipes.quote(os.path.join(root, file)) + " 2>/dev/null"
> cmd = "PATH=\"%s\" %s" % (d.getVar('PATH', True), cmd)
> fd = os.popen(cmd)
> lines = fd.readlines()
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-17 19:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 16:30 [PATCH] package.bbclass: quote pathname given to objdump Enrico Scholz
2012-01-17 19:38 ` Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox