meta: stop using "virtual-" in RPROVIDES and RDEPENDS
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Simone Weiß <[email protected]>--- 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@@ -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-cfgmeta/recipes-bsp/grub/grub-efi_2.12.bb +1
-1@@ -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@@ -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@@ -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@@ -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
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
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.
Signed-off-by Simone Weiß <[email protected]>---
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@@ -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-cfgmeta/recipes- renamed from meta/recipes-bsp/grub/grub-efi_2.12.bb +0
-0bsp/grub/grub-efi_2.12.bb
index9857e8e036..078a59a465100644meta/recipes-bsp/grub/grub-efi_2.12.bb +0
-0@@ -5,7 +5,7 @@ require conf/image-uefi.confGRUBPLATFORM = "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@@ -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
-0core/musl/musl_git.bb
index324269a968..54df0de913100644meta/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@@ -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@@ -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-cfgI 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