docs.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* virtual providers don't apply to runtime dependencies?
@ 2021-08-30  8:44 Robert P. J. Day
  2021-08-30  8:55 ` [docs] " Quentin Schulz
  2021-08-30 12:20 ` Richard Purdie
  0 siblings, 2 replies; 7+ messages in thread
From: Robert P. J. Day @ 2021-08-30  8:44 UTC (permalink / raw)
  To: YP docs mailing list


  in this section:

https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-virtual-providers

one reads the note:

"Virtual providers only apply to build time dependencies specified
with PROVIDES and DEPENDS. They do not apply to runtime dependencies
specified with RPROVIDES and RDEPENDS."

  except in current oe-core, there seem to be a couple examples of
that:

meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} +=
"virtual/systemd-bootconf"

meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} +=
"virtual/grub-bootconf"

  am i misreadimg something?

rday

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

* Re: [docs] virtual providers don't apply to runtime dependencies?
  2021-08-30  8:44 virtual providers don't apply to runtime dependencies? Robert P. J. Day
@ 2021-08-30  8:55 ` Quentin Schulz
  2021-08-30 12:20 ` Richard Purdie
  1 sibling, 0 replies; 7+ messages in thread
From: Quentin Schulz @ 2021-08-30  8:55 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: YP docs mailing list

Hi Robert,

On Mon, Aug 30, 2021 at 04:44:04AM -0400, Robert P. J. Day wrote:
> 
>   in this section:
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.yoctoproject.org_dev-2Dmanual_common-2Dtasks.html-23using-2Dvirtual-2Dproviders&d=DwIBAg&c=_sEr5x9kUWhuk4_nFwjJtA&r=LYjLexDn7rXIzVmkNPvw5ymA1XTSqHGq8yBP6m6qZZ4njZguQhZhkI_-172IIy1t&m=KmpzsKHNSuOM9Ab5FNlaySwlxkBMhRzyFvDOggYf_W4&s=XNc1PJ57jK1TMWGsHAEk5MVPDPvGxue_ysp7BNRL1do&e= 
> 
> one reads the note:
> 
> "Virtual providers only apply to build time dependencies specified
> with PROVIDES and DEPENDS. They do not apply to runtime dependencies
> specified with RPROVIDES and RDEPENDS."
> 
>   except in current oe-core, there seem to be a couple examples of
> that:
> 
> meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} +=
> "virtual/systemd-bootconf"
> 
> meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} +=
> "virtual/grub-bootconf"
> 

I think the point was that PREFFERED_PROVIDER and virtual providers only apply
for the selection of recipes to build.

You still can have packages named the same (virtual rprovider or not),
and I think bitbake will take the one from the PREFFERED_PROVIDER and if
it cannot find it in that recipe, then it's going to build another one
that might have that package.

I had that issue with openssl-conf (or openssl10-conf, don't remember)
package for example.

I don't see right now how to rephrase the paragraph (provided what I'm
saying is correct :) ).

Quentin

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

* Re: [docs] virtual providers don't apply to runtime dependencies?
  2021-08-30  8:44 virtual providers don't apply to runtime dependencies? Robert P. J. Day
  2021-08-30  8:55 ` [docs] " Quentin Schulz
@ 2021-08-30 12:20 ` Richard Purdie
  2021-08-30 12:31   ` Robert P. J. Day
  2021-08-31 17:32   ` Michael Opdenacker
  1 sibling, 2 replies; 7+ messages in thread
From: Richard Purdie @ 2021-08-30 12:20 UTC (permalink / raw)
  To: Robert P. J. Day, YP docs mailing list

On Mon, 2021-08-30 at 04:44 -0400, Robert P. J. Day wrote:
>   in this section:
> 
> https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-virtual-providers
> 
> one reads the note:
> 
> "Virtual providers only apply to build time dependencies specified
> with PROVIDES and DEPENDS. They do not apply to runtime dependencies
> specified with RPROVIDES and RDEPENDS."
> 
>   except in current oe-core, there seem to be a couple examples of
> that:
> 
> meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} +=
> "virtual/systemd-bootconf"
> 
> meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} +=
> "virtual/grub-bootconf"
> 
>   am i misreadimg something?

No, the above lines are incorrect and should be fixed. A bug or something to
track that would be good.

Cheers,

Richard


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

