Skip to content

RFC Install rdependent of allarch package with same multilib variant of image

[email protected] openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2make allarch packages don't dependent specific multilib packagemeta/classes/allarch.bbclass meta/classes/multilib.bbclass meta/classes/multilib_global.bbclass +5 more+75 -80 replies
2/2WIP: install rdependent packages of allarch packages according to image rootfsmeta/lib/oe/package_manager.py meta/lib/oe/rootfs.py+77 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] Install rdependent of allarch package with same multilib variant of image

From: Kai Kang <[email protected]>

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(-)
Signature · 1 line
2.17.1