meta-virtualization.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
@ 2024-01-15 17:00 Peter Kjellerstedt
  2024-01-15 17:09 ` [meta-virtualization] " Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Kjellerstedt @ 2024-01-15 17:00 UTC (permalink / raw)
  To: meta-virtualization

This avoids the following warning:

  WARNING: .../containerd-opencontainers_git.bb: Variable key
  RDEPENDS:${PN} (...) replaces original key
  RDEPENDS:containerd-opencontainers
  (  ${VIRTUAL-RUNTIME_container_runtime}).

if, e.g., RDEPENDS:${PN}:append = " ..." is used in a bbappend or
bbclass.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 recipes-containers/containerd/containerd-opencontainers_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb
index 5c1e127..1dadf28 100644
--- a/recipes-containers/containerd/containerd-opencontainers_git.bb
+++ b/recipes-containers/containerd/containerd-opencontainers_git.bb
@@ -95,6 +95,6 @@ INSANE_SKIP:${PN} += "ldflags already-stripped"
 
 COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
 
-RDEPENDS:${BPN} += " ${VIRTUAL-RUNTIME_container_runtime}"
+RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
 
 CVE_PRODUCT = "containerd"


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

* Re: [meta-virtualization] [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
  2024-01-15 17:00 [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN} Peter Kjellerstedt
@ 2024-01-15 17:09 ` Bruce Ashfield
  2024-01-16 11:35   ` Peter Kjellerstedt
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2024-01-15 17:09 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: meta-virtualization

On Mon, Jan 15, 2024 at 12:00 PM Peter Kjellerstedt
<peter.kjellerstedt@axis.com> wrote:
>
> This avoids the following warning:
>
>   WARNING: .../containerd-opencontainers_git.bb: Variable key
>   RDEPENDS:${PN} (...) replaces original key
>   RDEPENDS:containerd-opencontainers
>   (  ${VIRTUAL-RUNTIME_container_runtime}).
>
> if, e.g., RDEPENDS:${PN}:append = " ..." is used in a bbappend or
> bbclass.
>

All that the above commit message does is explain the syntax
of what you are fixing .. but not why.

We had the BPN rdepends on purpose, showing why that
original purpose is not needed  ... should be in the commit
message.

My answer right now would be .. .don't use PN in your bbappend
and you can avoid the warning.

Bruce

> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> ---
>  recipes-containers/containerd/containerd-opencontainers_git.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb
> index 5c1e127..1dadf28 100644
> --- a/recipes-containers/containerd/containerd-opencontainers_git.bb
> +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb
> @@ -95,6 +95,6 @@ INSANE_SKIP:${PN} += "ldflags already-stripped"
>
>  COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
>
> -RDEPENDS:${BPN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> +RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
>
>  CVE_PRODUCT = "containerd"
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8538): https://lists.yoctoproject.org/g/meta-virtualization/message/8538
> Mute This Topic: https://lists.yoctoproject.org/mt/103743235/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


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

* RE: [meta-virtualization] [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
  2024-01-15 17:09 ` [meta-virtualization] " Bruce Ashfield
@ 2024-01-16 11:35   ` Peter Kjellerstedt
  2024-01-16 15:21     ` Bruce Ashfield
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Kjellerstedt @ 2024-01-16 11:35 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: meta-virtualization

> -----Original Message-----
> From: Bruce Ashfield <bruce.ashfield@gmail.com>
> Sent: den 15 januari 2024 18:10
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Cc: meta-virtualization@lists.yoctoproject.org
> Subject: Re: [meta-virtualization] [PATCH] containerd-opencontainers: Use
> RDEPENDS:${PN} instead of RDEPENDS:${BPN}
> 
> On Mon, Jan 15, 2024 at 12:00 PM Peter Kjellerstedt
> <peter.kjellerstedt@axis.com> wrote:
> >
> > This avoids the following warning:
> >
> >   WARNING: .../containerd-opencontainers_git.bb: Variable key
> >   RDEPENDS:${PN} (...) replaces original key
> >   RDEPENDS:containerd-opencontainers
> >   (  ${VIRTUAL-RUNTIME_container_runtime}).
> >
> > if, e.g., RDEPENDS:${PN}:append = " ..." is used in a bbappend or
> > bbclass.
> 
> All that the above commit message does is explain the syntax
> of what you are fixing .. but not why.
> 
> We had the BPN rdepends on purpose, showing why that
> original purpose is not needed  ... should be in the commit
> message.

I have no idea why it was RDEPENDS:${BPN} rather than RDEPENDS:${PN}, 
I only assumed it was a typo. There is nothing in the original commit 
that indicates that it was done on purpose. 

