All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND
@ 2025-09-28 20:32 Clayton Casciato
  2025-09-29  9:40 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 5+ messages in thread
From: Clayton Casciato @ 2025-09-28 20:32 UTC (permalink / raw)
  To: openembedded-core, zboszor

Prerequisite for nativesdk-rpm.
Would be required by nativesdk-rpm-sequoia

ERROR: Nothing RPROVIDES 'nativesdk-rpm-sequoia-crypto-policy'
(but virtual:nativesdk:
[...]/meta/recipes-devtools/rpm-sequoia/rpm-sequoia_1.9.0.bb
RDEPENDS on or otherwise requires it)

Reproduce:
1. Add "sequoia" to rpm's default PACKAGECONFIG [1]
2. Add "nativesdk" to rpm-sequoia's BBCLASSEXTEND
3. Configure local.conf [2]
4. Attempt to build "core-image-minimal"

[1] This is seen when directly modifying the weak default.
This does not occur with "PACKAGECONFIG:append:pn-rpm".

[2]
INHERIT += "sign_rpm"

RPM_GPG_NAME = "[...]"
RPM_GPG_PASSPHRASE = "[...]"
GPG_PATH = "[...]"

Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
---
 .../rpm-sequoia/rpm-sequoia-crypto-policy_git.bb                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb b/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb
