]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: fetch PRIVATE_LIBS twice as we iterate twice
authorRoss Burton <ross.burton@intel.com>
Wed, 28 Feb 2018 23:06:30 +0000 (23:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 Mar 2018 22:16:46 +0000 (22:16 +0000)
The shlibs detection/handling iterates the package list twice, but PRIVATE_LIBS
is only fetched in the first loop which means the second loop only considers the
value set.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index e7e93a067a6045d840330c27520d57aebd08782a..317c77585fca0304707df3d0a91f18477379ca48 100644 (file)
@@ -1773,6 +1773,9 @@ python package_do_shlibs() {
     for pkg in packages.split():
         bb.debug(2, "calculating shlib requirements for %s" % pkg)
 
+        private_libs = d.getVar('PRIVATE_LIBS_' + pkg) or d.getVar('PRIVATE_LIBS') or ""
+        private_libs = private_libs.split()
+
         deps = list()
         for n in needed[pkg]:
             # if n is in private libraries, don't try to search provider for it