summaryrefslogtreecommitdiffstats
path: root/recipes-containers/criu
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2021-07-28 14:22:43 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2021-08-02 17:17:53 -0400
commitd876cfc5bfafa516dee55d04b50b319a22165640 (patch)
treeea03c34f999bd85e440c85fc8e722df8666e2e68 /recipes-containers/criu
parent5fdf66c1e2ec0c6b08573bf0a6aa9f84d2fc4ae6 (diff)
downloadmeta-virtualization-d876cfc5bfafa516dee55d04b50b319a22165640.tar.gz
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 <richard.purdie@linuxfoundation.org> 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 <richard.purdie@linuxfoundation.org> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/criu')
-rw-r--r--recipes-containers/criu/criu_git.bb20
1 files changed, 10 insertions, 10 deletions
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 \
25COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux" 25COMPATIBLE_HOST = "(x86_64|arm|aarch64).*-linux"
26 26
27DEPENDS += "libnl libcap protobuf-c-native protobuf-c util-linux-native libbsd libnet" 27DEPENDS += "libnl libcap protobuf-c-native protobuf-c util-linux-native libbsd libnet"
28RDEPENDS_${PN} = "bash" 28RDEPENDS:${PN} = "bash"
29 29
30S = "${WORKDIR}/git" 30S = "${WORKDIR}/git"
31 31
@@ -34,17 +34,17 @@ S = "${WORKDIR}/git"
34# if the ARCH is ARMv7 or ARMv6. 34# if the ARCH is ARMv7 or ARMv6.
35# ARM BSPs need set CRIU_BUILD_ARCH variable for building CRIU. 35# ARM BSPs need set CRIU_BUILD_ARCH variable for building CRIU.
36# 36#
37EXTRA_OEMAKE_arm += "ARCH=arm UNAME-M=${CRIU_BUILD_ARCH} WERROR=0" 37EXTRA_OEMAKE:arm += "ARCH=arm UNAME-M=${CRIU_BUILD_ARCH} WERROR=0"
38EXTRA_OEMAKE_x86-64 += "ARCH=x86 WERROR=0" 38EXTRA_OEMAKE:x86-64 += "ARCH=x86 WERROR=0"
39EXTRA_OEMAKE_aarch64 += "ARCH=aarch64 WERROR=0" 39EXTRA_OEMAKE:aarch64 += "ARCH=aarch64 WERROR=0"
40 40
41EXTRA_OEMAKE_append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no" 41EXTRA_OEMAKE:append += "SBINDIR=${sbindir} LIBDIR=${libdir} INCLUDEDIR=${includedir} PIEGEN=no"
42EXTRA_OEMAKE_append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}" 42EXTRA_OEMAKE:append += "LOGROTATEDIR=${sysconfdir} SYSTEMDUNITDIR=${systemd_unitdir}"
43 43
44CFLAGS += "-D__USE_GNU -D_GNU_SOURCE " 44CFLAGS += "-D__USE_GNU -D_GNU_SOURCE "
45 45
46CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3" 46CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_INCDIR}/libnl3"
47CFLAGS_arm += "-D__WORDSIZE" 47CFLAGS:arm += "-D__WORDSIZE"
48 48
49# overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'" 49# overide LDFLAGS to allow criu to build without: "x86_64-poky-linux-ld: unrecognized option '-Wl,-O1'"
50export LDFLAGS="" 50export LDFLAGS=""
@@ -63,7 +63,7 @@ PACKAGECONFIG[selinux] = ",,libselinux"
63 63
64CLEANBROKEN = "1" 64CLEANBROKEN = "1"
65 65
66do_compile_prepend() { 66do_compile:prepend() {
67 rm -rf ${S}/images/google/protobuf/descriptor.proto 67 rm -rf ${S}/images/google/protobuf/descriptor.proto
68 ln -s ${PKG_CONFIG_SYSROOT_DIR}/usr/include/google/protobuf/descriptor.proto ${S}/images/google/protobuf/descriptor.proto 68 ln -s ${PKG_CONFIG_SYSROOT_DIR}/usr/include/google/protobuf/descriptor.proto ${S}/images/google/protobuf/descriptor.proto
69} 69}
@@ -83,13 +83,13 @@ do_install () {
83 sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%g' ${D}/usr/bin/crit 83 sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%g' ${D}/usr/bin/crit
84} 84}
85 85
86FILES_${PN} += "${systemd_unitdir}/ \ 86FILES:${PN} += "${systemd_unitdir}/ \
87 ${libdir}/python3*/site-packages/ \ 87 ${libdir}/python3*/site-packages/ \
88 ${libdir}/pycriu/ \ 88 ${libdir}/pycriu/ \
89 ${libdir}/crit-0.0.1-py3*.egg-info \ 89 ${libdir}/crit-0.0.1-py3*.egg-info \
90 " 90 "
91 91
92FILES_${PN}-staticdev += " \ 92FILES:${PN}-staticdev += " \
93 ${libexecdir}/compel/std.lib.a \ 93 ${libexecdir}/compel/std.lib.a \
94 ${libexecdir}/compel/fds.lib.a \ 94 ${libexecdir}/compel/fds.lib.a \
95 " 95 "