Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 409F97F7A2 for ; Fri, 3 Jan 2020 00:49:10 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.2) with ESMTPS id 0030n9YH011141 (version=TLSv1 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 2 Jan 2020 16:49:09 -0800 (PST) Received: from [128.224.162.183] (128.224.162.183) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.468.0; Thu, 2 Jan 2020 16:49:09 -0800 To: Alexander Kanavin References: <20191127164003.115980-1-alex.kanavin@gmail.com> <20191127164003.115980-6-alex.kanavin@gmail.com> <81f2806c-4107-2ce5-2c0f-4bdd28438fb1@windriver.com> From: Kang Kai Message-ID: Date: Fri, 3 Jan 2020 08:48:16 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Cc: OE-core Subject: Re: [PATCH 06/14] dummy-sdk-package.inc: do not include files into RREPLACES X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jan 2020 00:49:10 -0000 Content-Type: multipart/alternative; boundary="------------B96FDD8EBBFD3CDCAA12CB6C" Content-Language: en-US --------------B96FDD8EBBFD3CDCAA12CB6C Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit On 2020/1/3 上午2:06, Alexander Kanavin wrote: > On Thu, 2 Jan 2020 at 11:18, Kang Kai > wrote: > > On 2019/11/28 上午12:39, Alexander Kanavin wrote: > > rpm 4.15 no longer allows it, which makes sense. > > > > Signed-off-by: Alexander Kanavin > > > Hi Alex, > > I tried this patch with rpm 4.15 and it fails to run task > populate_sdk > when multilib is enabled and lib32-perl is installed. > > IMAGE_INSTALL_append = " lib32-perl " > > > I believe this is due to DUMMYPROVIDES_PACKAGES needing the same > multilib expansion as: > > DUMMYPROVIDES += "${@' '.join([multilib_pkg_extend(d, pkg) for pkg in > d.getVar('DUMMYPROVIDES_PACKAGES').split()])}" > > So that RREPLACES has all the multilib variants included. > > However, there is also a different issue, that looks similar, but > actually pre-dates this patch, and rpm 4.15 update: > > if you do > IMAGE_INSTALL_append = " perl " > > (with multilib enabled), a similar error will happen: > > Problem: package > target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts > with perl provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with perl-module-strict provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with perl-module-warnings provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with perl-module-vars provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with perl-module-config provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with perl-module-warnings-register provided by > perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with /usr/bin/perl provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > conflicts with libperl.so.5 provided by perl-5.30.1-r0.core2_32 >   - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target > obsoletes perl provided by perl-5.30.1-r0.core2_32 >   - cannot install the best candidate for the job >   - conflicting requests > > Inspecting > /home/alexander/development/poky/build-multilib/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/poky/3.0/sysroots/core2-32-poky-linux/etc/dnf/vars/arch, > I see: > > core2_32:i686:i586:x86:sdk_provides_dummy_target:qemux86:x86_64 > > Even though sdk_provides_dummy_target should be up-front, rather than > in the middle (so that it takes priority over other architectures). > > I could not figure out a good way to fix this, but I think this issue > should be addressed first, and then we can fix the lib32/64-perl issue. Thanks for your detailed reply. I'll try to figure a way out. Regards, Kai > > > Alex -- Kai Kang --------------B96FDD8EBBFD3CDCAA12CB6C Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
On 2020/1/3 上午2:06, Alexander Kanavin wrote:
On Thu, 2 Jan 2020 at 11:18, Kang Kai <Kai.Kang@windriver.com> wrote:
On 2019/11/28 上午12:39, Alexander Kanavin wrote:
> rpm 4.15 no longer allows it, which makes sense.
>
> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>

Hi Alex,

I tried this patch with rpm 4.15 and it fails to run task populate_sdk
when multilib is enabled and lib32-perl is installed.

IMAGE_INSTALL_append = " lib32-perl "

I believe this is due to DUMMYPROVIDES_PACKAGES needing the same multilib expansion as:


So that RREPLACES has all the multilib variants included.

However, there is also a different issue, that looks similar, but actually pre-dates this patch, and rpm 4.15 update:

if you do
IMAGE_INSTALL_append = " perl "

(with multilib enabled), a similar error will happen:

Problem: package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl-module-strict provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl-module-warnings provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl-module-vars provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl-module-config provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with perl-module-warnings-register provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with /usr/bin/perl provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target conflicts with libperl.so.5 provided by perl-5.30.1-r0.core2_32
  - package target-sdk-provides-dummy-1.0-r0.sdk_provides_dummy_target obsoletes perl provided by perl-5.30.1-r0.core2_32
  - cannot install the best candidate for the job
  - conflicting requests

Inspecting /home/alexander/development/poky/build-multilib/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/sdk/image/opt/poky/3.0/sysroots/core2-32-poky-linux/etc/dnf/vars/arch, I see:

core2_32:i686:i586:x86:sdk_provides_dummy_target:qemux86:x86_64

Even though sdk_provides_dummy_target should be up-front, rather than in the middle (so that it takes priority over other architectures).

I could not figure out a good way to fix this, but I think this issue should be addressed first, and then we can fix the lib32/64-perl issue.


Thanks for your detailed reply. I'll try to figure a way out.

Regards,
Kai



Alex


-- 
Kai Kang
--------------B96FDD8EBBFD3CDCAA12CB6C--