From patchwork Thu Jun 28 08:13:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: package.bbclass: Create symlinks for packages with different packaged name Date: Thu, 28 Jun 2012 08:13:06 -0000 From: Andrei Gherzan X-Patchwork-Id: 30785 Message-Id: <1340871186-20545-1-git-send-email-andrei@gherzan.ro> To: openembedded-core@lists.openembedded.org 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 --- 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: