All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] package.bbclass: Changed PACKAGESPLITFUNCS execution order
@ 2017-04-18  8:53 Oleksandr Poznyak
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Poznyak @ 2017-04-18  8:53 UTC (permalink / raw)
  To: yocto, openembedded-core

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@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] package.bbclass: Changed PACKAGESPLITFUNCS execution order
@ 2017-04-13 11:26 Oleksandr Poznyak
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksandr Poznyak @ 2017-04-13 11:26 UTC (permalink / raw)
  To: yocto, openembedded-core

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@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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-18  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18  8:53 [PATCH] package.bbclass: Changed PACKAGESPLITFUNCS execution order Oleksandr Poznyak
  -- strict thread matches above, loose matches on Subject: below --
2017-04-13 11:26 Oleksandr Poznyak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.