]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Fix support for private libs
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 8 Jan 2015 17:11:18 +0000 (18:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Jan 2015 22:59:45 +0000 (22:59 +0000)
* n is a tuple since this commit:
  commit d3aa7668a9f001044d0a0f1ba2de425a36056102
  Author: Richard Purdie <richard.purdie@linuxfoundation.org>
  Date:   Mon Jul 7 18:41:23 2014 +0100
  Subject package.bbclass: Improve shlibs needed data structure

  since then 'n in private_libs' was always false and private libs
  were always processed
* this is bad when we have libfoo in private libs, but also some package
  providing libfoo, that way we ship own libfoo.so, but together with
  runtime dependency on package providing libfoo

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/package.bbclass

index fc501fcdea0f4f09b018a3bf460417071027670d..31c9e080edfda124e2680b6130ecfd93a0d1749f 100644 (file)
@@ -1574,7 +1574,7 @@ python package_do_shlibs() {
             # /opt/abc/lib/libfoo.so.1 and contains /usr/bin/abc depending on system library libfoo.so.1
             # but skipping it is still better alternative than providing own
             # version and then adding runtime dependency for the same system library
-            if private_libs and n in private_libs:
+            if private_libs and n[0] in private_libs:
                 bb.debug(2, '%s: Dependency %s covered by PRIVATE_LIBS' % (pkg, n[0]))
                 continue
             if n[0] in shlib_provider.keys():