* [PATCH v2] core-image: Exclude openssh complementary packages
@ 2022-08-28 19:54 Pavel Zhukov
2022-09-03 21:54 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Zhukov @ 2022-08-28 19:54 UTC (permalink / raw)
To: openembedded-core; +Cc: richard.purdie, Pavel Zhukov
Openssh (main) package may be marked for installation via complementary
packages mechanism as a dependency of openssh-ptest
and this causes conflict with dropbear [Yocto #14858] [1].
Excluding openssh complementary packages if ssh-server-dropbear is in
DISTRO_FEATURES fixes this issue.
To install openssh complementary packages in the images with
ssh-server-dropbear they may be added manually into the list because
they will be excluded from the installation even if corresonding class
(dev-pkg or dbg-pkgs) inherited.
[1]
Error:
Problem: problem with installed package dropbear-2020.81-r0.core2_64
- package dropbear-2020.81-r0.core2_64 conflicts with openssh provided by openssh-8.9p1-r0.core2_64
- package openssh-8.9p1-r0.core2_64 conflicts with dropbear provided by dropbear-2020.81-r0.core2_64
- package openssh-ptest-8.9p1-r0.core2_64 requires openssh, but none of the providers can be installed
- conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
---
meta/classes-recipe/core-image.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes-recipe/core-image.bbclass b/meta/classes-recipe/core-image.bbclass
index 4b5f2c99c4b..fa38ae876d0 100644
--- a/meta/classes-recipe/core-image.bbclass
+++ b/meta/classes-recipe/core-image.bbclass
@@ -78,5 +78,6 @@ CORE_IMAGE_BASE_INSTALL = '\
CORE_IMAGE_EXTRA_INSTALL ?= ""
IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
+PACKAGE_EXCLUDE_COMPLEMENTARY:append = "{@ openssh if 'ssh-server-dropbear' in d.getVar('IMAGE_FEATURES')}"
inherit image
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] core-image: Exclude openssh complementary packages
2022-08-28 19:54 [PATCH v2] core-image: Exclude openssh complementary packages Pavel Zhukov
@ 2022-09-03 21:54 ` Richard Purdie
2022-09-05 16:27 ` [OE-core] " Pavel Zhukov
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2022-09-03 21:54 UTC (permalink / raw)
To: Pavel Zhukov, openembedded-core
On Sun, 2022-08-28 at 21:54 +0200, Pavel Zhukov wrote:
> Openssh (main) package may be marked for installation via complementary
> packages mechanism as a dependency of openssh-ptest
> and this causes conflict with dropbear [Yocto #14858] [1].
> Excluding openssh complementary packages if ssh-server-dropbear is in
> DISTRO_FEATURES fixes this issue.
> To install openssh complementary packages in the images with
> ssh-server-dropbear they may be added manually into the list because
> they will be excluded from the installation even if corresonding class
> (dev-pkg or dbg-pkgs) inherited.
>
> [1]
> Error:
> Problem: problem with installed package dropbear-2020.81-r0.core2_64
> - package dropbear-2020.81-r0.core2_64 conflicts with openssh provided by openssh-8.9p1-r0.core2_64
> - package openssh-8.9p1-r0.core2_64 conflicts with dropbear provided by dropbear-2020.81-r0.core2_64
> - package openssh-ptest-8.9p1-r0.core2_64 requires openssh, but none of the providers can be installed
> - conflicting requests
> (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
>
> Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
> ---
> meta/classes-recipe/core-image.bbclass | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes-recipe/core-image.bbclass b/meta/classes-recipe/core-image.bbclass
> index 4b5f2c99c4b..fa38ae876d0 100644
> --- a/meta/classes-recipe/core-image.bbclass
> +++ b/meta/classes-recipe/core-image.bbclass
> @@ -78,5 +78,6 @@ CORE_IMAGE_BASE_INSTALL = '\
> CORE_IMAGE_EXTRA_INSTALL ?= ""
>
> IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
> +PACKAGE_EXCLUDE_COMPLEMENTARY:append = "{@ openssh if 'ssh-server-dropbear' in d.getVar('IMAGE_FEATURES')}"
This doesn't seem to be correct syntax, e.g. no $ before {@ and I'm not
sure that is valid python?
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH v2] core-image: Exclude openssh complementary packages
2022-09-03 21:54 ` Richard Purdie
@ 2022-09-05 16:27 ` Pavel Zhukov
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Zhukov @ 2022-09-05 16:27 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
"Richard Purdie" <richard.purdie@linuxfoundation.org> writes:
> On Sun, 2022-08-28 at 21:54 +0200, Pavel Zhukov wrote:
>> Openssh (main) package may be marked for installation via complementary
>> packages mechanism as a dependency of openssh-ptest
>> and this causes conflict with dropbear [Yocto #14858] [1].
>> Excluding openssh complementary packages if ssh-server-dropbear is in
>> DISTRO_FEATURES fixes this issue.
>> To install openssh complementary packages in the images with
>> ssh-server-dropbear they may be added manually into the list because
>> they will be excluded from the installation even if corresonding class
>> (dev-pkg or dbg-pkgs) inherited.
>>
>> [1]
>> Error:
>> Problem: problem with installed package dropbear-2020.81-r0.core2_64
>> - package dropbear-2020.81-r0.core2_64 conflicts with openssh provided by openssh-8.9p1-r0.core2_64
>> - package openssh-8.9p1-r0.core2_64 conflicts with dropbear provided by dropbear-2020.81-r0.core2_64
>> - package openssh-ptest-8.9p1-r0.core2_64 requires openssh, but none of the providers can be installed
>> - conflicting requests
>> (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
>>
>> Signed-off-by: Pavel Zhukov <pavel@zhukoff.net>
>> ---
>> meta/classes-recipe/core-image.bbclass | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes-recipe/core-image.bbclass b/meta/classes-recipe/core-image.bbclass
>> index 4b5f2c99c4b..fa38ae876d0 100644
>> --- a/meta/classes-recipe/core-image.bbclass
>> +++ b/meta/classes-recipe/core-image.bbclass
>> @@ -78,5 +78,6 @@ CORE_IMAGE_BASE_INSTALL = '\
>> CORE_IMAGE_EXTRA_INSTALL ?= ""
>>
>> IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
>> +PACKAGE_EXCLUDE_COMPLEMENTARY:append = "{@ openssh if 'ssh-server-dropbear' in d.getVar('IMAGE_FEATURES')}"
>
> This doesn't seem to be correct syntax, e.g. no $ before {@ and I'm not
> sure that is valid python?
Resent. I should have tested it more carefully.
I've tested new revision with few cases I'm aware of and it worked.
>
> Cheers,
>
> Richard
>
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#170271): https://lists.openembedded.org/g/openembedded-core/message/170271
> Mute This Topic: https://lists.openembedded.org/mt/93313521/6390638
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [pavel@zhukoff.net]
> -=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-05 16:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-28 19:54 [PATCH v2] core-image: Exclude openssh complementary packages Pavel Zhukov
2022-09-03 21:54 ` Richard Purdie
2022-09-05 16:27 ` [OE-core] " Pavel Zhukov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.