| Summary: | Architecture-dependent directory names aren't always quoted as a single arguments to shell commands | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Matt Hoosier <matt.hoosier> |
| Component: | meta-yocto | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | high | CC: | poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | ppc | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Matt Hoosier
2007-07-06 10:48:03 UTC
Its from base.bbclass in the unpack task. I think I've committed a fix for this and a few others but it looks like we have many other call sites which aren't quoting paths safely. I'll continue to work on this but it could take a while to find them all. Note that I don't have a machine with a space in "uname -m" so this is difficult for me to test. This may be a lost cause. Configure scripts created by autoconf often do things
like:
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work
">72 }
I don't think that will ever work unless $srcdir is double-quoted.
I think the current approach possibly is a lost cause. I've had to revert the change to base.bbclass I made since things like 'cp /someplace/*.m4 /someotherplace' don't work if you add in quotes since it disables the shell expansion. I was thinking we need to inject quotes at the point the bad paths in question enter Poky so that things like build/tmp/work/Power Macintosh-darwin/ become build/tmp/work/"Power Macintosh-darwin"/ to avoid the above problem. That still leaves the problem of configure and probably other tools failing to cope with these kind of paths though. It might be possible to substitute the space out the paths causing problems since they're ones Poky creates although that might be quite an involved job. This is more of a can't fix rather than won't fix since until autotools and other utils accept spaces in its paths, there is no point in changing bitbake and the metadata as previously mentioned. Changing OS to OS X 10.x |