Skip to contentSkip to conversation

package.bbclass: fetch PRIVATE_LIBS twice as we iterate twice

PATCH New Ross Burton 1 participant 1 message Mar 1, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package.bbclass: fetch PRIVATE_LIBS twice as we iterate twice

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.

---
 meta/classes/package.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/package.bbclass +3 -0
index e7e93a067a6..317c77585fc 100644
@@ -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
Signature · 1 line
2.11.0