* Re: [docs] virtual providers don't apply to runtime dependencies?
  2021-08-30 12:20 ` Richard Purdie
@ 2021-08-30 12:31   ` Robert P. J. Day
  2021-08-31 17:32   ` Michael Opdenacker
  1 sibling, 0 replies; 7+ messages in thread
From: Robert P. J. Day @ 2021-08-30 12:31 UTC (permalink / raw)
  To: Richard Purdie; +Cc: YP docs mailing list

On Mon, 30 Aug 2021, Richard Purdie wrote:

> On Mon, 2021-08-30 at 04:44 -0400, Robert P. J. Day wrote:
> >   in this section:
> >
> > https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-virtual-providers
> >
> > one reads the note:
> >
> > "Virtual providers only apply to build time dependencies specified
> > with PROVIDES and DEPENDS. They do not apply to runtime dependencies
> > specified with RPROVIDES and RDEPENDS."
> >
> >   except in current oe-core, there seem to be a couple examples of
> > that:
> >
> > meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} +=
> > "virtual/systemd-bootconf"
> >
> > meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} +=
> > "virtual/grub-bootconf"
> >
> >   am i misreadimg something?
>
> No, the above lines are incorrect and should be fixed. A bug or
> something to track that would be good.

  sufficient? https://bugzilla.yoctoproject.org/show_bug.cgi?id=14530

rday

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

* Re: [docs] virtual providers don't apply to runtime dependencies?
  2021-08-30 12:20 ` Richard Purdie
  2021-08-30 12:31   ` Robert P. J. Day
@ 2021-08-31 17:32   ` Michael Opdenacker
  2021-09-01  8:12     ` Robert P. J. Day
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Opdenacker @ 2021-08-31 17:32 UTC (permalink / raw)
  To: Richard Purdie, Robert P. J. Day, YP docs mailing list

Hi,

On 8/30/21 2:20 PM, Richard Purdie wrote:
> On Mon, 2021-08-30 at 04:44 -0400, Robert P. J. Day wrote:
>>   in this section:
>>
>> https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-virtual-providers
>>
>> one reads the note:
>>
>> "Virtual providers only apply to build time dependencies specified
>> with PROVIDES and DEPENDS. They do not apply to runtime dependencies
>> specified with RPROVIDES and RDEPENDS."
>>
>>   except in current oe-core, there seem to be a couple examples of
>> that:
>>
>> meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} +=
>> "virtual/systemd-bootconf"
>>
>> meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} +=
>> "virtual/grub-bootconf"
>>
>>   am i misreadimg something?
> No, the above lines are incorrect and should be fixed. A bug or something to
> track that would be good.


Oops, I now understand that I misunderstood Richard's point. The lines
in the recipes are wrong, not the documentation text.

So bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=14530 is not a
documentation bug, but an OE core one. I'll fix this.

Thanks for your patience with us mere mortals, Richard ;-)
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

* Re: [docs] virtual providers don't apply to runtime dependencies?
  2021-08-31 17:32   ` Michael Opdenacker
@ 2021-09-01  8:12     ` Robert P. J. Day
  2021-09-01  8:30       ` Michael Opdenacker
  0 siblings, 1 reply; 7+ messages in thread
From: Robert P. J. Day @ 2021-09-01  8:12 UTC (permalink / raw)
  To: Michael Opdenacker; +Cc: Richard Purdie, YP docs mailing list

On Tue, 31 Aug 2021, Michael Opdenacker wrote:

> Hi,
>
> On 8/30/21 2:20 PM, Richard Purdie wrote:
> > On Mon, 2021-08-30 at 04:44 -0400, Robert P. J. Day wrote:
> >>   in this section:
> >>
> >> https://docs.yoctoproject.org/dev-manual/common-tasks.html#using-virtual-providers
> >>
> >> one reads the note:
> >>
> >> "Virtual providers only apply to build time dependencies specified
> >> with PROVIDES and DEPENDS. They do not apply to runtime dependencies
> >> specified with RPROVIDES and RDEPENDS."
> >>
> >>   except in current oe-core, there seem to be a couple examples of
> >> that:
> >>
> >> meta/recipes-core/systemd/systemd-bootconf_1.00.bb:RPROVIDES:${PN} +=
> >> "virtual/systemd-bootconf"
> >>
> >> meta/recipes-bsp/grub/grub-bootconf_1.00.bb:RPROVIDES:${PN} +=
> >> "virtual/grub-bootconf"
> >>
> >>   am i misreadimg something?
> > No, the above lines are incorrect and should be fixed. A bug or something to
> > track that would be good.
>
>
> Oops, I now understand that I misunderstood Richard's point. The lines
> in the recipes are wrong, not the documentation text.
>
> So bug https://bugzilla.yoctoproject.org/show_bug.cgi?id=14530 is not a
> documentation bug, but an OE core one. I'll fix this.
>
> Thanks for your patience with us mere mortals, Richard ;-)

  *sigh* ... i feel responsible for opening yet another can of worms.

rday

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

* Re: [docs] virtual providers don't apply to runtime dependencies?
  2021-09-01  8:12     ` Robert P. J. Day
@ 2021-09-01  8:30       ` Michael Opdenacker
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Opdenacker @ 2021-09-01  8:30 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Richard Purdie, YP docs mailing list

Hi Robert,

On 9/1/21 10:12 AM, Robert P. J. Day wrote:
>   *sigh* ... i feel responsible for opening yet another can of worms.


Don't worry, it was a nice opportunity at least for me to clarify some
notions and it will allow to improve recipes in OE core.

Thanks for everything!
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

end of thread, other threads:[~2021-09-01  8:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30  8:44 virtual providers don't apply to runtime dependencies? Robert P. J. Day
2021-08-30  8:55 ` [docs] " Quentin Schulz
2021-08-30 12:20 ` Richard Purdie
2021-08-30 12:31   ` Robert P. J. Day
2021-08-31 17:32   ` Michael Opdenacker
2021-09-01  8:12     ` Robert P. J. Day
2021-09-01  8:30       ` Michael Opdenacker

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).