From d876cfc5bfafa516dee55d04b50b319a22165640 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 28 Jul 2021 14:22:43 -0400 Subject: global: overrides syntax conversion OEcore/bitbake are moving to use the clearer ":" as an overrides separator. This is pass one of updating the meta-virt recipes to use that syntax. This has only been minimally build/runtime tested, more changes will be required for missed overrides, or incorrect conversions Note: A recent bitbake is required: commit 75fad23fc06c008a03414a1fc288a8614c6af9ca Author: Richard Purdie Date: Sun Jul 18 12:59:15 2021 +0100 bitbake: data_smart/parse: Allow ':' characters in variable/function names It is becomming increasingly clear we need to find a way to show what is/is not an override in our syntax. We need to do this in a way which is clear to users, readable and in a way we can transition to. The most effective way I've found to this is to use the ":" charater to directly replace "_" where an override is being specified. This includes "append", "prepend" and "remove" which are effectively special override directives. This patch simply adds the character to the parser so bitbake accepts the value but maps it back to "_" internally so there is no behaviour change. This change is simple enough it could potentially be backported to older version of bitbake meaning layers using the new syntax/markup could work with older releases. Even if other no other changes are accepted at this time and we don't backport, it does set us on a path where at some point in future we could require a more explict syntax. I've tested this patch by converting oe-core/meta-yocto to the new syntax for overrides (9000+ changes) and then seeing that builds continue to work with this patch. (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284) Signed-off-by: Richard Purdie Signed-off-by: Bruce Ashfield --- recipes-containers/cgroup-lite/cgroup-lite_1.15.bb | 4 +- .../containerd/containerd-opencontainers_git.bb | 12 ++--- recipes-containers/cri-o/cri-o_git.bb | 22 ++++----- recipes-containers/cri-tools/cri-tools_git.bb | 8 ++-- recipes-containers/criu/criu_git.bb | 20 ++++----- recipes-containers/crun/crun_git.bb | 2 +- .../python3-docker-compose_1.29.2.bb | 2 +- .../docker-distribution/docker-distribution_git.bb | 16 +++---- recipes-containers/docker/docker.inc | 38 ++++++++-------- recipes-containers/go-digest/go-digest_git.bb | 4 +- recipes-containers/go-errors/go-errors_git.bb | 4 +- .../go-spf13-cobra/spf13-cobra_git.bb | 4 +- .../go-spf13-pflag/spf13-pflag_git.bb | 4 +- recipes-containers/k3s/k3s_git.bb | 22 ++++----- recipes-containers/kubernetes/kubernetes_git.bb | 26 +++++------ recipes-containers/lxc/lxc_4.0.9.bb | 52 +++++++++++----------- recipes-containers/lxcfs/lxcfs_4.0.7.bb | 6 +-- .../oci-image-spec/oci-image-spec_git.bb | 2 +- .../oci-image-tools/oci-image-tools_git.bb | 2 +- .../oci-runtime-spec/oci-runtime-spec_git.bb | 2 +- .../oci-runtime-tools/oci-runtime-tools_git.bb | 2 +- .../oci-systemd-hook/oci-systemd-hook_git.bb | 2 +- .../podman-compose/podman-compose_0.1.5.bb | 2 +- recipes-containers/podman/podman_git.bb | 10 ++--- recipes-containers/riddler/riddler_git.bb | 2 +- recipes-containers/runc/runc.inc | 2 +- recipes-containers/singularity/singularity_git.bb | 6 +-- recipes-containers/skopeo/skopeo_git.bb | 8 ++-- recipes-containers/tini/tini_0.19.0.bb | 4 +- recipes-containers/umoci/umoci_git.bb | 8 ++-- 30 files changed, 149 insertions(+), 149 deletions(-) (limited to 'recipes-containers') diff --git a/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb b/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb index 45cc287c..8bed040a 100644 --- a/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb +++ b/recipes-containers/cgroup-lite/cgroup-lite_1.15.bb @@ -17,8 +17,8 @@ INITSCRIPT_PARAMS = "start 8 2 3 4 5 . stop 20 0 1 6 ." # Keeps the sysvinit scripts out of the image if building # where systemd is in use. SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE_${PN} = "cgroups-init.service" -SYSTEMD_AUTO_ENABLE_${PN} = "mask" +SYSTEMD_SERVICE:${PN} = "cgroups-init.service" +SYSTEMD_AUTO_ENABLE:${PN} = "mask" do_install() { diff --git a/recipes-containers/containerd/containerd-opencontainers_git.bb b/recipes-containers/containerd/containerd-opencontainers_git.bb index d10e2aaa..55881fab 100644 --- a/recipes-containers/containerd/containerd-opencontainers_git.bb +++ b/recipes-containers/containerd/containerd-opencontainers_git.bb @@ -20,7 +20,7 @@ CONTAINERD_VERSION = "v1.5.4" EXTRA_OEMAKE += "GODEBUG=1" PROVIDES += "virtual/containerd" -RPROVIDES_${PN} = "virtual/containerd" +RPROVIDES:${PN} = "virtual/containerd" S = "${WORKDIR}/git" @@ -33,7 +33,7 @@ GO_IMPORT = "import" CONTAINERD_PKG="github.com/containerd/containerd" -INSANE_SKIP_${PN} += "ldflags" +INSANE_SKIP:${PN} += "ldflags" do_configure[noexec] = "1" @@ -91,7 +91,7 @@ do_compile() { inherit systemd SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" -SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','containerd.service','',d)}" +SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','containerd.service','',d)}" do_install() { mkdir -p ${D}/${bindir} @@ -116,12 +116,12 @@ do_install() { fi } -FILES_${PN} += "${systemd_system_unitdir}/*" +FILES:${PN} += "${systemd_system_unitdir}/*" -INSANE_SKIP_${PN} += "ldflags already-stripped" +INSANE_SKIP:${PN} += "ldflags already-stripped" COMPATIBLE_HOST = "^(?!(qemu)?mips).*" -RDEPENDS_${BPN} += " virtual/runc" +RDEPENDS:${BPN} += " virtual/runc" CVE_PRODUCT = "containerd" diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index 5adef226..5a20c744 100644 --- a/recipes-containers/cri-o/cri-o_git.bb +++ b/recipes-containers/cri-o/cri-o_git.bb @@ -41,7 +41,7 @@ DEPENDS = " \ libseccomp \ libselinux \ " -RDEPENDS_${PN} = " \ +RDEPENDS:${PN} = " \ cni \ libdevmapper \ " @@ -50,8 +50,8 @@ PNBLACKLIST[cri-o] ?= "${@bb.utils.contains('BBFILE_COLLECTIONS', 'security', bb PACKAGES =+ "${PN}-config" -RDEPENDS_${PN} += " virtual/containerd virtual/runc" -RDEPENDS_${PN} += " e2fsprogs-mke2fs conmon util-linux iptables conntrack-tools" +RDEPENDS:${PN} += " virtual/containerd virtual/runc" +RDEPENDS:${PN} += " e2fsprogs-mke2fs conmon util-linux iptables conntrack-tools" inherit systemd inherit go @@ -70,8 +70,8 @@ do_compile() { } SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" -SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}" -SYSTEMD_AUTO_ENABLE_${PN} = "enable" +SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','crio.service','',d)}" +SYSTEMD_AUTO_ENABLE:${PN} = "enable" do_install() { set +e @@ -98,15 +98,15 @@ do_install() { install -m 0644 ${S}/src/import/contrib/systemd/crio-wipe.service ${D}${systemd_unitdir}/system/ } -FILES_${PN}-config = "${sysconfdir}/crio/config/*" -FILES_${PN} += "${systemd_unitdir}/system/*" -FILES_${PN} += "/usr/local/bin/*" -FILES_${PN} += "/usr/share/containers/oci/hooks.d" +FILES:${PN}-config = "${sysconfdir}/crio/config/*" +FILES:${PN} += "${systemd_unitdir}/system/*" +FILES:${PN} += "/usr/local/bin/*" +FILES:${PN} += "/usr/share/containers/oci/hooks.d" # don't clobber hooks.d -ALLOW_EMPTY_${PN} = "1" +ALLOW_EMPTY:${PN} = "1" -INSANE_SKIP_${PN} += "ldflags already-stripped" +INSANE_SKIP:${PN} += "ldflags already-stripped" deltask compile_ptest_base diff --git a/recipes-containers/cri-tools/cri-tools_git.bb b/recipes-containers/cri-tools/cri-tools_git.bb index f87ca19d..06d1b439 100644 --- a/recipes-containers/cri-tools/cri-tools_git.bb +++ b/recipes-containers/cri-tools/cri-tools_git.bb @@ -29,7 +29,7 @@ GO_IMPORT = "import" PV = "1.21.0+git${SRCREV_cri-tools}" -RPROVIDES_${PN} += "crictl" +RPROVIDES:${PN} += "crictl" PACKAGES =+ "${PN}-critest" inherit go @@ -66,12 +66,12 @@ do_install() { install -m 755 -D ${S}/src/import/build/bin/* ${D}/${bindir} } -FILES_${PN}-critest = "${bindir}/critest" +FILES:${PN}-critest = "${bindir}/critest" # don't clobber hooks.d -ALLOW_EMPTY_${PN} = "1" +ALLOW_EMPTY:${PN} = "1" -INSANE_SKIP_${PN} += "ldflags already-stripped textrel" +INSANE_SKIP:${PN} += "ldflags already-stripped textrel" deltask compile_ptest_base diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb index febf81ed..045a4318 100644 --- a/recipes-containers/criu/criu_git.bb +++ b/recipes-containers/criu/criu_git.bb @@ -25,7 +25,7 @@ SRC_URI = "git://github.com/checkpoint-restore/criu.git;branch=criu-dev \ COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" DEPENDS += "libnl libcap protobuf-c-native protobuf-c util-linux-native libbsd libnet" -RDEPENDS_${PN} = "bash" +RDEPENDS:${PN} = "bash" S = "${WORKDIR}/git" @@ -34,17 +34,17 @@ S = "${WORKDIR}/git" # if the ARCH is ARMv7 or ARMv6. # ARM BSPs need set CRIU_BUILD_ARCH variable for building CRIU. # -EXTRA_OEMAKE_arm += "ARCH=arm UNAME-M=${CRIU_BUILD_ARCH} WERROR=0" -EXTRA_OEMAKE_x86-64 += "ARCH=x86 WERROR=0" -EXTRA_OEMAKE_aarch64 += "ARCH=aarch64 WERROR=0" +EXTRA_OEMAKE:arm += "ARCH=arm UNAME-M=${CRIU_BUILD_ARCH} WERROR=0" +EXTRA_OEMAKE:x86-64 += "ARCH=x86 WERROR=0" +EXTRA_OEMAKE:aarch64 += "ARCH=aarch64 WERROR=0" -EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no" -EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}" +EXTRA_OEMAKE:append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no" +EXTRA_OEMAKE:append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}" CFLAGS += "-D__USE_GNU -D_GNU_SOURCE " CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3" -CFLAGS_arm += "-D__WORDSIZE" +CFLAGS:arm += "-D__WORDSIZE" # overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'" export LDFLAGS="" @@ -63,7 +63,7 @@ PACKAGECONFIG[selinux] = ",,libselinux" CLEANBROKEN = "1" -do_compile_prepend() { +do_compile:prepend() { rm -rf ${S}/images/google/protobuf/descriptor.proto ln -s ${PKG_CONFIG_SYSROOT_DIR}/usr/include/google/protobuf/descriptor.proto ${S}/images/google/protobuf/descriptor.proto } @@ -83,13 +83,13 @@ do_install () { sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%g' ${D}/usr/bin/crit } -FILES_${PN} += "${systemd_unitdir}/ \ +FILES:${PN} += "${systemd_unitdir}/ \ ${libdir}/python3*/site-packages/ \ ${libdir}/pycriu/ \ ${libdir}/crit-0.0.1-py3*.egg-info \ " -FILES_${PN}-staticdev += " \ +FILES:${PN}-staticdev += " \ ${libexecdir}/compel/std.lib.a \ ${libexecdir}/compel/fds.lib.a \ " diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb index b2efb093..116e326e 100644 --- a/recipes-containers/crun/crun_git.bb +++ b/recipes-containers/crun/crun_git.bb @@ -33,7 +33,7 @@ DEPENDS += "libseccomp" DEPENDS += "systemd" DEPENDS += "oci-image-spec oci-runtime-spec" -do_configure_prepend () { +do_configure:prepend () { ./autogen.sh } diff --git a/recipes-containers/docker-compose/python3-docker-compose_1.29.2.bb b/recipes-containers/docker-compose/python3-docker-compose_1.29.2.bb index 22b7150a..3755071c 100644 --- a/recipes-containers/docker-compose/python3-docker-compose_1.29.2.bb +++ b/recipes-containers/docker-compose/python3-docker-compose_1.29.2.bb @@ -14,7 +14,7 @@ SRC_URI += "file://0001-setup.py-remove-maximum-version-requirements.patch \ DEPENDS += "${PYTHON_PN}-fastentrypoints-native" -RDEPENDS_${PN} = "\ +RDEPENDS:${PN} = "\ ${PYTHON_PN}-cached-property \ ${PYTHON_PN}-certifi \ ${PYTHON_PN}-chardet \ diff --git a/recipes-containers/docker-distribution/docker-distribution_git.bb b/recipes-containers/docker-distribution/docker-distribution_git.bb index a83452e0..48d1c93a 100644 --- a/recipes-containers/docker-distribution/docker-distribution_git.bb +++ b/recipes-containers/docker-distribution/docker-distribution_git.bb @@ -58,16 +58,16 @@ do_install() { install -d ${D}/${localstatedir}/lib/registry/ } -INSANE_SKIP_${PN} += "ldflags already-stripped" -INSANE_SKIP_${MLPREFIX}docker-registry += "ldflags already-stripped textrel" +INSANE_SKIP:${PN} += "ldflags already-stripped" +INSANE_SKIP:${MLPREFIX}docker-registry += "ldflags already-stripped textrel" -FILES_docker-registry = "${sbindir}/*" -FILES_docker-registry += "${systemd_unitdir}/system/docker-registry.service" -FILES_docker-registry += "${sysconfdir}/docker-distribution/*" -FILES_docker-registry += "${localstatedir}/lib/registry/" +FILES:docker-registry = "${sbindir}/*" +FILES:docker-registry += "${systemd_unitdir}/system/docker-registry.service" +FILES:docker-registry += "${sysconfdir}/docker-distribution/*" +FILES:docker-registry += "${localstatedir}/lib/registry/" -SYSTEMD_SERVICE_docker-registry = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker-registry.service','',d)}" -SYSTEMD_AUTO_ENABLE_docker-registry = "enable" +SYSTEMD_SERVICE:docker-registry = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker-registry.service','',d)}" +SYSTEMD_AUTO_ENABLE:docker-registry = "enable" RDEPENDS_${PN}-ptest_remove = "${PN}" diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc index 610da568..d22aae1e 100644 --- a/recipes-containers/docker/docker.inc +++ b/recipes-containers/docker/docker.inc @@ -20,25 +20,25 @@ DEPENDS = " \ libtool \ " -DEPENDS_append_class-target = " lvm2" -RDEPENDS_${PN} = "util-linux util-linux-unshare iptables \ +DEPENDS:append:class-target = " lvm2" +RDEPENDS:${PN} = "util-linux util-linux-unshare iptables \ ${@bb.utils.contains('DISTRO_FEATURES', 'aufs', 'aufs-util', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'cgroup-lite', d)} \ bridge-utils \ ca-certificates \ " -RDEPENDS_${PN} += "virtual/containerd virtual/runc" +RDEPENDS:${PN} += "virtual/containerd virtual/runc" -RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" +RRECOMMENDS:${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat kernel-module-nf-conntrack-netlink kernel-module-xt-addrtype kernel-module-xt-masquerade" PROVIDES += "virtual/docker" # we want all the docker variant recpes to be installable via "docker" PACKAGE_NAME = "docker" -RPROVIDES_${PN} += "docker" -RPROVIDES_${PN}-dbg += "docker-dbg" -RPROVIDES_${PN}-dev += "docker-dev" -RPROVIDES_${PN}-contrip += "docker-dev" +RPROVIDES:${PN} += "docker" +RPROVIDES:${PN}-dbg += "docker-dbg" +RPROVIDES:${PN}-dev += "docker-dev" +RPROVIDES:${PN}-contrip += "docker-dev" inherit pkgconfig PACKAGECONFIG ??= "docker-init" @@ -139,26 +139,26 @@ do_install() { SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}" -SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}" -SYSTEMD_AUTO_ENABLE_${PN} = "enable" +SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.socket','',d)}" +SYSTEMD_AUTO_ENABLE:${PN} = "enable" INITSCRIPT_PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','${PN}','',d)}" -INITSCRIPT_NAME_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','docker.init','',d)}" -INITSCRIPT_PARAMS_${PN} = "defaults" +INITSCRIPT_NAME:${PN} = "${@bb.utils.contains('DISTRO_FEATURES','sysvinit','docker.init','',d)}" +INITSCRIPT_PARAMS:${PN} = "defaults" inherit useradd USERADD_PACKAGES = "${PN}" -GROUPADD_PARAM_${PN} = "-r docker" +GROUPADD_PARAM:${PN} = "-r docker" COMPATIBLE_HOST = "^(?!(qemu)?mips).*" -INSANE_SKIP_${PN} += "ldflags textrel" +INSANE_SKIP:${PN} += "ldflags textrel" -FILES_${PN} += "${systemd_unitdir}/system/* ${sysconfdir}/docker" +FILES:${PN} += "${systemd_unitdir}/system/* ${sysconfdir}/docker" PACKAGES =+ "${PN}-contrib" -FILES_${PN}-contrib += "${datadir}/docker/check-config.sh" -RDEPENDS_${PN}-contrib += "bash" +FILES:${PN}-contrib += "${datadir}/docker/check-config.sh" +RDEPENDS:${PN}-contrib += "bash" # By the docker-packaging repository and https://docs.docker.com/engine/install/centos/#installation-methods # docker is packaged by most distros with a split between the engine and the CLI. @@ -171,9 +171,9 @@ RDEPENDS_${PN}-contrib += "bash" # set the DOCKER_UNIFIED_PACKAGE variable to False # PACKAGES =+ "${PN}-cli" -FILES_${PN}-cli += "${bindir}/docker" +FILES:${PN}-cli += "${bindir}/docker" # set to "False" if packages should be generated for the cli and engine, and # NOT rdepend to get a classic one-package install DOCKER_UNIFIED_PACKAGE ?= "True" -RDEPENDS_${PN} += "${@bb.utils.contains("DOCKER_UNIFIED_PACKAGE", "True", "${PN}-cli", "", d)}" +RDEPENDS:${PN} += "${@bb.utils.contains("DOCKER_UNIFIED_PACKAGE", "True", "${PN}-cli", "", d)}" diff --git a/recipes-containers/go-digest/go-digest_git.bb b/recipes-containers/go-digest/go-digest_git.bb index a2f8cd69..9a69d8f7 100644 --- a/recipes-containers/go-digest/go-digest_git.bb +++ b/recipes-containers/go-digest/go-digest_git.bb @@ -36,6 +36,6 @@ go_digest_file_sysroot_preprocess () { cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) } -FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" +FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" -CLEANBROKEN = "1" \ No newline at end of file +CLEANBROKEN = "1" diff --git a/recipes-containers/go-errors/go-errors_git.bb b/recipes-containers/go-errors/go-errors_git.bb index 3bb74a7c..0cac16c3 100644 --- a/recipes-containers/go-errors/go-errors_git.bb +++ b/recipes-containers/go-errors/go-errors_git.bb @@ -36,6 +36,6 @@ go_errors_file_sysroot_preprocess () { cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) } -FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" +FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" -CLEANBROKEN = "1" \ No newline at end of file +CLEANBROKEN = "1" diff --git a/recipes-containers/go-spf13-cobra/spf13-cobra_git.bb b/recipes-containers/go-spf13-cobra/spf13-cobra_git.bb index e942e4e3..8cd84ed4 100644 --- a/recipes-containers/go-spf13-cobra/spf13-cobra_git.bb +++ b/recipes-containers/go-spf13-cobra/spf13-cobra_git.bb @@ -36,6 +36,6 @@ cobra_file_sysroot_preprocess () { cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) } -FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" +FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" -CLEANBROKEN = "1" \ No newline at end of file +CLEANBROKEN = "1" diff --git a/recipes-containers/go-spf13-pflag/spf13-pflag_git.bb b/recipes-containers/go-spf13-pflag/spf13-pflag_git.bb index 2fbcb439..df0db0c9 100644 --- a/recipes-containers/go-spf13-pflag/spf13-pflag_git.bb +++ b/recipes-containers/go-spf13-pflag/spf13-pflag_git.bb @@ -36,6 +36,6 @@ pflag_file_sysroot_preprocess () { cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) } -FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" +FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" -CLEANBROKEN = "1" \ No newline at end of file +CLEANBROKEN = "1" diff --git a/recipes-containers/k3s/k3s_git.bb b/recipes-containers/k3s/k3s_git.bb index c0a393e7..d0c56f60 100644 --- a/recipes-containers/k3s/k3s_git.bb +++ b/recipes-containers/k3s/k3s_git.bb @@ -72,18 +72,18 @@ do_install() { PACKAGES =+ "${PN}-server ${PN}-agent" SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}-server ${PN}-agent','',d)}" -SYSTEMD_SERVICE_${PN}-server = "${@bb.utils.contains('DISTRO_FEATURES','systemd','k3s.service','',d)}" -SYSTEMD_SERVICE_${PN}-agent = "${@bb.utils.contains('DISTRO_FEATURES','systemd','k3s-agent.service','',d)}" -SYSTEMD_AUTO_ENABLE_${PN}-agent = "disable" +SYSTEMD_SERVICE:${PN}-server = "${@bb.utils.contains('DISTRO_FEATURES','systemd','k3s.service','',d)}" +SYSTEMD_SERVICE:${PN}-agent = "${@bb.utils.contains('DISTRO_FEATURES','systemd','k3s-agent.service','',d)}" +SYSTEMD_AUTO_ENABLE:${PN}-agent = "disable" -FILES_${PN}-agent = "${BIN_PREFIX}/bin/k3s-agent" -FILES_${PN} += "${BIN_PREFIX}/bin/*" +FILES:${PN}-agent = "${BIN_PREFIX}/bin/k3s-agent" +FILES:${PN} += "${BIN_PREFIX}/bin/*" -RDEPENDS_${PN} = "k3s-cni conntrack-tools coreutils findutils iptables iproute2 ipset virtual/containerd" -RDEPENDS_${PN}-server = "${PN}" -RDEPENDS_${PN}-agent = "${PN}" +RDEPENDS:${PN} = "k3s-cni conntrack-tools coreutils findutils iptables iproute2 ipset virtual/containerd" +RDEPENDS:${PN}-server = "${PN}" +RDEPENDS:${PN}-agent = "${PN}" -RRECOMMENDS_${PN} = "\ +RRECOMMENDS:${PN} = "\ kernel-module-xt-addrtype \ kernel-module-xt-nat \ kernel-module-xt-multiport \ @@ -95,7 +95,7 @@ RRECOMMENDS_${PN} = "\ kernel-module-xt-masquerade \ " -RCONFLICTS_${PN} = "kubectl" +RCONFLICTS:${PN} = "kubectl" INHIBIT_PACKAGE_STRIP = "1" -INSANE_SKIP_${PN} += "ldflags already-stripped" +INSANE_SKIP:${PN} += "ldflags already-stripped" diff --git a/recipes-containers/kubernetes/kubernetes_git.bb b/recipes-containers/kubernetes/kubernetes_git.bb index 6a8fd088..c2889096 100644 --- a/recipes-containers/kubernetes/kubernetes_git.bb +++ b/recipes-containers/kubernetes/kubernetes_git.bb @@ -87,30 +87,30 @@ do_install() { PACKAGES =+ "kubeadm kubectl kubelet kube-proxy ${PN}-misc" -ALLOW_EMPTY_${PN} = "1" -INSANE_SKIP_${PN} += "ldflags already-stripped" -INSANE_SKIP_${PN}-misc += "ldflags already-stripped" +ALLOW_EMPTY:${PN} = "1" +INSANE_SKIP:${PN} += "ldflags already-stripped" +INSANE_SKIP:${PN}-misc += "ldflags already-stripped" # Note: we are explicitly *not* adding docker to the rdepends, since we allow # backends like cri-o to be used. -RDEPENDS_${PN} += "kubeadm \ +RDEPENDS:${PN} += "kubeadm \ kubectl \ kubelet \ cni" -RDEPENDS_kubeadm = "kubelet kubectl" -FILES_kubeadm = "${bindir}/kubeadm ${systemd_unitdir}/system/kubelet.service.d/*" +RDEPENDS:kubeadm = "kubelet kubectl" +FILES:kubeadm = "${bindir}/kubeadm ${systemd_unitdir}/system/kubelet.service.d/*" -RDEPENDS_kubelet = "iptables socat util-linux ethtool iproute2 ebtables iproute2-tc" -FILES_kubelet = "${bindir}/kubelet ${systemd_unitdir}/system/kubelet.service ${sysconfdir}/kubernetes/manifests/" +RDEPENDS:kubelet = "iptables socat util-linux ethtool iproute2 ebtables iproute2-tc" +FILES:kubelet = "${bindir}/kubelet ${systemd_unitdir}/system/kubelet.service ${sysconfdir}/kubernetes/manifests/" SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','kubelet','',d)}" -SYSTEMD_SERVICE_kubelet = "${@bb.utils.contains('DISTRO_FEATURES','systemd','kubelet.service','',d)}" -SYSTEMD_AUTO_ENABLE_kubelet = "enable" +SYSTEMD_SERVICE:kubelet = "${@bb.utils.contains('DISTRO_FEATURES','systemd','kubelet.service','',d)}" +SYSTEMD_AUTO_ENABLE:kubelet = "enable" -FILES_kubectl = "${bindir}/kubectl" -FILES_kube-proxy = "${bindir}/kube-proxy" -FILES_${PN}-misc = "${bindir}" +FILES:kubectl = "${bindir}/kubectl" +FILES:kube-proxy = "${bindir}/kube-proxy" +FILES:${PN}-misc = "${bindir}" deltask compile_ptest_base diff --git a/recipes-containers/lxc/lxc_4.0.9.bb b/recipes-containers/lxc/lxc_4.0.9.bb index 79072915..0ef81a5a 100644 --- a/recipes-containers/lxc/lxc_4.0.9.bb +++ b/recipes-containers/lxc/lxc_4.0.9.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c " DEPENDS = "libxml2 libcap" -RDEPENDS_${PN} = " \ +RDEPENDS:${PN} = " \ rsync \ curl \ gzip \ @@ -30,11 +30,11 @@ RDEPENDS_${PN} = " \ util-linux-getopt \ " -RDEPENDS_${PN}_append_libc-glibc = " glibc-utils" +RDEPENDS:${PN}:append:libc-glibc = " glibc-utils" -RDEPENDS_${PN}-ptest += "file make gmp nettle gnutls bash libgcc" +RDEPENDS:${PN}-ptest += "file make gmp nettle gnutls bash libgcc" -RDEPENDS_${PN}-networking += "iptables" +RDEPENDS:${PN}-networking += "iptables" SRC_URI = "http://linuxcontainers.org/downloads/${BPN}/${BPN}-${PV}.tar.gz \ file://lxc-1.0.0-disable-udhcp-from-busybox-template.patch \ @@ -90,31 +90,31 @@ export STAGING_LIBDIR inherit autotools pkgconfig ptest update-rc.d systemd python3native SYSTEMD_PACKAGES = "${PN} ${PN}-networking" -SYSTEMD_SERVICE_${PN} = "lxc.service" -SYSTEMD_AUTO_ENABLE_${PN} = "disable" -SYSTEMD_SERVICE_${PN}-networking = "lxc-net.service" -SYSTEMD_AUTO_ENABLE_${PN}-networking = "enable" +SYSTEMD_SERVICE:${PN} = "lxc.service" +SYSTEMD_AUTO_ENABLE:${PN} = "disable" +SYSTEMD_SERVICE:${PN}-networking = "lxc-net.service" +SYSTEMD_AUTO_ENABLE:${PN}-networking = "enable" INITSCRIPT_PACKAGES = "${PN} ${PN}-networking" -INITSCRIPT_NAME_${PN} = "lxc-containers" -INITSCRIPT_PARAMS_${PN} = "defaults" -INITSCRIPT_NAME_${PN}-networking = "lxc-net" -INITSCRIPT_PARAMS_${PN}-networking = "defaults" +INITSCRIPT_NAME:${PN} = "lxc-containers" +INITSCRIPT_PARAMS:${PN} = "defaults" +INITSCRIPT_NAME:${PN}-networking = "lxc-net" +INITSCRIPT_PARAMS:${PN}-networking = "defaults" -FILES_${PN}-doc = "${mandir} ${infodir}" +FILES:${PN}-doc = "${mandir} ${infodir}" # For LXC the docdir only contains example configuration files and should be included in the lxc package -FILES_${PN} += "${docdir}" -FILES_${PN} += "${libdir}/python3*" -FILES_${PN} += "${datadir}/bash-completion" -FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" -FILES_${PN}-dbg += "${libexecdir}/lxc/hooks/.debug" +FILES:${PN} += "${docdir}" +FILES:${PN} += "${libdir}/python3*" +FILES:${PN} += "${datadir}/bash-completion" +FILES:${PN}-dbg += "${libexecdir}/lxc/.debug" +FILES:${PN}-dbg += "${libexecdir}/lxc/hooks/.debug" PACKAGES =+ "${PN}-templates ${PN}-networking ${PN}-lua" -FILES_lua-${PN} = "${datadir}/lua ${libdir}/lua" -FILES_lua-${PN}-dbg += "${libdir}/lua/lxc/.debug" -FILES_${PN}-templates += "${datadir}/lxc/templates" -RDEPENDS_${PN}-templates += "bash" +FILES:lua-${PN} = "${datadir}/lua ${libdir}/lua" +FILES:lua-${PN}-dbg += "${libdir}/lua/lxc/.debug" +FILES:${PN}-templates += "${datadir}/lxc/templates" +RDEPENDS:${PN}-templates += "bash" -FILES_${PN}-networking += " \ +FILES:${PN}-networking += " \ ${sysconfdir}/init.d/lxc-net \ ${sysconfdir}/default/lxc-net \ " @@ -125,7 +125,7 @@ CACHED_CONFIGUREVARS += " \ am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \ " -do_install_append() { +do_install:append() { # The /var/cache/lxc directory created by the Makefile # is wiped out in volatile, we need to create this at boot. rm -rf ${D}${localstatedir}/cache @@ -165,13 +165,13 @@ do_install_ptest() { mv ${D}/usr/bin/lxc-test-* ${D}/${PTEST_PATH}/tests/. } -pkg_postinst_${PN}() { +pkg_postinst:${PN}() { if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then /etc/init.d/populate-volatile.sh update fi } -pkg_postinst_${PN}-networking() { +pkg_postinst:${PN}-networking() { if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then cat >> $D/etc/network/interfaces << EOF diff --git a/recipes-containers/lxcfs/lxcfs_4.0.7.bb b/recipes-containers/lxcfs/lxcfs_4.0.7.bb index 11d2ff51..ea7132dc 100644 --- a/recipes-containers/lxcfs/lxcfs_4.0.7.bb +++ b/recipes-containers/lxcfs/lxcfs_4.0.7.bb @@ -14,12 +14,12 @@ SRC_URI[md5sum] = "9d963976207fb0ca4701428ae0587aeb" SRC_URI[sha256sum] = "3f28e2f4b04c0090aaf88b72666505f0313768a5254dd48a14c43cf78c543ec8" DEPENDS += "fuse" -RDEPENDS_${PN} += "fuse" +RDEPENDS:${PN} += "fuse" -FILES_${PN} += "${datadir}/lxc/config/common.conf.d/*" +FILES:${PN} += "${datadir}/lxc/config/common.conf.d/*" CACHED_CONFIGUREVARS += "ac_cv_path_HELP2MAN='false // No help2man //'" EXTRA_OECONF += "--with-distro=unknown --with-init-script=${VIRTUAL-RUNTIME_init_manager}" SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE_${PN} = "lxcfs.service" +SYSTEMD_SERVICE:${PN} = "lxcfs.service" diff --git a/recipes-containers/oci-image-spec/oci-image-spec_git.bb b/recipes-containers/oci-image-spec/oci-image-spec_git.bb index 58057408..570288c5 100644 --- a/recipes-containers/oci-image-spec/oci-image-spec_git.bb +++ b/recipes-containers/oci-image-spec/oci-image-spec_git.bb @@ -36,6 +36,6 @@ image_spec_file_sysroot_preprocess () { cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) } -FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" +FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" CLEANBROKEN = "1" diff --git a/recipes-containers/oci-image-tools/oci-image-tools_git.bb b/recipes-containers/oci-image-tools/oci-image-tools_git.bb index 799262cb..96d8de6e 100644 --- a/recipes-containers/oci-image-tools/oci-image-tools_git.bb +++ b/recipes-containers/oci-image-tools/oci-image-tools_git.bb @@ -62,4 +62,4 @@ do_install() { install ${S}/src/import/oci-image-tool ${D}/${sbindir}/ } -INSANE_SKIP_${PN} += "ldflags textrel" +INSANE_SKIP:${PN} += "ldflags textrel" diff --git a/recipes-containers/oci-runtime-spec/oci-runtime-spec_git.bb b/recipes-containers/oci-runtime-spec/oci-runtime-spec_git.bb index c4083c09..e66c75c3 100644 --- a/recipes-containers/oci-runtime-spec/oci-runtime-spec_git.bb +++ b/recipes-containers/oci-runtime-spec/oci-runtime-spec_git.bb @@ -36,6 +36,6 @@ runtime_spec_file_sysroot_preprocess () { cp -r ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME}) } -FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" +FILES:${PN} += "${prefix}/local/go/src/${PKG_NAME}/*" CLEANBROKEN = "1" diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb index 7f194027..6c1358c1 100644 --- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb @@ -12,7 +12,7 @@ SRCREV = "6e7da8148f4de2c9e9c9d3b345576898d4f412cb" PV = "0.1.0+git${SRCPV}" GO_IMPORT = "import" -INSANE_SKIP_${PN} += "ldflags textrel" +INSANE_SKIP:${PN} += "ldflags textrel" inherit goarch inherit go diff --git a/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb b/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb index 6734bffe..6838b541 100644 --- a/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb +++ b/recipes-containers/oci-systemd-hook/oci-systemd-hook_git.bb @@ -32,5 +32,5 @@ do_install() { oe_runmake 'DESTDIR=${D}' install-exec-am } -FILES_${PN} += "${libexecdir}/oci/hooks.d/" +FILES:${PN} += "${libexecdir}/oci/hooks.d/" diff --git a/recipes-containers/podman-compose/podman-compose_0.1.5.bb b/recipes-containers/podman-compose/podman-compose_0.1.5.bb index 1b91a92c..b7a29482 100644 --- a/recipes-containers/podman-compose/podman-compose_0.1.5.bb +++ b/recipes-containers/podman-compose/podman-compose_0.1.5.bb @@ -12,4 +12,4 @@ S = "${WORKDIR}/git" DEPENDS += "${PYTHON_PN}-pyyaml-native" -RDEPENDS_${PN} += "${PYTHON_PN}-pyyaml" +RDEPENDS:${PN} += "${PYTHON_PN}-pyyaml" diff --git a/recipes-containers/podman/podman_git.bb b/recipes-containers/podman/podman_git.bb index 7ca0703d..fd4edd91 100644 --- a/recipes-containers/podman/podman_git.bb +++ b/recipes-containers/podman/podman_git.bb @@ -100,15 +100,15 @@ do_install() { fi } -FILES_${PN} += " \ +FILES:${PN} += " \ ${systemd_unitdir}/system/* \ ${systemd_unitdir}/user/* \ ${nonarch_libdir}/tmpfiles.d/* \ ${sysconfdir}/cni \ " -SYSTEMD_SERVICE_${PN} = "podman.service podman.socket" +SYSTEMD_SERVICE:${PN} = "podman.service podman.socket" -RDEPENDS_${PN} += "conmon virtual/runc iptables cni skopeo" -RRECOMMENDS_${PN} += "slirp4netns kernel-module-xt-masquerade kernel-module-xt-comment" -RCONFLICTS_${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}" +RDEPENDS:${PN} += "conmon virtual/runc iptables cni skopeo" +RRECOMMENDS:${PN} += "slirp4netns kernel-module-xt-masquerade kernel-module-xt-comment" +RCONFLICTS:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'docker', 'docker', '', d)}" diff --git a/recipes-containers/riddler/riddler_git.bb b/recipes-containers/riddler/riddler_git.bb index 1bdf786a..5ba041a0 100644 --- a/recipes-containers/riddler/riddler_git.bb +++ b/recipes-containers/riddler/riddler_git.bb @@ -18,7 +18,7 @@ inherit go # In addition to hosts go does not like, we do not build for mips. # -COMPATIBLE_HOST_mipsarch = "null" +COMPATIBLE_HOST:mipsarch = "null" # This disables seccomp and apparmor, which are on by default in the # go package. diff --git a/recipes-containers/runc/runc.inc b/recipes-containers/runc/runc.inc index eb8aa022..486ee176 100644 --- a/recipes-containers/runc/runc.inc +++ b/recipes-containers/runc/runc.inc @@ -26,7 +26,7 @@ PACKAGECONFIG ??= "static \ PROVIDES += "virtual/runc" -RPROVIDES_${PN} = "virtual/runc" +RPROVIDES:${PN} = "virtual/runc" GO_IMPORT = "import" diff --git a/recipes-containers/singularity/singularity_git.bb b/recipes-containers/singularity/singularity_git.bb index 103270dd..bfa36288 100644 --- a/recipes-containers/singularity/singularity_git.bb +++ b/recipes-containers/singularity/singularity_git.bb @@ -1,8 +1,8 @@ # Skip QA check for library symbolic links (core issue is a packaging problem within # Singularity build / config: read up on the dev-so test for more info) -INSANE_SKIP_${PN} += "dev-so" +INSANE_SKIP:${PN} += "dev-so" -RDEPENDS_${PN} += "glibc python3 ca-certificates openssl bash e2fsprogs-mke2fs" +RDEPENDS:${PN} += "glibc python3 ca-certificates openssl bash e2fsprogs-mke2fs" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYRIGHT.md;md5=be78c34e483dd7d8439358b1e024b294 \ @@ -21,7 +21,7 @@ S = "${WORKDIR}/git" inherit python3native autotools-brokensep EXTRA_OECONF = "--prefix=/usr/local" -pkg_postinst_${PN}() { +pkg_postinst:${PN}() { # python3 expects CA certificates to be installed in a different place to where # they are actually installed. These lines link the two locations. rm -r $D${libdir}/ssl/certs diff --git a/recipes-containers/skopeo/skopeo_git.bb b/recipes-containers/skopeo/skopeo_git.bb index b86215db..7d2a9c13 100644 --- a/recipes-containers/skopeo/skopeo_git.bb +++ b/recipes-containers/skopeo/skopeo_git.bb @@ -14,7 +14,7 @@ DEPENDS = " \ inherit go -RDEPENDS_${PN} = " \ +RDEPENDS:${PN} = " \ gpgme \ libgpg-error \ libassuan \ @@ -81,7 +81,7 @@ do_install() { install ${WORKDIR}/registries.conf ${D}/${sysconfdir}/containers/registries.conf } -do_install_append_class-native() { +do_install:append:class-native() { create_cmdline_wrapper ${D}/${sbindir}/skopeo \ --policy ${sysconfdir}/containers/policy.json @@ -89,11 +89,11 @@ do_install_append_class-native() { LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} } -do_install_append_class-nativesdk() { +do_install:append:class-nativesdk() { create_cmdline_wrapper ${D}/${sbindir}/skopeo \ --policy ${sysconfdir}/containers/policy.json } -INSANE_SKIP_${PN} += "ldflags" +INSANE_SKIP:${PN} += "ldflags" BBCLASSEXTEND = "native nativesdk" diff --git a/recipes-containers/tini/tini_0.19.0.bb b/recipes-containers/tini/tini_0.19.0.bb index 62e285df..35a97bd1 100644 --- a/recipes-containers/tini/tini_0.19.0.bb +++ b/recipes-containers/tini/tini_0.19.0.bb @@ -18,7 +18,7 @@ S = "${WORKDIR}/git" BBCLASSEXTEND = "native" # tini links with -static, so no PIE for us -SECURITY_CFLAGS_pn-${PN} = "${SECURITY_NO_PIE_CFLAGS}" +SECURITY_CFLAGS:pn-${PN} = "${SECURITY_NO_PIE_CFLAGS}" inherit cmake @@ -29,4 +29,4 @@ do_install() { # Tini is the currently the provider for docker-init PROVIDES += "docker-init" -RPROVIDES_${PN} = "docker-init" +RPROVIDES:${PN} = "docker-init" diff --git a/recipes-containers/umoci/umoci_git.bb b/recipes-containers/umoci/umoci_git.bb index f83a35a7..69325d15 100644 --- a/recipes-containers/umoci/umoci_git.bb +++ b/recipes-containers/umoci/umoci_git.bb @@ -3,8 +3,8 @@ SUMMARY = "umoci modifies Open Container images" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57" -RDEPENDS_${PN} = "skopeo" -RDEPENDS_${PN}_class-native = "" +RDEPENDS:${PN} = "skopeo" +RDEPENDS:${PN}:class-native = "" SRCREV_umoci = "758044fc26ad65eb900143e90d1e22c2d6e4484d" SRC_URI = "git://github.com/opencontainers/umoci.git;branch=master;name=umoci;destsuffix=github.com/opencontainers/umoci \ @@ -22,7 +22,7 @@ inherit go EXTRA_OEMAKE="BUILDTAGS=''" -do_compile_class-native () { +do_compile:class-native () { export GOARCH="${BUILD_GOARCH}" # Pass the needed cflags/ldflags so that cgo can find the needed headers files and libraries @@ -76,5 +76,5 @@ do_install() { install ${S}/umoci ${D}/${sbindir} } -INSANE_SKIP_${PN} += "ldflags already-stripped" +INSANE_SKIP:${PN} += "ldflags already-stripped" BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf