* [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS
@ 2021-09-01 9:20 Michael Opdenacker
2021-09-01 13:23 ` [OE-core] " Bruce Ashfield
0 siblings, 1 reply; 6+ messages in thread
From: Michael Opdenacker @ 2021-09-01 9:20 UTC (permalink / raw)
To: openembedded-core; +Cc: Michael Opdenacker
Fixes [YOCTO #14538]
Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.
That's confusing because "virtual/" has no special meaning in
RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).
Instead, using "virtual-" instead of "virtual/"
as already done in the glibc recipe.
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
---
meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 2 +-
meta/recipes-bsp/grub/grub-efi_2.06.bb | 2 +-
meta/recipes-core/systemd/systemd-boot_249.3.bb | 2 +-
meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
index 151e601fd2..783e30bf38 100644
--- a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
+++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
@@ -5,7 +5,7 @@ DESCRIPTION = "Grub might require different configuration file for \
different machines."
HOMEPAGE = "https://www.gnu.org/software/grub/manual/grub/grub.html#Configuration"
-RPROVIDES:${PN} += "virtual/grub-bootconf"
+RPROVIDES:${PN} += "virtual-grub-bootconf"
inherit grub-efi-cfg
diff --git a/meta/recipes-bsp/grub/grub-efi_2.06.bb b/meta/recipes-bsp/grub/grub-efi_2.06.bb
index 96e9df88b6..a8cc209a02 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.06.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.06.bb
@@ -5,7 +5,7 @@ require conf/image-uefi.conf
GRUBPLATFORM = "efi"
DEPENDS:append = " grub-native"
-RDEPENDS:${PN} = "grub-common virtual/grub-bootconf"
+RDEPENDS:${PN} = "grub-common virtual-grub-bootconf"
SRC_URI += " \
file://cfg \
diff --git a/meta/recipes-core/systemd/systemd-boot_249.3.bb b/meta/recipes-core/systemd/systemd-boot_249.3.bb
index af2be162a3..b3d4e31e08 100644
--- a/meta/recipes-core/systemd/systemd-boot_249.3.bb
+++ b/meta/recipes-core/systemd/systemd-boot_249.3.bb
@@ -46,7 +46,7 @@ python __anonymous () {
FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"
-RDEPENDS:${PN} += "virtual/systemd-bootconf"
+RDEPENDS:${PN} += "virtual-systemd-bootconf"
# Imported from the old gummiboot recipe
TUNE_CCARGS:remove = "-mfpmath=sse"
diff --git a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
index 12c4447f37..19637546a9 100644
--- a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
+++ b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
@@ -2,7 +2,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SUMMARY = "Basic systemd-boot configuration files"
-RPROVIDES:${PN} += "virtual/systemd-bootconf"
+RPROVIDES:${PN} += "virtual-systemd-bootconf"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit systemd-boot-cfg
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS
2021-09-01 9:20 [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS Michael Opdenacker
@ 2021-09-01 13:23 ` Bruce Ashfield
2021-09-01 14:46 ` Peter Kjellerstedt
2021-09-01 17:10 ` Michael Opdenacker
0 siblings, 2 replies; 6+ messages in thread
From: Bruce Ashfield @ 2021-09-01 13:23 UTC (permalink / raw)
To: Michael Opdenacker; +Cc: Patches and discussions about the oe-core layer
On Wed, Sep 1, 2021 at 5:20 AM Michael Opdenacker
<michael.opdenacker@bootlin.com> wrote:
>
> Fixes [YOCTO #14538]
>
> Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.
>
> That's confusing because "virtual/" has no special meaning in
> RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).
>
> Instead, using "virtual-" instead of "virtual/"
> as already done in the glibc recipe.
We have quite a few cases in meta-virtualization, where the same
unclear syntax is used.
I can take care of updating it, if you aren't looking at it already.
Bruce
>
> Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
> ---
> meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 2 +-
> meta/recipes-bsp/grub/grub-efi_2.06.bb | 2 +-
> meta/recipes-core/systemd/systemd-boot_249.3.bb | 2 +-
> meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 2 +-
> 4 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
> index 151e601fd2..783e30bf38 100644
> --- a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
> +++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
> @@ -5,7 +5,7 @@ DESCRIPTION = "Grub might require different configuration file for \
> different machines."
> HOMEPAGE = "https://www.gnu.org/software/grub/manual/grub/grub.html#Configuration"
>
> -RPROVIDES:${PN} += "virtual/grub-bootconf"
> +RPROVIDES:${PN} += "virtual-grub-bootconf"
>
> inherit grub-efi-cfg
>
> diff --git a/meta/recipes-bsp/grub/grub-efi_2.06.bb b/meta/recipes-bsp/grub/grub-efi_2.06.bb
> index 96e9df88b6..a8cc209a02 100644
> --- a/meta/recipes-bsp/grub/grub-efi_2.06.bb
> +++ b/meta/recipes-bsp/grub/grub-efi_2.06.bb
> @@ -5,7 +5,7 @@ require conf/image-uefi.conf
> GRUBPLATFORM = "efi"
>
> DEPENDS:append = " grub-native"
> -RDEPENDS:${PN} = "grub-common virtual/grub-bootconf"
> +RDEPENDS:${PN} = "grub-common virtual-grub-bootconf"
>
> SRC_URI += " \
> file://cfg \
> diff --git a/meta/recipes-core/systemd/systemd-boot_249.3.bb b/meta/recipes-core/systemd/systemd-boot_249.3.bb
> index af2be162a3..b3d4e31e08 100644
> --- a/meta/recipes-core/systemd/systemd-boot_249.3.bb
> +++ b/meta/recipes-core/systemd/systemd-boot_249.3.bb
> @@ -46,7 +46,7 @@ python __anonymous () {
>
> FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"
>
> -RDEPENDS:${PN} += "virtual/systemd-bootconf"
> +RDEPENDS:${PN} += "virtual-systemd-bootconf"
>
> # Imported from the old gummiboot recipe
> TUNE_CCARGS:remove = "-mfpmath=sse"
> diff --git a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
> index 12c4447f37..19637546a9 100644
> --- a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
> +++ b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
> @@ -2,7 +2,7 @@ LICENSE = "MIT"
> LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
> SUMMARY = "Basic systemd-boot configuration files"
>
> -RPROVIDES:${PN} += "virtual/systemd-bootconf"
> +RPROVIDES:${PN} += "virtual-systemd-bootconf"
> PACKAGE_ARCH = "${MACHINE_ARCH}"
>
> inherit systemd-boot-cfg
> --
> 2.25.1
>
>
>
>
--
- 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] 6+ messages in thread
* Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS
2021-09-01 13:23 ` [OE-core] " Bruce Ashfield
@ 2021-09-01 14:46 ` Peter Kjellerstedt
2021-09-01 14:52 ` Bruce Ashfield
2021-09-01 17:10 ` Michael Opdenacker
1 sibling, 1 reply; 6+ messages in thread
From: Peter Kjellerstedt @ 2021-09-01 14:46 UTC (permalink / raw)
To: Bruce Ashfield, Michael Opdenacker
Cc: Patches and discussions about the oe-core layer
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Bruce Ashfield
> Sent: den 1 september 2021 15:24
> To: Michael Opdenacker <michael.opdenacker@bootlin.com>
> Cc: Patches and discussions about the oe-core layer <openembedded-
> core@lists.openembedded.org>
> Subject: Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES
> and RDEPENDS
>
> On Wed, Sep 1, 2021 at 5:20 AM Michael Opdenacker
> <michael.opdenacker@bootlin.com> wrote:
> >
> > Fixes [YOCTO #14538]
> >
> > Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.
> >
> > That's confusing because "virtual/" has no special meaning in
> > RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).
> >
> > Instead, using "virtual-" instead of "virtual/"
> > as already done in the glibc recipe.
>
> We have quite a few cases in meta-virtualization, where the same
> unclear syntax is used.
>
> I can take care of updating it, if you aren't looking at it already.
>
> Bruce
Can anyone enlighten me to what benefit changing "virtual/" to
"virtual-" for runtime dependencies gives? AFAIU, this makes no
technical difference and everything will still work exactly as
before, but with a different provided name.
If you then have virtual/foo for build dependencies and virtual-foo
for the corresponding runtime dependencies, then I only see increased
confusion with a change like this.
And yes, I know about the problems with virtual runtime dependencies,
but in my experience, as long as you do not try to create a global
package repository with packages from multiple builds, but only use
the packages created by bitbake to generate an image, they work as
expected.
//Peter
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS
2021-09-01 14:46 ` Peter Kjellerstedt
@ 2021-09-01 14:52 ` Bruce Ashfield
2021-09-01 15:06 ` Richard Purdie
0 siblings, 1 reply; 6+ messages in thread
From: Bruce Ashfield @ 2021-09-01 14:52 UTC (permalink / raw)
To: Peter Kjellerstedt
Cc: Michael Opdenacker, Patches and discussions about the oe-core layer
On Wed, Sep 1, 2021 at 10:46 AM Peter Kjellerstedt
<peter.kjellerstedt@axis.com> wrote:
>
> > -----Original Message-----
> > From: openembedded-core@lists.openembedded.org <openembedded-
> > core@lists.openembedded.org> On Behalf Of Bruce Ashfield
> > Sent: den 1 september 2021 15:24
> > To: Michael Opdenacker <michael.opdenacker@bootlin.com>
> > Cc: Patches and discussions about the oe-core layer <openembedded-
> > core@lists.openembedded.org>
> > Subject: Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES
> > and RDEPENDS
> >
> > On Wed, Sep 1, 2021 at 5:20 AM Michael Opdenacker
> > <michael.opdenacker@bootlin.com> wrote:
> > >
> > > Fixes [YOCTO #14538]
> > >
> > > Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.
> > >
> > > That's confusing because "virtual/" has no special meaning in
> > > RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).
> > >
> > > Instead, using "virtual-" instead of "virtual/"
> > > as already done in the glibc recipe.
> >
> > We have quite a few cases in meta-virtualization, where the same
> > unclear syntax is used.
> >
> > I can take care of updating it, if you aren't looking at it already.
> >
> > Bruce
>
> Can anyone enlighten me to what benefit changing "virtual/" to
> "virtual-" for runtime dependencies gives? AFAIU, this makes no
> technical difference and everything will still work exactly as
> before, but with a different provided name.
Yup.
>
> If you then have virtual/foo for build dependencies and virtual-foo
> for the corresponding runtime dependencies, then I only see increased
> confusion with a change like this.
I don't disagree :D
I wanted to take care of meta-virt for exactly that reason. I want to
have a closer look at things, and decide what is the best path to take
(from a consistency point of view, or leaving it .. if it isn't broken
:)
>
> And yes, I know about the problems with virtual runtime dependencies,
> but in my experience, as long as you do not try to create a global
> package repository with packages from multiple builds, but only use
> the packages created by bitbake to generate an image, they work as
> expected.
That has also been my experience. We've had our virtual/ providers for
years in meta-virt, and haven't even run into an issue.
Bruce
>
> //Peter
>
--
- 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] 6+ messages in thread
* Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS
2021-09-01 14:52 ` Bruce Ashfield
@ 2021-09-01 15:06 ` Richard Purdie
0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2021-09-01 15:06 UTC (permalink / raw)
To: Bruce Ashfield, Peter Kjellerstedt
Cc: Michael Opdenacker, Patches and discussions about the oe-core layer
On Wed, 2021-09-01 at 10:52 -0400, Bruce Ashfield wrote:
> On Wed, Sep 1, 2021 at 10:46 AM Peter Kjellerstedt
> <peter.kjellerstedt@axis.com> wrote:
> >
> > > -----Original Message-----
> > > From: openembedded-core@lists.openembedded.org <openembedded-
> > > core@lists.openembedded.org> On Behalf Of Bruce Ashfield
> > > Sent: den 1 september 2021 15:24
> > > To: Michael Opdenacker <michael.opdenacker@bootlin.com>
> > > Cc: Patches and discussions about the oe-core layer <openembedded-
> > > core@lists.openembedded.org>
> > > Subject: Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES
> > > and RDEPENDS
> > >
> > > On Wed, Sep 1, 2021 at 5:20 AM Michael Opdenacker
> > > <michael.opdenacker@bootlin.com> wrote:
> > > >
> > > > Fixes [YOCTO #14538]
> > > >
> > > > Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.
> > > >
> > > > That's confusing because "virtual/" has no special meaning in
> > > > RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).
> > > >
> > > > Instead, using "virtual-" instead of "virtual/"
> > > > as already done in the glibc recipe.
> > >
> > > We have quite a few cases in meta-virtualization, where the same
> > > unclear syntax is used.
> > >
> > > I can take care of updating it, if you aren't looking at it already.
> > >
> > > Bruce
> >
> > Can anyone enlighten me to what benefit changing "virtual/" to
> > "virtual-" for runtime dependencies gives? AFAIU, this makes no
> > technical difference and everything will still work exactly as
> > before, but with a different provided name.
>
> Yup.
>
> >
> > If you then have virtual/foo for build dependencies and virtual-foo
> > for the corresponding runtime dependencies, then I only see increased
> > confusion with a change like this.
>
> I don't disagree :D
>
> I wanted to take care of meta-virt for exactly that reason. I want to
> have a closer look at things, and decide what is the best path to take
> (from a consistency point of view, or leaving it .. if it isn't broken
> :)
>
> >
> > And yes, I know about the problems with virtual runtime dependencies,
> > but in my experience, as long as you do not try to create a global
> > package repository with packages from multiple builds, but only use
> > the packages created by bitbake to generate an image, they work as
> > expected.
>
> That has also been my experience. We've had our virtual/ providers for
> years in meta-virt, and haven't even run into an issue.
Have a look at the discussion on the docs list where people are getting really
confused about whether virtual/ is allowed in the runtime space or not.
I maintain that it is not and never has been supported. I'd like to be able to
continue to say that the "virtual/" namespace is DEPENDS/PROVIDES only. I
therefore suggested the small number of problem entries that sneaked into OE-
Core get fixed. I'd actually got further and suggest we add a QA check that
errors if it sees these in RDEPENDS/PRORIVDES.
The change is focused on us being able to clearly say "don't do it, it isn't
expected to work like virtual/". The alternative is just more confusion and docs
which can't be as clear.
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS
2021-09-01 13:23 ` [OE-core] " Bruce Ashfield
2021-09-01 14:46 ` Peter Kjellerstedt
@ 2021-09-01 17:10 ` Michael Opdenacker
1 sibling, 0 replies; 6+ messages in thread
From: Michael Opdenacker @ 2021-09-01 17:10 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: Patches and discussions about the oe-core layer
Hi Bruce
On 9/1/21 3:23 PM, Bruce Ashfield wrote:
> On Wed, Sep 1, 2021 at 5:20 AM Michael Opdenacker
> <michael.opdenacker@bootlin.com> wrote:
>> Fixes [YOCTO #14538]
>>
>> Recipes shouldn't use the "virtual/" string in RPROVIDES and RDEPENDS.
>>
>> That's confusing because "virtual/" has no special meaning in
>> RPROVIDES and RDEPENDS (unlike in PROVIDES and DEPENDS).
>>
>> Instead, using "virtual-" instead of "virtual/"
>> as already done in the glibc recipe.
> We have quite a few cases in meta-virtualization, where the same
> unclear syntax is used.
>
> I can take care of updating it, if you aren't looking at it already.
That would be great if you take care of it. I just covered oe-core and
meta-oe so far.
Thanks!
Michael.
--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-09-01 17:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 9:20 [PATCH] meta: stop using "virtual/" in RPROVIDES and RDEPENDS Michael Opdenacker
2021-09-01 13:23 ` [OE-core] " Bruce Ashfield
2021-09-01 14:46 ` Peter Kjellerstedt
2021-09-01 14:52 ` Bruce Ashfield
2021-09-01 15:06 ` Richard Purdie
2021-09-01 17:10 ` Michael Opdenacker
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.