[OE-core] [RFC PATCH 0/2] Install rdependent of allarch package with same multilib variant of image

kai.kang at windriver.com kai.kang at windriver.com
Wed Jul 25 16:41:05 UTC 2018


From: Kai Kang <kai.kang at windriver.com>

Hi Richard and Mark,

The series rfc patch is trying to install 64bits packages which is
required by allarch package to 32 bits image. Work for rpm and need
little more work and test for dpkg and opkg.

Take ca-certificates as example. It requires openssl. So it intalls
openssl for both core-image-sato and lib32-core-image-sato. But
lib32-openssl is expected to be installed to lib32-core-image-sato.

So extend rdpendent of allarch package with all multilib variants and
'noarch-' as well.

Extend
ca-certificates -> openssl

to

ca-certificates -> openssl, lib32-openssl, noarch-openssl

Rdepends on openssl and lib32-openssl make both of them exist in
oe-core-repo when do rootfs. And then make both openssl and
lib32-openssl provide noarch-openssl. And only keep noarch-openssl in
RDEPENDS when write package for ca-certificates. When do image rootfs
for lib32-core-image-sato, remove openssl if installed already and
install lib32-openssl to provide noarch-openssl for allarch pacakge
ca-certificates.

And extend rprovides of allarch package with prefix 'noarch-' too that
it may be required by other allarch packages. Put all dependent packages
of all allarch recipes in oe-core to a new ariable 'ALLARCH_RDEP_PKGS'.

Any comment for this method is welcomed. Thanks a lot.

--Kai

Kai Kang (2):
  make allarch packages don't dependent specific multilib package
  WIP: install rdependent packages of allarch packages according to
    image rootfs

 meta/classes/allarch.bbclass         |  3 --
 meta/classes/multilib.bbclass        |  3 +-
 meta/classes/multilib_global.bbclass | 31 ++++++++++++++++-
 meta/classes/nativesdk.bbclass       |  8 +++++
 meta/classes/package_deb.bbclass     |  7 +++-
 meta/classes/package_ipk.bbclass     |  7 +++-
 meta/classes/package_rpm.bbclass     |  8 ++++-
 meta/conf/multilib.conf              | 16 +++++++++
 meta/lib/oe/package_manager.py       | 51 ++++++++++++++++++++++++++--
 meta/lib/oe/rootfs.py                | 28 +++++++++++++++
 10 files changed, 152 insertions(+), 10 deletions(-)

-- 
2.17.1




More information about the Openembedded-core mailing list