public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Changqing Li" <changqing.li@windriver.com>
To: 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 10:39:00 +0800	[thread overview]
Message-ID: <c3e5a4dc-c4a7-d398-4821-085777710c74@windriver.com> (raw)
In-Reply-To: <160A7D8AF7F6BE8C.17748@lists.openembedded.org>

[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]

ping

On 4/30/20 12:10 PM, Changqing Li wrote:
> From: Changqing Li <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>
> ---
>   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: 2419 bytes --]

       reply	other threads:[~2020-05-06  2:39 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 ` Changqing Li [this message]
2020-05-06  8:09   ` [OE-core] [PATCH] lib/oe/package_manager: update default rpm config %_prefer_color Alexander Kanavin
2020-05-06  8:21     ` Changqing Li
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=c3e5a4dc-c4a7-d398-4821-085777710c74@windriver.com \
    --to=changqing.li@windriver.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