diff options
Diffstat (limited to 'recipes-containers/crun/crun_git.bb')
-rw-r--r-- | recipes-containers/crun/crun_git.bb | 37 |
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" | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
4 | PRIORITY = "optional" | 4 | PRIORITY = "optional" |
5 | 5 | ||
6 | SRCREV_crun = "89d44467e3b410b73f2065756a12789be45b855b" | 6 | SRCREV_crun = "4d6eae2eb8047a7f51e536ffe461666b65b3d5e9" |
7 | SRCREV_libocispec = "19c05670c37a42c217caa7b141bcaada7867cc15" | 7 | SRCREV_libocispec = "5ffd4dd9fa684e0ffb2f0b5ea4a6cb638b021397" |
8 | SRCREV_ispec = "9615142d016838b5dfe7453f80af0be74feb5c7c" | 8 | SRCREV_ispec = "c66e8113cbad252a418d85f061bd1a20d0904d08" |
9 | SRCREV_rspec = "720792f25ae6e9ee6b1332db698f37659e69ce8d" | 9 | SRCREV_rspec = "9505701eb390445ef7edf2be3bd3d7bc1f14eae5" |
10 | SRCREV_yajl = "f344d21280c3e4094919fd318bc5ce75da91fc06" | 10 | SRCREV_yajl = "f344d21280c3e4094919fd318bc5ce75da91fc06" |
11 | 11 | ||
12 | SRCREV_FORMAT = "crun_rspec" | 12 | SRCREV_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 | ||
20 | PV = "v1.14.3+git${SRCREV_crun}" | 20 | PV = "v1.20.0+git${SRCREV_crun}" |
21 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
22 | 22 | ||
23 | REQUIRED_DISTRO_FEATURES ?= "systemd seccomp" | 23 | inherit autotools-brokensep pkgconfig |
24 | 24 | ||
25 | inherit autotools-brokensep pkgconfig features_check | 25 | # if this is true, we'll symlink crun to runc for easier integration |
26 | # with container stacks | ||
27 | CRUN_AS_RUNC ?= "true" | ||
26 | 28 | ||
27 | PACKAGECONFIG ??= "" | 29 | PACKAGECONFIG ??= " \ |
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 | ||
29 | DEPENDS = "yajl libcap go-md2man-native m4-native" | 35 | PACKAGECONFIG[caps] = "--enable-caps,--disable-caps,libcap" |
30 | # TODO: is there a packageconfig to turn this off ? | 36 | PACKAGECONFIG[external-yajl] = "--disable-embedded-yajl,--enable-embedded-yajl,yajl" |
31 | DEPENDS += "libseccomp" | 37 | # whether to regenerate manpages that are already present in the repo |
32 | DEPENDS += "systemd" | 38 | PACKAGECONFIG[man] = ",,go-md2man-native" |
39 | PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp" | ||
40 | PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" | ||
41 | |||
42 | DEPENDS = "m4-native" | ||
33 | DEPENDS:append:libc-musl = " argp-standalone" | 43 | DEPENDS:append:libc-musl = " argp-standalone" |
34 | 44 | ||
35 | do_configure:prepend () { | 45 | do_configure:prepend () { |
@@ -41,4 +51,7 @@ do_configure:prepend () { | |||
41 | 51 | ||
42 | do_install() { | 52 | do_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 | } |