> 
> My answer right now would be .. .don't use PN in your bbappend
> and you can avoid the warning.

The problem in my case is that our addition to RDEPENDS:${PN} is done in 
a common bbclass, so I cannot control it per recipe.

//Peter

> 
> Bruce
> 
> > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > ---
> >  recipes-containers/containerd/containerd-opencontainers_git.bb | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/recipes-containers/containerd/containerd-
> opencontainers_git.bb b/recipes-containers/containerd/containerd-
> opencontainers_git.bb
> > index 5c1e127..1dadf28 100644
> > --- a/recipes-containers/containerd/containerd-opencontainers_git.bb
> > +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb
> > @@ -95,6 +95,6 @@ INSANE_SKIP:${PN} += "ldflags already-stripped"
> >
> >  COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
> >
> > -RDEPENDS:${BPN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> > +RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> >
> >  CVE_PRODUCT = "containerd"
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#8538): https://lists.yoctoproject.org/g/meta-
> virtualization/message/8538
> > Mute This Topic: https://lists.yoctoproject.org/mt/103743235/1050810
> > Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
> [bruce.ashfield@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> 
> 
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II

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

* Re: [meta-virtualization] [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
  2024-01-16 11:35   ` Peter Kjellerstedt
@ 2024-01-16 15:21     ` Bruce Ashfield
  2024-01-16 17:19       ` Peter Kjellerstedt
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2024-01-16 15:21 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: meta-virtualization

On Tue, Jan 16, 2024 at 6:35 AM Peter Kjellerstedt
<peter.kjellerstedt@axis.com> wrote:
>
> > -----Original Message-----
> > From: Bruce Ashfield <bruce.ashfield@gmail.com>
> > Sent: den 15 januari 2024 18:10
> > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > Cc: meta-virtualization@lists.yoctoproject.org
> > Subject: Re: [meta-virtualization] [PATCH] containerd-opencontainers: Use
> > RDEPENDS:${PN} instead of RDEPENDS:${BPN}
> >
> > On Mon, Jan 15, 2024 at 12:00 PM Peter Kjellerstedt
> > <peter.kjellerstedt@axis.com> wrote:
> > >
> > > This avoids the following warning:
> > >
> > >   WARNING: .../containerd-opencontainers_git.bb: Variable key
> > >   RDEPENDS:${PN} (...) replaces original key
> > >   RDEPENDS:containerd-opencontainers
> > >   (  ${VIRTUAL-RUNTIME_container_runtime}).
> > >
> > > if, e.g., RDEPENDS:${PN}:append = " ..." is used in a bbappend or
> > > bbclass.
> >
> > All that the above commit message does is explain the syntax
> > of what you are fixing .. but not why.
> >
> > We had the BPN rdepends on purpose, showing why that
> > original purpose is not needed  ... should be in the commit
> > message.
>
> I have no idea why it was RDEPENDS:${BPN} rather than RDEPENDS:${PN},
> I only assumed it was a typo. There is nothing in the original commit
> that indicates that it was done on purpose.

I did a bit more digging, and at the time there were x32 multilibs at play, and
I remember that solving some sort of inter package dependency .. but  I
also can't find the details.

>
> >
> > My answer right now would be .. .don't use PN in your bbappend
> > and you can avoid the warning.
>
> The problem in my case is that our addition to RDEPENDS:${PN} is done in
> a common bbclass, so I cannot control it per recipe.

Ah, so you have a class that is doing a generic RDEPENDS addition
to all packages and that triggers the double variable key warning.

I'll tweak the commit message a bit to explain the history and trigger
of the warning and queue it up.

Bruce

>
> //Peter
>
> >
> > Bruce
> >
> > > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > > ---
> > >  recipes-containers/containerd/containerd-opencontainers_git.bb | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/recipes-containers/containerd/containerd-
> > opencontainers_git.bb b/recipes-containers/containerd/containerd-
> > opencontainers_git.bb
> > > index 5c1e127..1dadf28 100644
> > > --- a/recipes-containers/containerd/containerd-opencontainers_git.bb
> > > +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb
> > > @@ -95,6 +95,6 @@ INSANE_SKIP:${PN} += "ldflags already-stripped"
> > >
> > >  COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
> > >
> > > -RDEPENDS:${BPN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> > > +RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> > >
> > >  CVE_PRODUCT = "containerd"
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#8538): https://lists.yoctoproject.org/g/meta-
> > virtualization/message/8538
> > > Mute This Topic: https://lists.yoctoproject.org/mt/103743235/1050810
> > > Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> > > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
> > [bruce.ashfield@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >
> >
> >
> > --
> > - Thou shalt not follow the NULL pointer, for chaos and madness await
> > thee at its end
> > - "Use the force Harry" - Gandalf, Star Trek II



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II


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

* RE: [meta-virtualization] [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
  2024-01-16 15:21     ` Bruce Ashfield
@ 2024-01-16 17:19       ` Peter Kjellerstedt
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Kjellerstedt @ 2024-01-16 17:19 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: meta-virtualization

> -----Original Message-----
> From: Bruce Ashfield <bruce.ashfield@gmail.com>
> Sent: den 16 januari 2024 16:22
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Cc: meta-virtualization@lists.yoctoproject.org
> Subject: Re: [meta-virtualization] [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
> 
> On Tue, Jan 16, 2024 at 6:35 AM Peter Kjellerstedt <peter.kjellerstedt@axis.com> wrote:
> >
> > > -----Original Message-----
> > > From: Bruce Ashfield <bruce.ashfield@gmail.com>
> > > Sent: den 15 januari 2024 18:10
> > > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > > Cc: meta-virtualization@lists.yoctoproject.org
> > > Subject: Re: [meta-virtualization] [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN}
> > >
> > > On Mon, Jan 15, 2024 at 12:00 PM Peter Kjellerstedt <peter.kjellerstedt@axis.com> wrote:
> > > >
> > > > This avoids the following warning:
> > > >
> > > >   WARNING: .../containerd-opencontainers_git.bb: Variable key
> > > >   RDEPENDS:${PN} (...) replaces original key
> > > >   RDEPENDS:containerd-opencontainers
> > > >   (  ${VIRTUAL-RUNTIME_container_runtime}).
> > > >
> > > > if, e.g., RDEPENDS:${PN}:append = " ..." is used in a bbappend or
> > > > bbclass.
> > >
> > > All that the above commit message does is explain the syntax
> > > of what you are fixing .. but not why.
> > >
> > > We had the BPN rdepends on purpose, showing why that
> > > original purpose is not needed  ... should be in the commit
> > > message.
> >
> > I have no idea why it was RDEPENDS:${BPN} rather than RDEPENDS:${PN},
> > I only assumed it was a typo. There is nothing in the original commit
> > that indicates that it was done on purpose.
> 
> I did a bit more digging, and at the time there were x32 multilibs at play, and
> I remember that solving some sort of inter package dependency .. but  I
> also can't find the details.

I have no experience with x32, so not something I'd have considered. 
I only looked at the recipe and couldn't find any references to 
BBCLASSEXTEND or similar that would explain why ${BPN} would make a 
difference compared to ${PN}.

> > > My answer right now would be .. .don't use PN in your bbappend
> > > and you can avoid the warning.
> >
> > The problem in my case is that our addition to RDEPENDS:${PN} is done in
> > a common bbclass, so I cannot control it per recipe.
> 
> Ah, so you have a class that is doing a generic RDEPENDS addition
> to all packages and that triggers the double variable key warning.
> 
> I'll tweak the commit message a bit to explain the history and trigger
> of the warning and queue it up.

Thank you. Can you also backport it to Nanbield (and possibly also other 
branches), once it has made it into master?

//Peter

> Bruce
> 
> >
> > //Peter
> >
> > >
> > > Bruce
> > >
> > > > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > > > ---
> > > >  recipes-containers/containerd/containerd-opencontainers_git.bb | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb
> > > > index 5c1e127..1dadf28 100644
> > > > --- a/recipes-containers/containerd/containerd-opencontainers_git.bb
> > > > +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb
> > > > @@ -95,6 +95,6 @@ INSANE_SKIP:${PN} += "ldflags already-stripped"
> > > >
> > > >  COMPATIBLE_HOST = "^(?!(qemu)?mips).*"
> > > >
> > > > -RDEPENDS:${BPN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> > > > +RDEPENDS:${PN} += " ${VIRTUAL-RUNTIME_container_runtime}"
> > > >
> > > >  CVE_PRODUCT = "containerd"
> > > >


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

end of thread, other threads:[~2024-01-16 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 17:00 [PATCH] containerd-opencontainers: Use RDEPENDS:${PN} instead of RDEPENDS:${BPN} Peter Kjellerstedt
2024-01-15 17:09 ` [meta-virtualization] " Bruce Ashfield
2024-01-16 11:35   ` Peter Kjellerstedt
2024-01-16 15:21     ` Bruce Ashfield
2024-01-16 17:19       ` Peter Kjellerstedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).