summaryrefslogtreecommitdiffstats
path: root/recipes-containers/crun
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/crun')
-rw-r--r--recipes-containers/crun/crun_git.bb37
1 files changed, 25 insertions, 12 deletions
diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb
index 89ba21b4..0dbf362f 100644
--- a/recipes-containers/crun/crun_git.bb
+++ b/recipes-containers/crun/crun_git.bb
@@ -3,10 +3,10 @@ LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4PRIORITY = "optional" 4PRIORITY = "optional"
5 5
6SRCREV_crun = "89d44467e3b410b73f2065756a12789be45b855b" 6SRCREV_crun = "4d6eae2eb8047a7f51e536ffe461666b65b3d5e9"
7SRCREV_libocispec = "19c05670c37a42c217caa7b141bcaada7867cc15" 7SRCREV_libocispec = "5ffd4dd9fa684e0ffb2f0b5ea4a6cb638b021397"
8SRCREV_ispec = "9615142d016838b5dfe7453f80af0be74feb5c7c" 8SRCREV_ispec = "c66e8113cbad252a418d85f061bd1a20d0904d08"
9SRCREV_rspec = "720792f25ae6e9ee6b1332db698f37659e69ce8d" 9SRCREV_rspec = "9505701eb390445ef7edf2be3bd3d7bc1f14eae5"
10SRCREV_yajl = "f344d21280c3e4094919fd318bc5ce75da91fc06" 10SRCREV_yajl = "f344d21280c3e4094919fd318bc5ce75da91fc06"
11 11
12SRCREV_FORMAT = "crun_rspec" 12SRCREV_FORMAT = "crun_rspec"
@@ -17,19 +17,29 @@ SRC_URI = "git://github.com/containers/crun.git;branch=main;name=crun;protocol=h
17 git://github.com/containers/yajl.git;branch=main;name=yajl;destsuffix=git/libocispec/yajl;protocol=https \ 17 git://github.com/containers/yajl.git;branch=main;name=yajl;destsuffix=git/libocispec/yajl;protocol=https \
18 " 18 "
19 19
20PV = "v1.14.3+git${SRCREV_crun}" 20PV = "v1.20.0+git${SRCREV_crun}"
21S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
22 22
23REQUIRED_DISTRO_FEATURES ?= "systemd seccomp" 23inherit autotools-brokensep pkgconfig
24 24
25inherit autotools-brokensep pkgconfig features_check 25# if this is true, we'll symlink crun to runc for easier integration
26# with container stacks
27CRUN_AS_RUNC ?= "true"
26 28
27PACKAGECONFIG ??= "" 29PACKAGECONFIG ??= " \
30 caps external-yajl man \
31 ${@bb.utils.contains('DISTRO_FEATURES', 'seccomp', 'seccomp', '', d)} \
32 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
33"
28 34
29DEPENDS = "yajl libcap go-md2man-native m4-native" 35PACKAGECONFIG[caps] = "--enable-caps,--disable-caps,libcap"
30# TODO: is there a packageconfig to turn this off ? 36PACKAGECONFIG[external-yajl] = "--disable-embedded-yajl,--enable-embedded-yajl,yajl"
31DEPENDS += "libseccomp" 37# whether to regenerate manpages that are already present in the repo
32DEPENDS += "systemd" 38PACKAGECONFIG[man] = ",,go-md2man-native"
39PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
40PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
41
42DEPENDS = "m4-native"
33DEPENDS:append:libc-musl = " argp-standalone" 43DEPENDS:append:libc-musl = " argp-standalone"
34 44
35do_configure:prepend () { 45do_configure:prepend () {
@@ -41,4 +51,7 @@ do_configure:prepend () {
41 51
42do_install() { 52do_install() {
43 oe_runmake 'DESTDIR=${D}' install 53 oe_runmake 'DESTDIR=${D}' install
54 if [ -n "${CRUN_AS_RUNC}" ]; then
55 ln -sr "${D}/${bindir}/crun" "${D}${bindir}/runc"
56 fi
44} 57}