Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Install rdependent of allarch package with same multilib variant of image
@ 2018-07-25 16:41 kai.kang
  2018-07-25 16:41 ` [RFC PATCH 1/2] make allarch packages don't dependent specific multilib package kai.kang
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: kai.kang @ 2018-07-25 16:41 UTC (permalink / raw)
  To: richard.purdie, mark.hatle; +Cc: openembedded-core

From: Kai Kang <kai.kang@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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-26 14:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-25 16:41 [RFC PATCH 0/2] Install rdependent of allarch package with same multilib variant of image kai.kang
2018-07-25 16:41 ` [RFC PATCH 1/2] make allarch packages don't dependent specific multilib package kai.kang
2018-07-25 16:41 ` [RFC PATCH 2/2] WIP: install rdependent packages of allarch packages according to image rootfs kai.kang
2018-07-25 22:47 ` [RFC PATCH 0/2] Install rdependent of allarch package with same multilib variant of image richard.purdie
2018-07-26  6:53   ` Kang Kai
2018-07-26  9:07     ` richard.purdie
2018-07-26  9:51       ` Martin Jansa
2018-07-26 11:02       ` Alexander Kanavin
2018-07-26 14:13       ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox