From c4e9cd9d47b24bba76f691aa21b8ee36d64fdd11 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 5 Nov 2026 19:41:40 +0200 Subject: [PATCH] app-containers/crun: add 1.30.1 Closes: https://bugs.gentoo.org/942066 Closes: https://bugs.gentoo.org/957938 Signed-off-by: Arthur Zamarin --- app-containers/crun/Manifest | 1 + app-containers/crun/crun-1.30.1.ebuild | 121 +++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 app-containers/crun/crun-1.30.1.ebuild diff --git a/app-containers/crun/Manifest b/app-containers/crun/Manifest index 8869729072730..a260de5f0fab3 100644 --- a/app-containers/crun/Manifest +++ b/app-containers/crun/Manifest @@ -4,3 +4,4 @@ DIST crun-1.21.tar.gz 1788933 BLAKE2B bc854f8eb24566d608e90b44cb7dd2509b59cf6594 DIST crun-1.25.1.tar.gz 1867772 BLAKE2B 8bd15f34d867800838514d6fcc1fe90de5488ad29addb483148ab15027bcebaa7d5eb23dfe9d939679e1f0168c7104e0a3de1eaedc13de898faa1e116761b92f SHA512 46ec1efbd0532c2c531daad770670082bb57c5d11959f328ee6d20c4e4d6ba2a050150883fd01475f94850eb3ee8ce4bc8654f76cee3f83edebf208cd32d1cf8 DIST crun-1.28.tar.gz 1585077 BLAKE2B bc7d7cdaad87ad4131247f07fc947de69c51a7f6f909939f8b3e49035493dc87648d01340d9a1495af3c84741e4a619815ad6c012099fb3391958fdfda1bde8c SHA512 b27af828aaf8d7911669ab2df396ba8e314f6a14e31c7d40e19d79e9ba3f9e301e70e82a1d56def5aef171d2b69ac40ec7624ccd4cfd060f06e7762f801037ec DIST crun-1.29.1.tar.gz 1605621 BLAKE2B fb65f471f599a7bcd87fef7a95223a20f7bb3b86f3a71301bcb0dd595071b124154ca1f49173d3b26f34c0fb9034b4baed98c9effa7fcb3504d0a834081e7b1a SHA512 cf3f8fb0051ffb8eae30a1795557796696a67cc9a2e3b788e4a55621c87959f12ad4bb38e0010bcc3ac8e8fc5f3828fc3440a15c65e2190d6bb93472dcf9c64d +DIST crun-1.30.1.tar.gz 1685281 BLAKE2B e13bbceefd5bfa218ec623177488f0f0f25c6587cbdac279ff59eb457eeb19537c04dd7763d02b5e2dd2fb9b1513a6abef688c28e79884281358b3a3380571ac SHA512 be989349939c9082dcab471acb6fbd3898118566ab6628234d92bc9f3dcf9a88515f63ca5f52e34bd185fdcbdda465bd6e27cd3b4e10c1b43219adaeb75a7e9d diff --git a/app-containers/crun/crun-1.30.1.ebuild b/app-containers/crun/crun-1.30.1.ebuild new file mode 100644 index 0000000000000..e33aa37d48abd --- /dev/null +++ b/app-containers/crun/crun-1.30.1.ebuild @@ -0,0 +1,121 @@ +# Copyright 2019-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{12..15} ) + +inherit autotools libtool linux-info python-any-r1 flag-o-matic toolchain-funcs + +DESCRIPTION="Fast and low-memory footprint OCI Container Runtime fully written in C" +HOMEPAGE="https://github.com/containers/crun" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/containers/${PN}.git" +else + SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv" +fi + +LICENSE="GPL-2+ LGPL-2.1+" +SLOT="0" +IUSE="+bpf +caps criu +seccomp selinux systemd static-libs" + +DEPEND=" + dev-libs/blake3 + dev-libs/json-c:= + sys-kernel/linux-headers + caps? ( sys-libs/libcap ) + criu? ( >=sys-process/criu-3.15 ) + elibc_musl? ( + sys-libs/argp-standalone + sys-libs/error-standalone + ) + seccomp? ( sys-libs/libseccomp ) + systemd? ( sys-apps/systemd:= ) +" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-container ) +" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" + +pkg_setup() { + CONFIG_CHECK=" + ~NAMESPACES + ~NET_NS + ~PID_NS + ~IPC_NS + ~UTS_NS + ~USER_NS + ~CGROUPS + ~CGROUP_CPUACCT + ~CGROUP_DEVICE + ~CGROUP_FREEZER + ~CGROUP_PIDS + ~CGROUP_SCHED + ~CPUSETS + ~MEMCG + ~KEYS + ~POSIX_MQUEUE + " + + use bpf && CONFIG_CHECK+=" ~BPF_SYSCALL ~CGROUP_BPF" + use criu && CONFIG_CHECK+=" ~CHECKPOINT_RESTORE" + use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER" + use selinux && CONFIG_CHECK+=" ~SECURITY_SELINUX" + + linux-info_pkg_setup + python-any-r1_pkg_setup +} + +src_prepare() { + default + elibtoolize + eautoreconf +} + +src_configure() { + if use elibc_musl ; then + append-cflags "$($(tc-getPKG_CONFIG) --cflags error-standalone)" + append-libs "$($(tc-getPKG_CONFIG) --libs error-standalone)" + fi + local myeconfargs=( + --cache-file="${S}"/config.cache + --enable-embedded-blake3=no + $(use_enable bpf) + $(use_enable caps) + $(use_enable criu) + $(use_enable seccomp) + $(use_enable systemd) + --enable-shared + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + emake check-TESTS -C ./libocispec + + # The crun test suite is comprehensive to the extent that tests will fail + # within a sandbox environment, due to the nature of the privileges + # required to create linux "containers". + local supported_tests=( + "tests/tests_libcrun_utils" + "tests/tests_libcrun_errors" + "tests/tests_libcrun_intelrdt" + ) + emake check-TESTS TESTS="${supported_tests[*]}" CFLAGS="${CFLAGS} -std=gnu17" +} + +src_install() { + emake "DESTDIR=${D}" install-exec + doman crun.1 + einstalldocs + + find "${ED}" -name '*.la' -type f -delete || die +}