index 19b86ae391..c602bb4b5a 100644
--- a/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb
+++ b/meta/recipes-devtools/rpm-sequoia/rpm-sequoia-crypto-policy_git.bb
@@ -34,4 +34,4 @@ do_install () {
 
 FILES:${PN} = "${datadir}/crypto-policies/back-ends/*"
 
-BBCLASSEXTEND = "native"
+BBCLASSEXTEND = "native nativesdk"


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

* Re: [OE-core] [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND
  2025-09-28 20:32 [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND Clayton Casciato
@ 2025-09-29  9:40 ` Alexander Kanavin
  2025-09-29 13:47   ` Clayton Casciato
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2025-09-29  9:40 UTC (permalink / raw)
  To: majortomtosourcecontrol; +Cc: openembedded-core, zboszor

On Sun, 28 Sept 2025 at 22:32, Clayton Casciato via
lists.openembedded.org
<majortomtosourcecontrol=gmail.com@lists.openembedded.org> wrote:
>
> Prerequisite for nativesdk-rpm.
> Would be required by nativesdk-rpm-sequoia
>
> ERROR: Nothing RPROVIDES 'nativesdk-rpm-sequoia-crypto-policy'
> (but virtual:nativesdk:
> [...]/meta/recipes-devtools/rpm-sequoia/rpm-sequoia_1.9.0.bb
> RDEPENDS on or otherwise requires it)
>
> Reproduce:
> 1. Add "sequoia" to rpm's default PACKAGECONFIG [1]
> 2. Add "nativesdk" to rpm-sequoia's BBCLASSEXTEND
> 3. Configure local.conf [2]
> 4. Attempt to build "core-image-minimal"
>
> [1] This is seen when directly modifying the weak default.
> This does not occur with "PACKAGECONFIG:append:pn-rpm".

...

> -BBCLASSEXTEND = "native"
> +BBCLASSEXTEND = "native nativesdk"

There has to be an actual use case for doing this, and some standard
build path where nativesdk variant is tested. Otherwise, it's a
workaround, and you need to add sequoia option such that it's enabled
only for native and target.

Alex


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

* Re: [OE-core] [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND
  2025-09-29  9:40 ` [OE-core] " Alexander Kanavin
@ 2025-09-29 13:47   ` Clayton Casciato
  2025-09-29 14:47     ` Alexander Kanavin
  0 siblings, 1 reply; 5+ messages in thread
From: Clayton Casciato @ 2025-09-29 13:47 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core, zboszor

>> On Sun, 28 Sept 2025 at 22:32, Clayton Casciato via 
>> lists.openembedded.org
>> <majortomtosourcecontrol=gmail.com@lists.openembedded.org> wrote:
>>>
>>> This does not occur with "PACKAGECONFIG:append:pn-rpm".
>>@
>> ... 
>>@
>>> -BBCLASSEXTEND = "native"
>>> +BBCLASSEXTEND = "native nativesdk"
>>@
>> There has to be an actual use case for doing this, and some standard
>> build path where nativesdk variant is tested. Otherwise, it's a
>> workaround, and you need to add sequoia option such that it's enabled
>> only for native and target.
>>@
>> Alex
>@
Hi, Alex

I understand the pushback against unnecessary functionality.

I would still like to resolve the case where "sequoia" is in the ??. 

What are your thoughts on this alternative?

PACKAGECONFIG:remove:class-nativesdk = "sequoia"

Thank you!

Clayton Casciato


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

* Re: [OE-core] [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND
  2025-09-29 13:47   ` Clayton Casciato
@ 2025-09-29 14:47     ` Alexander Kanavin
  2025-09-29 15:40       ` Clayton Casciato
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kanavin @ 2025-09-29 14:47 UTC (permalink / raw)
  To: Clayton Casciato; +Cc: openembedded-core, zboszor

On Mon, 29 Sept 2025 at 15:47, Clayton Casciato
<majortomtosourcecontrol@gmail.com> wrote:
> I understand the pushback against unnecessary functionality.
>
> I would still like to resolve the case where "sequoia" is in the ??.
>
> What are your thoughts on this alternative?
>
> PACKAGECONFIG:remove:class-nativesdk = "sequoia"

I would rather add it separately like the signing selftest does:

meta/lib/oeqa/selftest/cases/signing.py:        feature +=
'PACKAGECONFIG:append:pn-rpm-native = " sequoia"\n'
meta/lib/oeqa/selftest/cases/signing.py:        feature +=
'PACKAGECONFIG:append:pn-rpm = " sequoia"\n'

_remove works 'after the fact' and complicates understanding how the
configuration ends up with the final values. It also cannot be undone
with any other statement.

Alex


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

* Re: [OE-core] [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND
  2025-09-29 14:47     ` Alexander Kanavin
@ 2025-09-29 15:40       ` Clayton Casciato
  0 siblings, 0 replies; 5+ messages in thread
From: Clayton Casciato @ 2025-09-29 15:40 UTC (permalink / raw)
  To: Alexander Kanavin; +Cc: openembedded-core, zboszor

> On Mon, 29 Sept 2025 at 15:47, Clayton Casciato
> <majortomtosourcecontrol@gmail.com> wrote:
>> I understand the pushback against unnecessary functionality.
>>
>> I would still like to resolve the case where "sequoia" is in the ??. 
>>
>> What are your thoughts on this alternative?
>>
>> PACKAGECONFIG:remove:class-nativesdk = "sequoia"
>@
> I would rather add it separately like the signing selftest does:
>@
> meta/lib/oeqa/selftest/cases/signing.py:        feature +=
> 'PACKAGECONFIG:append:pn-rpm-native = " sequoia"\n'
> meta/lib/oeqa/selftest/cases/signing.py:        feature +=
> 'PACKAGECONFIG:append:pn-rpm = " sequoia"\n'
>@
> _remove works 'after the fact' and complicates understanding how the 
> configuration ends up with the final values. It also cannot be undone
> with any other statement.
>@
> Alex
I will reconsider for the future, but I typically manipulate the 
non-specific PACKAGECONFIG as suggested by the documentation:
https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-PACKAGECONFIG

This was a frustrating issue to encounter as I had not come across this
behavior before for other recipes.

I see the downside to using a remove operation.
With that said, it is discoverable via bitbake-getvar.

While this does seem like a bug, I plan to drop this issue for now.

Thanks again!

Clayton Casciato


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

end of thread, other threads:[~2025-09-29 15:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-28 20:32 [PATCH] rpm-sequoia-crypto-policy: add nativesdk to BBCLASSEXTEND Clayton Casciato
2025-09-29  9:40 ` [OE-core] " Alexander Kanavin
2025-09-29 13:47   ` Clayton Casciato
2025-09-29 14:47     ` Alexander Kanavin
2025-09-29 15:40       ` Clayton Casciato

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.