[OE-core] [PATCH] package.bbclass: Changed PACKAGESPLITFUNCS execution order

Oleksandr Poznyak oleksandr.poznyak at gmail.com
Tue Apr 18 08:53:30 UTC 2017


Fixes [YOCTO #11343]

I've added runtime PACKAGESPLITFUNCS value modification in
the context of do_package() function so that
populate_packages_updatealternatives function is allways
executed before populate_packages_updatercd

Signed-off-by: Oleksandr Poznyak <oleksandr.poznyak at gmail.com>
---
 meta/classes/package.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index cc466bd..149a185 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -2110,6 +2110,11 @@ python do_package () {
 
     cpath = oe.cachedpath.CachedPath()
 
+    # modify PACKAGESPLITFUNCS order
+    if "populate_packages_updatealternatives" in d.getVar("PACKAGESPLITFUNCS", True):
+        d.setVar("PACKAGESPLITFUNCS", "populate_packages_updatealternatives %s" \
+        % d.getVar("PACKAGESPLITFUNCS", True).replace("populate_packages_updatealternatives", ""))
+
     for f in (d.getVar('PACKAGESPLITFUNCS') or '').split():
         bb.build.exec_func(f, d)
 
-- 
2.1.4




More information about the Openembedded-core mailing list