* [PATCH] package.bbclass: Create symlinks for packages with different packaged name
@ 2012-06-28 8:13 Andrei Gherzan
2012-07-19 14:43 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Andrei Gherzan @ 2012-06-28 8:13 UTC (permalink / raw)
To: openembedded-core
While generating license.manifest package information is searched in:
filename=`ls ${TMPDIR}/pkgdata/*/runtime/${pkg}| head -1`
This is ok as long as package name is the same as the package name
after packaging.
For example dbus is packaged as dbus-1. So, searching
ls ${TMPDIR}/pkgdata/*/runtime/dbus-1 will fail because there is no file
with this package name.
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
meta/classes/package.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 10c2f0a..460b351 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1120,6 +1120,11 @@ python emit_pkgdata() {
sf.write('%s_%s: %s\n' % ('PKGSIZE', pkg, get_directory_size(pkgdest + "/%s" % pkg)))
sf.close()
+ # Symlinks needed while generating manifest
+ pkgval = d.getVar('PKG_%s' % (pkg), True)
+ if pkgval != pkg:
+ subdata_sym = pkgdatadir + "/runtime/%s" % pkgval
+ os.symlink(pkg,subdata_sym)
allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True)
if not allow_empty:
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] package.bbclass: Create symlinks for packages with different packaged name
2012-06-28 8:13 [PATCH] package.bbclass: Create symlinks for packages with different packaged name Andrei Gherzan
@ 2012-07-19 14:43 ` Richard Purdie
2012-07-25 18:15 ` Andrei Gherzan
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2012-07-19 14:43 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Thu, 2012-06-28 at 11:13 +0300, Andrei Gherzan wrote:
> While generating license.manifest package information is searched in:
> filename=`ls ${TMPDIR}/pkgdata/*/runtime/${pkg}| head -1`
> This is ok as long as package name is the same as the package name
> after packaging.
> For example dbus is packaged as dbus-1. So, searching
> ls ${TMPDIR}/pkgdata/*/runtime/dbus-1 will fail because there is no file
> with this package name.
>
> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> ---
> meta/classes/package.bbclass | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 10c2f0a..460b351 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -1120,6 +1120,11 @@ python emit_pkgdata() {
> sf.write('%s_%s: %s\n' % ('PKGSIZE', pkg, get_directory_size(pkgdest + "/%s" % pkg)))
> sf.close()
>
> + # Symlinks needed while generating manifest
> + pkgval = d.getVar('PKG_%s' % (pkg), True)
> + if pkgval != pkg:
> + subdata_sym = pkgdatadir + "/runtime/%s" % pkgval
> + os.symlink(pkg,subdata_sym)
>
> allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True)
> if not allow_empty:
I think this is the right idea, I'm just worried about having things in
the same directory. Could we do this but create the symlinks in a
"runtime-renamed" directory instead, then alter licence.bbclass to look
there?
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] package.bbclass: Create symlinks for packages with different packaged name
2012-07-19 14:43 ` Richard Purdie
@ 2012-07-25 18:15 ` Andrei Gherzan
0 siblings, 0 replies; 3+ messages in thread
From: Andrei Gherzan @ 2012-07-25 18:15 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1867 bytes --]
On Thu, Jul 19, 2012 at 5:43 PM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Thu, 2012-06-28 at 11:13 +0300, Andrei Gherzan wrote:
> > While generating license.manifest package information is searched in:
> > filename=`ls ${TMPDIR}/pkgdata/*/runtime/${pkg}| head -1`
> > This is ok as long as package name is the same as the package name
> > after packaging.
> > For example dbus is packaged as dbus-1. So, searching
> > ls ${TMPDIR}/pkgdata/*/runtime/dbus-1 will fail because there is no file
> > with this package name.
> >
> > Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> > ---
> > meta/classes/package.bbclass | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> > index 10c2f0a..460b351 100644
> > --- a/meta/classes/package.bbclass
> > +++ b/meta/classes/package.bbclass
> > @@ -1120,6 +1120,11 @@ python emit_pkgdata() {
> > sf.write('%s_%s: %s\n' % ('PKGSIZE', pkg,
> get_directory_size(pkgdest + "/%s" % pkg)))
> > sf.close()
> >
> > + # Symlinks needed while generating manifest
> > + pkgval = d.getVar('PKG_%s' % (pkg), True)
> > + if pkgval != pkg:
> > + subdata_sym = pkgdatadir + "/runtime/%s" % pkgval
> > + os.symlink(pkg,subdata_sym)
> >
> > allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True)
> > if not allow_empty:
>
> I think this is the right idea, I'm just worried about having things in
> the same directory. Could we do this but create the symlinks in a
> "runtime-renamed" directory instead, then alter licence.bbclass to look
> there?
>
> Cheers,
>
> Richard
>
>
> Paul reworked this.
http://patchwork.openembedded.org/patch/32871/
Thank you,
ag
[-- Attachment #2: Type: text/html, Size: 2508 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-25 18:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-28 8:13 [PATCH] package.bbclass: Create symlinks for packages with different packaged name Andrei Gherzan
2012-07-19 14:43 ` Richard Purdie
2012-07-25 18:15 ` Andrei Gherzan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox