diff mbox series

package.bbclass: fetch PRIVATE_LIBS twice as we iterate twice

Message ID 20180301122946.7388-1-ross.burton@intel.com
State Accepted
Commit 8c90c0081c38b33c99655f806cbe668600c170cc
Headers show
Series package.bbclass: fetch PRIVATE_LIBS twice as we iterate twice | expand

Commit Message

Ross Burton March 1, 2018, 12:29 p.m. UTC
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>

---
 meta/classes/package.bbclass | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.11.0

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e7e93a067a6..317c77585fc 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -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