<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 9:19 AM, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb adM"><div class="h5">On Thu, Nov 15, 2012 at 08:25:20AM -0700, Chris Larson wrote:<br>
&gt; On Thu, Nov 15, 2012 at 12:30 AM, Martin Jansa &lt;<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; * it&#39;s not very universal, but works with default oe-core setup and<br>
&gt; &gt;   shows basic HOW-TO. It can be improved later.<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt;  V2: added .pyo to WHITELIST<br>
&gt; &gt;      shorter filenames<br>
&gt; &gt;      TMPDIR<br>
&gt; &gt;      added duplicates but not shown<br>
&gt; &gt;<br>
&gt; &gt;  V3: use also populate-sysroot.MACHINE, manifest name for populate-sysroot<br>
&gt; &gt;      was changed in febeaf3d1b8917b660c7279b008d8b03337568e9<br>
&gt; &gt;<br>
&gt; &gt;  V4: dropped eglibc-initial work around, it was fixed in oe-core<br>
&gt; &gt;<br>
&gt; &gt;  scripts/sstate-sysroot-cruft.sh | 34 ++++++++++++++++++++++++++++++++++<br>
&gt; &gt;  1 file changed, 34 insertions(+)<br>
&gt; &gt;  create mode 100755 scripts/sstate-sysroot-cruft.sh<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/scripts/sstate-sysroot-cruft.sh<br>
&gt; &gt; b/scripts/sstate-sysroot-cruft.sh<br>
&gt; &gt; new file mode 100755<br>
&gt; &gt; index 0000000..ca23dcf<br>
&gt; &gt; --- /dev/null<br>
&gt; &gt; +++ b/scripts/sstate-sysroot-cruft.sh<br>
&gt; &gt; @@ -0,0 +1,34 @@<br>
&gt; &gt; +#!/bin/sh<br>
&gt; &gt; +<br>
&gt; &gt; +# Used to find files installed in sysroot which are not tracked by sstate<br>
&gt; &gt; manifest<br>
&gt; &gt; +# Update BASE<br>
&gt; &gt; +<br>
&gt; &gt; +BASE=&quot;/OE/oe-core&quot;<br>
&gt; &gt;<br>
&gt;<br>
&gt; This seems interesting, but I have a few comments/concerns.<br>
&gt;<br>
&gt; 1) don&#39;t hardcode BASE, figure out the path relative to the script&#39;s<br>
&gt; location, e.g. BASE=&quot;$(cd $(dirname $(dirname $0)) &amp;&amp; pwd)&quot;<br>
&gt; 2) output files shouldn&#39;t go into oe-core directly, as oe-core isn&#39;t<br>
&gt; guaranteed to be writable, and it&#39;s more common to expect output from a<br>
&gt; script like this to go relative to the current directory, or a temp<br>
&gt; directory<br>
&gt; 3) extract TMPDIR from bitbake -e, rather than hardcoding that, as that<br>
&gt; breaks for any distros or users which separate their tmpdirs by distro, or<br>
&gt; set TCLIBCAPPEND = &quot;&quot;<br>
<br>
</div></div>Ah in this case BASE is not directory with oe-core layer but one above.<br></blockquote><div><br></div><div>Still trivial to determine relative to the script&#39;s location. Adding an extra call to dirname, or an extra &#39;/..&#39; isn&#39;t particularly tough.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I didn&#39;t want to use bitbake -e, so that this script can be executed<br>
when some other bitbake process is running.<br></blockquote><div><br></div><div>I don&#39;t see having to hardcode assumptions about the environment as a net win, personally. At least make them arguments, or add an argument to optionally use bitbake -e, or let it take vars from the environment.</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As said it&#39;s not really universal (I wrote it just to confirm something<br>
and then shared it to find if someone else finds it also usefull to<br>
improve it).<br></blockquote><div><br></div><div>If it can&#39;t be used in a wide variety of circumstances, I&#39;d argue against its inclusion in oe-core until such time that it&#39;s ready. The subject of this thread didn&#39;t include &quot;RFC&#39; ;)</div>

</div>-- <br>Christopher Larson<br>
</div>