]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package_manager: update default rpm config %_prefer_color
authorChangqing Li <changqing.li@windriver.com>
Fri, 8 May 2020 02:30:31 +0000 (10:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 May 2020 17:55:44 +0000 (18:55 +0100)
commit56fa74497393a10f751d01c600c1936761e00294
treebefa7e88a8993ee10ef1aa9e358ff2ddfe03f62e
parentf94511fe5c163de8fb34d00ff3ba995437c3922c
lib/oe/package_manager: update default rpm config %_prefer_color

* %_prefer_color is used by rpm to determine which color's ELF file
is preferred to be installed.

Here are file colors:
0 is unknown or other
1 is Elf32
2 is Elf64
4 is MIPS64 n32 (this color is added by oe-core's patch)

if default value set to 7, all colors are preferred color, always
be last-in-wins.

For this scenario, when we have 64bits python3 installed first,
then install 32bits python3 later, 64bits python3 will be overwrited,
and sys.path will point to /usr/lib, not /usr/lib64, this may cause
some python3 modules not work. so fixed by remove setting of default
value 7, and use default value 2 of rpm

* other distro like fedora also use the default %_prefer_color 2

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py