<div class="gmail_quote">On Thu, Jul 19, 2012 at 5:43 PM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></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>
> While generating license.manifest package information is searched in:<br>
> filename=`ls ${TMPDIR}/pkgdata/*/runtime/${pkg}| head -1`<br>
> This is ok as long as package name is the same as the package name<br>
> after packaging.<br>
> For example dbus is packaged as dbus-1. So, searching<br>
> ls ${TMPDIR}/pkgdata/*/runtime/dbus-1 will fail because there is no file<br>
> with this package name.<br>
><br>
> Signed-off-by: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro">andrei@gherzan.ro</a>><br>
> ---<br>
> meta/classes/package.bbclass | 5 +++++<br>
> 1 file changed, 5 insertions(+)<br>
><br>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass<br>
> index 10c2f0a..460b351 100644<br>
> --- a/meta/classes/package.bbclass<br>
> +++ b/meta/classes/package.bbclass<br>
> @@ -1120,6 +1120,11 @@ python emit_pkgdata() {<br>
> sf.write('%s_%s: %s\n' % ('PKGSIZE', pkg, get_directory_size(pkgdest + "/%s" % pkg)))<br>
> sf.close()<br>
><br>
> + # Symlinks needed while generating manifest<br>
> + pkgval = d.getVar('PKG_%s' % (pkg), True)<br>
> + if pkgval != pkg:<br>
> + subdata_sym = pkgdatadir + "/runtime/%s" % pkgval<br>
> + os.symlink(pkg,subdata_sym)<br>
><br>
> allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True)<br>
> if not allow_empty:<br>
<br>
I think this is the right idea, I'm just worried about having things in<br>
the same directory. Could we do this but create the symlinks in a<br>
"runtime-renamed" 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>