[oe-commits] [openembedded-core] 04/45: lib/oe/package_manager.py: put the sdk_provides_dummy_target upfront

git at git.openembedded.org git at git.openembedded.org
Fri Jan 10 11:02:51 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 9f79b58d0965e61a7abe7812ba3b74fc6f626155
Author: Alexander Kanavin <alex.kanavin at gmail.com>
AuthorDate: Wed Jan 8 14:27:48 2020 +0100

    lib/oe/package_manager.py: put the sdk_provides_dummy_target upfront
    
    Otherwise, the package utilizing this architecure does not get
    properly prioritized by rpm/dnf. This isn't seen single-lib builds
    (as the architecture ends up upfront anyway), but is triggered in
    multulib where the architecture may end up in the middle of the list
    due to multilib expansion/trimming duplicates.
    
    Signed-off-by: Alexander Kanavin <alex.kanavin at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/package_manager.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 4ff19cf..e15e3c4 100644
--- a/meta/lib/oe/package_manager.py
+++ b/meta/lib/oe/package_manager.py
@@ -768,6 +768,8 @@ class RpmPM(PackageManager):
         # This prevents accidental matching against libsolv's built-in policies
         if len(archs) <= 1:
             archs = archs + ["bogusarch"]
+        # This architecture needs to be upfront so that packages using it are properly prioritized
+        archs = ["sdk_provides_dummy_target"] + archs
         confdir = "%s/%s" %(self.target_rootfs, "etc/dnf/vars/")
         bb.utils.mkdirhier(confdir)
         open(confdir + "arch", 'w').write(":".join(archs))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list