<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 11, 2016 at 8:06 AM, Mark Hatle <span dir="ltr">&lt;<a href="mailto:mark.hatle@windriver.com" target="_blank">mark.hatle@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 1/11/16 8:55 AM, Trevor Woerner wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 01/11/16 00:11, Robert Yang wrote:<br>
&gt;&gt; Avoid potential build path in output files.<br>
&gt;&gt;<br>
&gt;&gt; [YOCTO #8894]<br>
&gt;&gt;<br>
&gt;&gt; Signed-off-by: Robert Yang &lt;<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>&gt;<br>
&gt;&gt; ---<br>
&gt;&gt;  meta/recipes-core/glibc/glibc-initial.inc |    2 +-<br>
&gt;&gt;  1 file changed, 1 insertion(+), 1 deletion(-)<br>
&gt;&gt;<br>
&gt;&gt; diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc<br>
&gt;&gt; index 8e81f09..cb2f8dd 100644<br>
&gt;&gt; --- a/meta/recipes-core/glibc/glibc-initial.inc<br>
&gt;&gt; +++ b/meta/recipes-core/glibc/glibc-initial.inc<br>
&gt;&gt; @@ -11,7 +11,7 @@ TOOLCHAIN_OPTIONS = &quot; --sysroot=${STAGING_DIR_TCBOOTSTRAP}&quot;<br>
&gt;&gt;  do_configure () {<br>
&gt;&gt;      (cd ${S} &amp;&amp; gnu-configize) || die &quot;failure in running gnu-configize&quot;<br>
&gt;&gt;      find ${S} -name &quot;configure&quot; | xargs touch<br>
&gt;&gt; -    ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \<br>
&gt;&gt; +    ../git/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \<br>
&gt;<br>
&gt; Although I haven&#39;t tested it, this _looks_ like it might fail quite<br>
&gt; readily. I&#39;m sure there are some recipes that play tricks with ${S}, and<br>
&gt; what about recipes that don&#39;t pull their sources from git?<br>
&gt;<br>
&gt; Maybe something like: (cd ${S} &amp;&amp; ./configure ...) would be better?<br>
<br>
</span>That won&#39;t work since it&#39;ll run configure in the S directory.<br>
<br>
IF we need to use relative paths here, we need to calculate the relative path<br>
from B to S and use that.  It looks like patch 2/2 already does something like<br>
this using the python..  we can probably do the same.  (I don&#39;t know any reason,<br>
at least for glibc, that all of the items won&#39;t be in the same &quot;WORKDIR&quot;.  So it<br>
would be relative within the WORKDIR, which SHOULD be fine.)</blockquote></div><br></div><div class="gmail_extra">Unless we want to specifically not support externalsrc (and therefore, devtool modify -x) for a particular recipe, we should probably not make the assumption that S and B are relative to WORKDIR :)<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>