summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-15 05:03:01 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-15 05:03:01 +0000
commitb3f0aa20d4e63ee1af3f6ba7e3691b8e7de19ad8 (patch)
treee9370c9330812156446e6444bd76c3ef2aea2c4d /classes
parent64402b881bef4b626bff9543c9dbc50c1bc7e524 (diff)
package.bbclass: Add ASSUME_SHLIBS, way to specify shlib dependencies for ASSUME_PROVIDED.
* List of <shlib_file_name>:<package>[_<version>] mappings. This info will be appended to one inferred by automatic shlib tracking code. So, it would be possible to have correct package dependencies even for libraries in ASSUME_PROVIDED.
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 67aeb33a13..37b9d83d97 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -694,6 +694,16 @@ python package_do_shlibs() {
for l in lines:
shlib_provider[l.rstrip()] = (dep_pkg, lib_ver)
+ assumed_libs = bb.data.getVar('ASSUME_SHLIBS', d, 1)
+ if assumed_libs:
+ for e in assumed_libs.split():
+ l, dep_pkg = e.split(":")
+ lib_ver = None
+ dep_pkg = dep_pkg.rsplit("_", 1)
+ if len(dep_pkg) == 2:
+ lib_ver = dep_pkg[1]
+ dep_pkg = dep_pkg[0]
+ shlib_provider[l] = (dep_pkg, lib_ver)
for pkg in packages.split():
bb.debug(2, "calculating shlib requirements for %s" % pkg)