Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/runc/
Date: Tue, 05 Oct 2021 19:09:26
Message-Id: 1633460958.adc4ff5888f91270724d0371708ceea140603762.williamh@gentoo
1 commit: adc4ff5888f91270724d0371708ceea140603762
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 5 19:08:41 2021 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 5 19:09:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adc4ff58
7
8 app-emulation/runc: 1.0.2 bump
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
12
13 app-emulation/runc/Manifest | 1 +
14 app-emulation/runc/runc-1.0.2.ebuild | 78 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 79 insertions(+)
16
17 diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest
18 index 256eca2cc2a..e706170bb81 100644
19 --- a/app-emulation/runc/Manifest
20 +++ b/app-emulation/runc/Manifest
21 @@ -1 +1,2 @@
22 DIST runc-1.0.0.tar.gz 2366170 BLAKE2B 1b6455cd45bc51b92c12b3293037446da62957d441124e9b76fd44ce92329e0eb2fde2ef71c6519fc4d58bcbd4ef580f64d71753a6fc06f3f6e347de170bd9c3 SHA512 8ddad1e031237c07b6cab5cfe5bdb7b11bf98d5d1064ec06845f36da073fe65a0facc6a28ba5daff71cdcb50cfd5d1cd25e97385b4eddb35b287113c2771365c
23 +DIST runc-1.0.2.tar.gz 2374156 BLAKE2B 526520adb7127e46e7258de75e66a15a5aac216a2a2fcb91f4d9c5da393892242c4d93c5f5483ab111bf29eed7d8f0c8c138ae83a22809d72802a981dcda0395 SHA512 434abd6d7ad2508c2272b627d8aeeb28ecd8461899bff463e7d2c7abbc0f0cbb2e0bafbfe81fc534fad506b1acb4bda3e05639ecd908bc9d0d2e9356f1e56e26
24
25 diff --git a/app-emulation/runc/runc-1.0.2.ebuild b/app-emulation/runc/runc-1.0.2.ebuild
26 new file mode 100644
27 index 00000000000..52f4e83f045
28 --- /dev/null
29 +++ b/app-emulation/runc/runc-1.0.2.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit go-module linux-info
37 +
38 +# update on bump, look for https://github.com/docker\
39 +# docker-ce/blob/<docker ver OR branch>/components/engine/hack/dockerfile/install/runc.installer
40 +RUNC_COMMIT=52b36a2dd837e8462de8e01458bf02cf9eea47dd
41 +CONFIG_CHECK="~USER_NS"
42 +
43 +DESCRIPTION="runc container cli tools"
44 +HOMEPAGE="http://runc.io"
45 +MY_PV="${PV/_/-}"
46 +SRC_URI="https://github.com/opencontainers/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="Apache-2.0 BSD-2 BSD MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
51 +IUSE="apparmor hardened +kmem +seccomp test"
52 +
53 +DEPEND="seccomp? ( sys-libs/libseccomp )"
54 +
55 +RDEPEND="
56 + ${DEPEND}
57 + !app-emulation/docker-runc
58 + apparmor? ( sys-libs/libapparmor )
59 +"
60 +
61 +BDEPEND="
62 + dev-go/go-md2man
63 + test? ( "${RDEPEND}" )
64 +"
65 +
66 +# tests need busybox binary, and portage namespace
67 +# sandboxing disabled: mount-sandbox pid-sandbox ipc-sandbox
68 +# majority of tests pass
69 +RESTRICT+=" test"
70 +
71 +S="${WORKDIR}/${PN}-${MY_PV}"
72 +
73 +src_compile() {
74 + # Taken from app-emulation/docker-1.7.0-r1
75 + export CGO_CFLAGS="-I${ESYSROOT}/usr/include"
76 + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')
77 + -L${ESYSROOT}/usr/$(get_libdir)"
78 +
79 + # build up optional flags
80 + local options=(
81 + $(usev apparmor)
82 + $(usev seccomp)
83 + $(usex kmem '' 'nokmem')
84 + )
85 +
86 + myemakeargs=(
87 + BUILDTAGS="${options[*]}"
88 + COMMIT="${RUNC_COMMIT}"
89 + )
90 +
91 + emake "${myemakeargs[@]}" runc man
92 +}
93 +
94 +src_install() {
95 + myemakeargs+=(
96 + PREFIX="${ED}/usr"
97 + BINDIR="${ED}/usr/bin"
98 + MANDIR="${ED}/usr/share/man"
99 + )
100 + emake "${myemakeargs[@]}" install install-man install-bash
101 +
102 + local DOCS=( README.md PRINCIPLES.md docs/. )
103 + einstalldocs
104 +}
105 +
106 +src_test() {
107 + emake "${myemakeargs[@]}" localunittest
108 +}