From: "Changqing Li" <changqing.li@windriver.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] lib/oe/package_manager: update default rpm config %_prefer_color
Date: Wed, 6 May 2020 16:21:21 +0800 [thread overview]
Message-ID: <15e807f1-a739-4c51-c69e-7bc412f127a0@windriver.com> (raw)
In-Reply-To: <CANNYZj8KHOLPO6XeDrUJQMQ3+PmtFX2qteV-9z3z5S4ye-e3Tg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2412 bytes --]
Hi, Alex
Thanks. I will check this failure.
Changqing
On 5/6/20 4:09 PM, Alexander Kanavin wrote:
> There was a response from RP:
>
> This causes a failure on the autobuilder:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/1867
>
> Alex
>
> On Wed, 6 May 2020 at 04:39, Changqing Li <changqing.li@windriver.com
> <mailto:changqing.li@windriver.com>> wrote:
>
> ping
>
> On 4/30/20 12:10 PM, Changqing Li wrote:
>> From: Changqing Li<changqing.li@windriver.com> <mailto:changqing.li@windriver.com>
>>
>> * %_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
>> 3 is (contains) both
>>
>> if default value set to 7, both 32 and 64 bits's ELF will be installed,
>> in this condition, when we have 64bits python3 installed first,
>> then install lib32-python3 later, 64bits python3 will be overwrited,
>>
>> file /usr/bin/python3 will be 32bits ELF
>> 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> <mailto:changqing.li@windriver.com>
>> ---
>> meta/lib/oe/package_manager.py | 2 --
>> 1 file changed, 2 deletions(-)
>>
>> diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
>> index b066041..c055d2b 100644
>> --- a/meta/lib/oe/package_manager.py
>> +++ b/meta/lib/oe/package_manager.py
>> @@ -805,8 +805,6 @@ class RpmPM(PackageManager):
>> open(platformconfdir + "macros", 'w').write("%_transaction_color 7\n")
>> if self.d.getVar('RPM_PREFER_ELF_ARCH'):
>> open(platformconfdir + "macros", 'a').write("%%_prefer_color %s" % (self.d.getVar('RPM_PREFER_ELF_ARCH')))
>> - else:
>> - open(platformconfdir + "macros", 'a').write("%_prefer_color 7")
>>
>> if self.d.getVar('RPM_SIGN_PACKAGES') == '1':
>> signer = get_signer(self.d, self.d.getVar('RPM_GPG_BACKEND'))
>>
>
>
[-- Attachment #2: Type: text/html, Size: 3685 bytes --]
next prev parent reply other threads:[~2020-05-06 8:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <160A7D8AF7F6BE8C.17748@lists.openembedded.org>
2020-05-06 2:39 ` [OE-core] [PATCH] lib/oe/package_manager: update default rpm config %_prefer_color Changqing Li
2020-05-06 8:09 ` Alexander Kanavin
2020-05-06 8:21 ` Changqing Li [this message]
2020-04-30 4:10 Changqing Li
2020-05-03 8:21 ` [OE-core] " Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15e807f1-a739-4c51-c69e-7bc412f127a0@windriver.com \
--to=changqing.li@windriver.com \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox