Skip to contentSkip to conversation

meta: stop using "virtual-" in RPROVIDES and RDEPENDS

PATCH In review [email protected] 2 participants 3 messages Feb 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta: stop using "virtual-" in RPROVIDES and RDEPENDS

From: Simone Weiß <[email protected]>

Instead of using "virtual-" use "VIRTUAL-RUNTIME_" as recommended in insane.bbclass for RPROVIDES and RDEPENDS.

---
 meta/recipes-bsp/grub/grub-bootconf_1.00.bb        | 2 +-
 meta/recipes-bsp/grub/grub-efi_2.12.bb             | 2 +-
 meta/recipes-core/glibc/glibc-package.inc          | 2 +-
 meta/recipes-core/musl/musl_git.bb                 | 2 +-
 meta/recipes-core/systemd/systemd-boot_255.1.bb    | 2 +-
 meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-bsp/grub/grub-bootconf_1.00.bb +1 -1
index 783e30bf38..33a4517e5b 100644
@@ -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-RUNTIME_grub-bootconf"
 
 inherit grub-efi-cfg
 
meta/recipes-bsp/grub/grub-efi_2.12.bb +1 -1
index 9857e8e036..078a59a465 100644
@@ -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-RUNTIME_grub-bootconf"
 
 SRC_URI += " \
            file://cfg \
meta/recipes-core/glibc/glibc-package.inc +1 -1
index 1ef987be0a..8846934b25 100644
@@ -7,7 +7,7 @@ RPROVIDES:${PN} = "eglibc rtld(GNU_HASH)"
 RPROVIDES:${PN}-utils = "eglibc-utils"
 RPROVIDES:${PN}-mtrace = "eglibc-mtrace libc-mtrace"
 RPROVIDES:${PN}-pic = "eglibc-pic"
-RPROVIDES:${PN}-dev = "eglibc-dev libc6-dev virtual-libc-dev"
+RPROVIDES:${PN}-dev = "eglibc-dev libc6-dev VIRTUAL-RUNTIME_libc-dev"
 RPROVIDES:${PN}-staticdev = "eglibc-staticdev"
 RPROVIDES:${PN}-doc = "eglibc-doc"
 RPROVIDES:glibc-extra-nss = "eglibc-extra-nss"
meta/recipes-core/musl/musl_git.bb +1 -1
index 324269a968..54df0de913 100644
@@ -76,7 +76,7 @@ FILES:${PN}-dev =+ "${libdir}/libcrypt.a ${libdir}/libdl.a ${libdir}/libm.a \
                    "
 
 RDEPENDS:${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"
-RPROVIDES:${PN}-dev += "libc-dev virtual-libc-dev"
+RPROVIDES:${PN}-dev += "libc-dev VIRTUAL-RUNTIME_libc-dev"
 RPROVIDES:${PN} += "ldd rtld(GNU_HASH)"
 
 LEAD_SONAME = "libc.so"
meta/recipes-core/systemd/systemd-boot_255.1.bb +1 -1
index 4ee25ee72f..32495c883d 100644
@@ -45,7 +45,7 @@ python __anonymous () {
 
 FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"
 
-RDEPENDS:${PN} += "virtual-systemd-bootconf"
+RDEPENDS:${PN} += "VIRTUAL-RUNTIME_systemd-bootconf"
 
 CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t"
 
meta/recipes-core/systemd/systemd-bootconf_1.00.bb +1 -1
index 19637546a9..5017b256e7 100644
@@ -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-RUNTIME_systemd-bootconf"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit systemd-boot-cfg
Signature · 1 line
2.39.2
#1 lore raw
Quoted 85 lines · Simone Weiß

From: Simone Weiß <[email protected]>

Instead of using "virtual-" use "VIRTUAL-RUNTIME_" as recommended in insane.bbclass for RPROVIDES and RDEPENDS.

---
 meta/recipes-bsp/grub/grub-bootconf_1.00.bb        | 2 +-
 meta/recipes-bsp/grub/grub-efi_2.12.bb             | 2 +-
 meta/recipes-core/glibc/glibc-package.inc          | 2 +-
 meta/recipes-core/musl/musl_git.bb                 | 2 +-
 meta/recipes-core/systemd/systemd-boot_255.1.bb    | 2 +-
 meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-bsp/grub/grub-bootconf_1.00.bb +1 -1
index 783e30bf38..33a4517e5b 100644
@@ -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-RUNTIME_grub-bootconf"
 
 inherit grub-efi-cfg
 
meta/recipes-bsp/grub/grub-efi_2.12.bb +1 -1
index 9857e8e036..078a59a465 100644
@@ -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-RUNTIME_grub-bootconf"
 
 SRC_URI += " \
            file://cfg \
meta/recipes-core/glibc/glibc-package.inc +1 -1
index 1ef987be0a..8846934b25 100644
@@ -7,7 +7,7 @@ RPROVIDES:${PN} = "eglibc rtld(GNU_HASH)"
 RPROVIDES:${PN}-utils = "eglibc-utils"
 RPROVIDES:${PN}-mtrace = "eglibc-mtrace libc-mtrace"
 RPROVIDES:${PN}-pic = "eglibc-pic"
-RPROVIDES:${PN}-dev = "eglibc-dev libc6-dev virtual-libc-dev"
+RPROVIDES:${PN}-dev = "eglibc-dev libc6-dev VIRTUAL-RUNTIME_libc-dev"
 RPROVIDES:${PN}-staticdev = "eglibc-staticdev"
 RPROVIDES:${PN}-doc = "eglibc-doc"
 RPROVIDES:glibc-extra-nss = "eglibc-extra-nss"
meta/recipes-core/musl/musl_git.bb +1 -1
index 324269a968..54df0de913 100644
@@ -76,7 +76,7 @@ FILES:${PN}-dev =+ "${libdir}/libcrypt.a ${libdir}/libdl.a ${libdir}/libm.a \
                    "
 
 RDEPENDS:${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"
-RPROVIDES:${PN}-dev += "libc-dev virtual-libc-dev"
+RPROVIDES:${PN}-dev += "libc-dev VIRTUAL-RUNTIME_libc-dev"
 RPROVIDES:${PN} += "ldd rtld(GNU_HASH)"
 
 LEAD_SONAME = "libc.so"
meta/recipes-core/systemd/systemd-boot_255.1.bb +1 -1
index 4ee25ee72f..32495c883d 100644
@@ -45,7 +45,7 @@ python __anonymous () {
 
 FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"
 
-RDEPENDS:${PN} += "virtual-systemd-bootconf"
+RDEPENDS:${PN} += "VIRTUAL-RUNTIME_systemd-bootconf"
 
 CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t"
 
meta/recipes-core/systemd/systemd-bootconf_1.00.bb +0 -0
index 19637546a9..5017b256e7 100644

meta/recipes-core/systemd/systemd-bootconf_1.00.bb LICENSE = "MIT" · line 8

Quoted 8 lines
meta/recipes-core/systemd/systemd-bootconf_1.00.bb +1 -1
@@ -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-RUNTIME_systemd-bootconf"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit systemd-boot-cfg

I appreciate the intent here but I'm not sure this is quite right.

Most of the usage of VIRTUAL-RUNTIME is done as variable substitution so ${VIRTUAL-RUNTIME_XXX} and then declared somewhere.

These cases of virtual-XXX are simple enough they don't require that. I think the patch could therefore add more confusion rather than improve things.

Cheers,

Richard

#2 lore raw
Quoted 111 lines · Richard Purdie
Quoted 104 lines · Simone Weiß

From: Simone Weiß <[email protected]>

Instead of using "virtual-" use "VIRTUAL-RUNTIME_" as recommended in insane.bbclass for RPROVIDES and RDEPENDS.

---
 meta/recipes-bsp/grub/grub-bootconf_1.00.bb        | 2 +- meta/recipes-bsp/grub/grub-efi_2.12.bb             | 2 +- meta/recipes-core/glibc/glibc-package.inc          | 2 +- meta/recipes-core/musl/musl_git.bb                 | 2 +- meta/recipes-core/systemd/systemd-boot_255.1.bb    | 2 +- meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 2 +-

 6 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-bsp/grub/grub-bootconf_1.00.bb +0 -0
index 783e30bf38..33a4517e5b 100644
@@ -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#Configurat ion"

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


 inherit grub-efi-cfg

meta/recipes- renamed from meta/recipes-bsp/grub/grub-efi_2.12.bb +0 -0

bsp/grub/grub-efi_2.12.bb
index 9857e8e036..078a59a465 100644

meta/recipes-bsp/grub/grub-efi_2.12.bb +0 -0
@@ -5,7 +5,7 @@ require conf/image-uefi.conf

 GRUBPLATFORM = "efi"

 DEPENDS:append = " grub-native"

meta/recipes-bsp/grub/grub-efi_2.12.bb +1 -1
-RDEPENDS:${PN} = "grub-common virtual-grub-bootconf"
+RDEPENDS:${PN} = "grub-common VIRTUAL-RUNTIME_grub-bootconf"


 SRC_URI += " \
            file://cfg \

meta/recipes-core/glibc/glibc-package.inc +0 -0
index 1ef987be0a..8846934b25 100644
@@ -7,7 +7,7 @@ RPROVIDES:${PN} = "eglibc rtld(GNU_HASH)"

 RPROVIDES:${PN}-utils = "eglibc-utils" RPROVIDES:${PN}-mtrace = "eglibc-mtrace libc-mtrace" RPROVIDES:${PN}-pic = "eglibc-pic"

meta/recipes-core/glibc/glibc-package.inc +1 -1
-RPROVIDES:${PN}-dev = "eglibc-dev libc6-dev virtual-libc-dev"
+RPROVIDES:${PN}-dev = "eglibc-dev libc6-dev VIRTUAL-RUNTIME_libc-

dev"
 RPROVIDES:${PN}-staticdev = "eglibc-staticdev"
 RPROVIDES:${PN}-doc = "eglibc-doc"
 RPROVIDES:glibc-extra-nss = "eglibc-extra-nss"

meta/recipes- renamed from meta/recipes-core/musl/musl_git.bb +0 -0

core/musl/musl_git.bb
index 324269a968..54df0de913 100644

meta/recipes-core/musl/musl_git.bb +0 -0
@@ -76,7 +76,7 @@ FILES:${PN}-dev =+ "${libdir}/libcrypt.a
 ${libdir}/libdl.a ${libdir}/libm.a \

                    "

 RDEPENDS:${PN}-dev += "linux-libc-headers-dev bsd-headers-dev libssp-nonshared-staticdev"

meta/recipes-core/musl/musl_git.bb +1 -1
-RPROVIDES:${PN}-dev += "libc-dev virtual-libc-dev"
+RPROVIDES:${PN}-dev += "libc-dev VIRTUAL-RUNTIME_libc-dev"

 RPROVIDES:${PN} += "ldd rtld(GNU_HASH)"

 LEAD_SONAME = "libc.so"

meta/recipes-core/systemd/systemd-boot_255.1.bb +0 -0
index 4ee25ee72f..32495c883d 100644
@@ -45,7 +45,7 @@ python __anonymous () {


 FILES:${PN} = "${EFI_FILES_PATH}/${SYSTEMD_BOOT_IMAGE}"

meta/recipes-core/systemd/systemd-boot_255.1.bb +1 -1
-RDEPENDS:${PN} += "virtual-systemd-bootconf"
+RDEPENDS:${PN} += "VIRTUAL-RUNTIME_systemd-bootconf"


 CFLAGS:append:libc-musl = " -D__DEFINED_wchar_t"

meta/recipes-core/systemd/systemd-bootconf_1.00.bb +0 -0
index 19637546a9..5017b256e7 100644
@@ -2,7 +2,7 @@ LICENSE = "MIT"

 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4d e20420"
 SUMMARY = "Basic systemd-boot configuration files"

meta/recipes-core/systemd/systemd-bootconf_1.00.bb +1 -1
-RPROVIDES:${PN} += "virtual-systemd-bootconf"
+RPROVIDES:${PN} += "VIRTUAL-RUNTIME_systemd-bootconf"
Quoted 3 lines

 PACKAGE_ARCH = "${MACHINE_ARCH}"

 inherit systemd-boot-cfg

I appreciate the intent here but I'm not sure this is quite right.

Quoted 2 lines

Most of the usage of VIRTUAL-RUNTIME is done as variable substitution so ${VIRTUAL-RUNTIME_XXX} and then declared somewhere.

True, I saw that.

Quoted 5 lines

These cases of virtual-XXX are simple enough they don't require that. I
think the patch could therefore add more confusion rather than improve
things.

Might be true, in that case let us just ignore the patch for now :)

Simone

Quoted 6 lines

Cheers,

Richard