Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/crun/
Date: Wed, 01 Mar 2023 13:46:21
Message-Id: 1677678370.7b594d5e7f81994e0ac8cbd3928ee2f528e323fe.juippis@gentoo
1 commit: 7b594d5e7f81994e0ac8cbd3928ee2f528e323fe
2 Author: Robert Günzler <r <AT> gnzler <DOT> io>
3 AuthorDate: Tue Feb 28 12:27:19 2023 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 13:46:10 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b594d5e
7
8 app-containers/crun: bump to 1.8.1
9
10 includes python bump to 3.11
11
12 Closes: https://bugs.gentoo.org/895450
13 Closes: https://bugs.gentoo.org/896508
14 Signed-off-by: Robert Günzler <r <AT> gnzler.io>
15 Closes: https://github.com/gentoo/gentoo/pull/29854
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 app-containers/crun/Manifest | 1 +
19 app-containers/crun/crun-1.8.1.ebuild | 69 +++++++++++++++++++++++++++++++++++
20 2 files changed, 70 insertions(+)
21
22 diff --git a/app-containers/crun/Manifest b/app-containers/crun/Manifest
23 index 4777e551e272..f4de3c59d4f4 100644
24 --- a/app-containers/crun/Manifest
25 +++ b/app-containers/crun/Manifest
26 @@ -1,2 +1,3 @@
27 DIST crun-1.4.4.tar.xz 877892 BLAKE2B 57e48c0a229db3f54212177cef3fdb3f59b4bb1d1cc865da956f026a35837d839489bd126f880d7a9ceb18f5cffbf0e32ac9ae59a4cd39c34e3aff5b32c0559a SHA512 1756dccf6509457a5dc114d43c4f4e99258a20c3437dfe06016d080989c5d3035f5735d62d18ab537b660ec36de04df369a2582745baf4ab680af367a19830fd
28 DIST crun-1.4.5.tar.xz 879044 BLAKE2B c80cae28c23140086682493a7dddb40640491e3ea827f0a7376d9be12570111d056022f50b8d7c574ca07790753d20de2314db5b89463994c4fffbc7576c372d SHA512 9f288279615fdf587018c465047fc8793daae280ab864bf9046994983239129d50f2eb89cac9b092e5cdc49a10f3523ab403a3f0e7451f7536b79f651a355153
29 +DIST crun-1.8.1.tar.xz 692152 BLAKE2B b5dce1a454641221c591f50ac8519d4e9e9d892ea56232fa3fc9916934c19eba5853019238b1837cd5fb61f0dec5e0e6a11c02f628bece3b69c9c4f5750addae SHA512 6230b378f4746aff1d53f3ed797229b2056ece76e8e5b22d6f5f7b42e6042c6aff5294298f3cfd1293b4a87371dfa58cc69e57455e20948abd7269059ad39042
30
31 diff --git a/app-containers/crun/crun-1.8.1.ebuild b/app-containers/crun/crun-1.8.1.ebuild
32 new file mode 100644
33 index 000000000000..cca11e64b885
34 --- /dev/null
35 +++ b/app-containers/crun/crun-1.8.1.ebuild
36 @@ -0,0 +1,69 @@
37 +# Copyright 2019-2023 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=8
41 +
42 +PYTHON_COMPAT=( python3_{9..11} )
43 +
44 +# Can drop autotools/eautoreconf after next release & glibc patch gone
45 +inherit autotools python-any-r1
46 +
47 +DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C"
48 +HOMEPAGE="https://github.com/containers/crun"
49 +SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.xz"
50 +
51 +LICENSE="GPL-2+ LGPL-2.1+"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv"
54 +IUSE="+bpf +caps criu +seccomp selinux systemd static-libs"
55 +
56 +DEPEND="
57 + dev-libs/yajl:=
58 + sys-kernel/linux-headers
59 + caps? ( sys-libs/libcap )
60 + criu? ( >=sys-process/criu-3.15 )
61 + seccomp? ( sys-libs/libseccomp )
62 + systemd? ( sys-apps/systemd:= )
63 +"
64 +RDEPEND="${DEPEND}
65 + selinux? ( sec-policy/selinux-container )"
66 +BDEPEND="
67 + ${PYTHON_DEPS}
68 + virtual/pkgconfig
69 +"
70 +
71 +# the crun test suite is comprehensive to the extent that tests will fail
72 +# within a sandbox environment, due to the nature of the privileges
73 +# required to create linux "containers".
74 +RESTRICT="test"
75 +
76 +src_prepare() {
77 + default
78 +
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + local myeconfargs=(
84 + $(use_enable bpf)
85 + $(use_enable caps)
86 + $(use_enable criu)
87 + $(use_enable seccomp)
88 + $(use_enable systemd)
89 + $(usex static-libs '--enable-shared --enable-static' '--enable-shared --disable-static' '' '')
90 + )
91 +
92 + econf "${myeconfargs[@]}"
93 +}
94 +
95 +src_compile() {
96 + emake git-version.h
97 + emake -C libocispec
98 + emake crun
99 +}
100 +
101 +src_install() {
102 + emake "DESTDIR=${D}" install-exec
103 + doman crun.1
104 + einstalldocs
105 +}