diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-07-23 22:42:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-26 14:39:48 +0100 |
commit | 76ef414b8a017557cf5f3ad7b3ca8a324f7aad29 (patch) | |
tree | 358137e68078870fa04cb042af6ea60295ab1f1f /meta/classes/license.bbclass | |
parent | 72a7049526ee107005bd39c7bdd814ed71345829 (diff) | |
download | openembedded-core-76ef414b8a017557cf5f3ad7b3ca8a324f7aad29.tar.gz openembedded-core-76ef414b8a017557cf5f3ad7b3ca8a324f7aad29.tar.bz2 openembedded-core-76ef414b8a017557cf5f3ad7b3ca8a324f7aad29.zip |
package.bbclass: Create symlinks for packages with different packaged name
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.
Create a symlink to the pkgdata file in a runtime-reverse directory so
that these reverse lookups are possible.
Fixes [YOCTO #2638].
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r-- | meta/classes/license.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index a2721ab0af..231b4a3ad1 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -86,7 +86,7 @@ license_create_manifest() { # list of installed packages is broken for deb for pkg in ${INSTALLED_PKGS}; do # not the best way to do this but licenses are not arch dependant iirc - filename=`ls ${TMPDIR}/pkgdata/*/runtime/${pkg}| head -1` + filename=`ls ${TMPDIR}/pkgdata/*/runtime-reverse/${pkg}| head -1` pkged_pn="$(sed -n 's/^PN: //p' ${filename})" pkged_lic="$(sed -n '/^LICENSE: /{ s/^LICENSE: //; s/[+|&()*]/ /g; s/ */ /g; p }' ${filename})" pkged_pv="$(sed -n 's/^PV: //p' ${filename})" |