<div class="gmail_quote">On Thu, Jul 19, 2012 at 5:43 PM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Thu, 2012-06-28 at 11:13 +0300, Andrei Gherzan wrote:<br>
&gt; While generating license.manifest package information is searched in:<br>
&gt; filename=`ls ${TMPDIR}/pkgdata/*/runtime/${pkg}| head -1`<br>
&gt; This is ok as long as package name is the same as the package name<br>
&gt; after packaging.<br>
&gt; For example dbus is packaged as dbus-1. So, searching<br>
&gt; ls ${TMPDIR}/pkgdata/*/runtime/dbus-1 will fail because there is no file<br>
&gt; with this package name.<br>
&gt;<br>
&gt; Signed-off-by: Andrei Gherzan &lt;<a href="mailto:andrei@gherzan.ro">andrei@gherzan.ro</a>&gt;<br>
&gt; ---<br>
&gt;  meta/classes/package.bbclass |    5 +++++<br>
&gt;  1 file changed, 5 insertions(+)<br>
&gt;<br>
&gt; diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass<br>
&gt; index 10c2f0a..460b351 100644<br>
&gt; --- a/meta/classes/package.bbclass<br>
&gt; +++ b/meta/classes/package.bbclass<br>
&gt; @@ -1120,6 +1120,11 @@ python emit_pkgdata() {<br>
&gt;               sf.write(&#39;%s_%s: %s\n&#39; % (&#39;PKGSIZE&#39;, pkg, get_directory_size(pkgdest + &quot;/%s&quot; % pkg)))<br>
&gt;               sf.close()<br>
&gt;<br>
&gt; +             # Symlinks needed while generating manifest<br>
&gt; +             pkgval = d.getVar(&#39;PKG_%s&#39; % (pkg), True)<br>
&gt; +             if pkgval != pkg:<br>
&gt; +                     subdata_sym = pkgdatadir + &quot;/runtime/%s&quot; % pkgval<br>
&gt; +                     os.symlink(pkg,subdata_sym)<br>
&gt;<br>
&gt;               allow_empty = d.getVar(&#39;ALLOW_EMPTY_%s&#39; % pkg, True)<br>
&gt;               if not allow_empty:<br>
<br>
I think this is the right idea, I&#39;m just worried about having things in<br>
the same directory. Could we do this but create the symlinks in a<br>
&quot;runtime-renamed&quot; directory instead, then alter licence.bbclass to look<br>
there?<br>
<br>
Cheers,<br>
<br>
Richard<br>
<br>
<br></blockquote><div>Paul reworked this.</div><div><a href="http://patchwork.openembedded.org/patch/32871/">http://patchwork.openembedded.org/patch/32871/</a></div><div><br></div><div>Thank you,</div><div>ag</div></div>