<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>23</bug_id>
          
          <creation_ts>2007-07-06 10:48:03 +0000</creation_ts>
          <short_desc>Architecture-dependent directory names aren&apos;t always quoted as a single arguments to shell commands</short_desc>
          <delta_ts>2010-12-21 06:07:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>high</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Hoosier">matt.hoosier</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1188</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Hoosier">matt.hoosier</who>
    <bug_when>2007-07-06 10:48:03 +0000</bug_when>
    <thetext>On PPC Macintosh, `uname -m` is &quot;Power Macintosh&quot;. It looks like directory paths
which rely on the output of uname to construct architecture-specific names,
aren&apos;t always getting quoted when passed to external shell commands. For
example, building gnu-config-native, we get a &quot;cp&quot; command that looks like this:

cp &quot;/Users/matt/poky/meta/packages/gnu-config/gnu-config/gnu-configize.in&quot; \
   &quot;/Users/matt/poky/build/tmp/work/Power&quot; \
   &quot;Macintosh-darwin/gnu-config-native-0.1+cvs20050701-r4/./&quot;

I had a look around in the BitBake sources, but didn&apos;t find any explicit uses of
&quot;cp&quot;, so I&apos;m not sure about which callsite does this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2007-07-06 14:06:16 +0000</bug_when>
    <thetext>Its from base.bbclass in the unpack task. I think I&apos;ve committed a fix for this
and a few others but it looks like we have many other call sites which aren&apos;t
quoting paths safely. I&apos;ll continue to work on this but it could take a while to
find them all. Note that I don&apos;t have a machine with a space in &quot;uname -m&quot; so
this is difficult for me to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1190</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Hoosier">matt.hoosier</who>
    <bug_when>2007-07-06 19:05:01 +0000</bug_when>
    <thetext>This may be a lost cause. Configure scripts created by autoconf often do things
like:

(cd $srcdir &amp;&amp; test -r ./$ac_unique_file) 2&gt;/dev/null ||
  { echo &quot;$as_me: error: sources are in $srcdir, but \`cd $srcdir&apos; does not work
&quot;&gt;72 }

I don&apos;t think that will ever work unless $srcdir is double-quoted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1192</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2007-07-07 10:02:19 +0000</bug_when>
    <thetext>I think the current approach possibly is a lost cause. I&apos;ve had to revert the
change to base.bbclass I made since things like &apos;cp /someplace/*.m4
/someotherplace&apos; don&apos;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/&quot;Power Macintosh-darwin&quot;/ 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&apos;re ones Poky creates although
that might be quite an involved job.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1659</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2007-08-29 22:45:29 +0000</bug_when>
    <thetext>This is more of a can&apos;t fix rather than won&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton - Disabled">ross</who>
    <bug_when>2007-10-30 10:35:41 +0000</bug_when>
    <thetext>Changing OS to OS X 10.x</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>