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:40:47 +0100 |
commit | 5334a93d261598757ccce48a78b8ba2b7e5806f3 (patch) | |
tree | 990b40c5fa0c2aac869eeaf85cc2880ef211a403 /meta/classes/package.bbclass | |
parent | dcadeda69ee14efdc49059906866587f619e17cf (diff) | |
download | poky-5334a93d261598757ccce48a78b8ba2b7e5806f3.tar.gz |
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].
(From OE-Core rev: 76ef414b8a017557cf5f3ad7b3ca8a324f7aad29)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index fc834242da..ea199d33bd 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1124,6 +1124,10 @@ python emit_pkgdata() { | |||
1124 | sf.write('%s_%s: %s\n' % ('PKGSIZE', pkg, get_directory_size(pkgdest + "/%s" % pkg))) | 1124 | sf.write('%s_%s: %s\n' % ('PKGSIZE', pkg, get_directory_size(pkgdest + "/%s" % pkg))) |
1125 | sf.close() | 1125 | sf.close() |
1126 | 1126 | ||
1127 | # Symlinks needed for reverse lookups (from the final package name) | ||
1128 | pkgval = d.getVar('PKG_%s' % (pkg), True) | ||
1129 | subdata_sym = pkgdatadir + "/runtime-reverse/%s" % pkgval | ||
1130 | oe.path.symlink("../runtime/%s" % pkg, subdata_sym, True) | ||
1127 | 1131 | ||
1128 | allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True) | 1132 | allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg, True) |
1129 | if not allow_empty: | 1133 | if not allow_empty: |
@@ -1137,7 +1141,7 @@ python emit_pkgdata() { | |||
1137 | 1141 | ||
1138 | bb.utils.unlockfile(lf) | 1142 | bb.utils.unlockfile(lf) |
1139 | } | 1143 | } |
1140 | emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime" | 1144 | emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime ${PKGDESTWORK}/runtime-reverse" |
1141 | 1145 | ||
1142 | ldconfig_postinst_fragment() { | 1146 | ldconfig_postinst_fragment() { |
1143 | if [ x"$D" = "x" ]; then | 1147 | if [ x"$D" = "x" ]; then |