-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-containers/runc: add runc 1.1.14
Signed-off-by: Mathieu Tortuyaux <[email protected]>
- Loading branch information
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
sdk_container/src/third_party/portage-stable/app-containers/runc/Manifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST runc-1.1.12.tar.gz 2522196 BLAKE2B 14fe8d5f82d5b4d7f6b4bb9111c5d258e74f6a44aeb51fc87c69104e95b9bf24a3d503f4cc5dedb40d542fbd4b6e27273f456bda4fcf3bc298eb93ae292d9663 SHA512 92e8ac54a77d7ebcc76b5a9cc08d9a064211f12e9d26f064070cc203a5afb11c3af28d8f556f297513f797a2933d50bf10a8f22e307724041d66aa8c5ca1d9d3 | ||
DIST runc-1.1.13.tar.gz 2532849 BLAKE2B f3d3171ffce2bb833bfb5cc21d0dc034fd7e38c47ee098cc1fc75c06fd4dfae21dfe25c2e69a1ca93b29d36e8799727ea41725eee8aca3a059c14dab6c8a435f SHA512 644bf9e6359bf49bbdec667c0f7c69ded78c7eacfc2d1b730d52fdcf7348571c6406b8e5790811fe3662a458c878e4225c3559885f0d95f8905273e7e40e55ad | ||
DIST runc-1.1.14.tar.gz 2543890 BLAKE2B 3eede8cd7d04d2a3826cfc7caae032744551799e8262d28e989d3d5c66ca3969ce8dede064ebd37361a00eb276fa7c9961180dd9fc9b0d53535421ecc99acb39 SHA512 bdefbf34cf57485c6b961babc8294d0e6b2e003eb836b8e99c49ef4d00acf11f30a46ad0bcd399ee9346610419591daf1eecb3b6b127962357d629bf5f252e22 |
77 changes: 77 additions & 0 deletions
77
sdk_container/src/third_party/portage-stable/app-containers/runc/runc-1.1.14.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit go-module linux-info | ||
|
||
# update on bump, look for commit ID on release tag. | ||
# https://github.com/opencontainers/runc | ||
RUNC_COMMIT=2c9f5602f0ba3d9da1c2596322dfc4e156844890 | ||
CONFIG_CHECK="~USER_NS" | ||
|
||
DESCRIPTION="runc container cli tools" | ||
HOMEPAGE="https://github.com/opencontainers/runc/" | ||
MY_PV="${PV/_/-}" | ||
SRC_URI="https://github.com/opencontainers/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" | ||
S="${WORKDIR}/${PN}-${MY_PV}" | ||
|
||
LICENSE="Apache-2.0 BSD-2 BSD MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" | ||
IUSE="apparmor hardened +kmem +seccomp selinux test" | ||
|
||
DEPEND="seccomp? ( sys-libs/libseccomp )" | ||
|
||
RDEPEND=" | ||
${DEPEND} | ||
!app-emulation/docker-runc | ||
apparmor? ( sys-libs/libapparmor ) | ||
selinux? ( sec-policy/selinux-container ) | ||
" | ||
|
||
BDEPEND=" | ||
dev-go/go-md2man | ||
test? ( "${RDEPEND}" ) | ||
" | ||
|
||
# tests need busybox binary, and portage namespace | ||
# sandboxing disabled: mount-sandbox pid-sandbox ipc-sandbox | ||
# majority of tests pass | ||
RESTRICT+=" test" | ||
|
||
src_compile() { | ||
# Taken from app-containers/docker-1.7.0-r1 | ||
CGO_CFLAGS+=" -I${ESYSROOT}/usr/include" | ||
CGO_LDFLAGS+=" $(usex hardened '-fno-PIC ' '') | ||
-L${ESYSROOT}/usr/$(get_libdir)" | ||
|
||
# build up optional flags | ||
local options=( | ||
$(usev apparmor) | ||
$(usev seccomp) | ||
$(usex kmem '' 'nokmem') | ||
) | ||
|
||
myemakeargs=( | ||
BUILDTAGS="${options[*]}" | ||
COMMIT="${RUNC_COMMIT}" | ||
) | ||
|
||
emake "${myemakeargs[@]}" runc man | ||
} | ||
|
||
src_install() { | ||
myemakeargs+=( | ||
PREFIX="${ED}/usr" | ||
BINDIR="${ED}/usr/bin" | ||
MANDIR="${ED}/usr/share/man" | ||
) | ||
emake "${myemakeargs[@]}" install install-man install-bash | ||
|
||
local DOCS=( README.md PRINCIPLES.md docs/. ) | ||
einstalldocs | ||
} | ||
|
||
src_test() { | ||
emake "${myemakeargs[@]}" localunittest | ||
} |