Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/runc/
Date: Sun, 25 Nov 2018 14:27:56
Message-Id: 1543156053.90ccbce39cb707961c23897f53d693092d45072a.mrueg@gentoo
1 commit: 90ccbce39cb707961c23897f53d693092d45072a
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 25 14:27:33 2018 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 25 14:27:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90ccbce3
7
8 app-emulation/runc: Version bump to 1.0.0_rc6
9
10 Signed-off-by: Manuel Rüger <mrueg <AT> gentoo.org>
11 Package-Manager: Portage-2.3.52, Repoman-2.3.11
12
13 app-emulation/runc/Manifest | 1 +
14 app-emulation/runc/metadata.xml | 3 ++
15 app-emulation/runc/runc-1.0.0_rc6.ebuild | 61 ++++++++++++++++++++++++++++++++
16 3 files changed, 65 insertions(+)
17
18 diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest
19 index 1cdf1882eb7..e1dc14bd3e5 100644
20 --- a/app-emulation/runc/Manifest
21 +++ b/app-emulation/runc/Manifest
22 @@ -1,2 +1,3 @@
23 DIST runc-1.0.0_rc5.tar.gz 1183902 BLAKE2B 46d0ffd9aa79a6f74b3194fa9e1932390115a43c903ae553acb7749d6be41220874a1ff9bae9706b5fecb9495dd6686c38ee1e9baf6118a14990f142baf6f64d SHA512 714230887ff9706c29b0656c5cdb253698bde6252a23e7f48aa690747fb57abd7884c2da1c4d0e314f9f301c5962417351557d15d986e45fcc336e98069aeac6
24 DIST runc-1.0.0_rc5_p20180509.tar.gz 1185576 BLAKE2B b56f9c185c061f51a1fd81c19d378b06c71d06c6eddcbc1c946b234814eb469ea4af37bf42ef3889e4d37bc430e69d0a563281b13055f855f1bc15935531fe28 SHA512 9a55bdb8e39830f46cceff48970b7688139927552e3d268b9ef4a6e640ffc3d95164b99c5b05d07d295bedc2ea22daf6062fd520df1548d78b1d481fd928f1e3
25 +DIST runc-1.0.0_rc6.tar.gz 1202212 BLAKE2B 2795b6e88a9587fac61a50bfea52a9df8524eb87aae66129d7ea83e8c3ca586efc60a46d24af857f7ba50f8e4d7021cbd2845d322a8c0ad08be3e0f19d80ba3b SHA512 2f7ed5e835f000d9810a116a27300336f424ac2c370dd1c7d158e26a4997d1e8398612387be27cc22cc25fdd52cc4cff7963ef88ce9c41d337321b75d9be2334
26
27 diff --git a/app-emulation/runc/metadata.xml b/app-emulation/runc/metadata.xml
28 index fcadd0bb8dd..d38c867c132 100644
29 --- a/app-emulation/runc/metadata.xml
30 +++ b/app-emulation/runc/metadata.xml
31 @@ -20,6 +20,9 @@
32 <flag name="apparmor">
33 Enable AppArmor support.
34 </flag>
35 + <flag name="kmem">
36 + Enable Kernel Memory Accounting.
37 + </flag>
38 </use>
39 <upstream>
40 <remote-id type="github">opencontainers/runc</remote-id>
41
42 diff --git a/app-emulation/runc/runc-1.0.0_rc6.ebuild b/app-emulation/runc/runc-1.0.0_rc6.ebuild
43 new file mode 100644
44 index 00000000000..cb15bc43aaf
45 --- /dev/null
46 +++ b/app-emulation/runc/runc-1.0.0_rc6.ebuild
47 @@ -0,0 +1,61 @@
48 +# Copyright 1999-2018 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=6
52 +EGO_PN="github.com/opencontainers/${PN}"
53 +
54 +if [[ ${PV} == *9999 ]]; then
55 + inherit golang-build golang-vcs
56 +else
57 + MY_PV="${PV/_/-}"
58 + RUNC_COMMIT="ccb5efd37fb7c86364786e9137e22948751de7ed" # Change this when you update the ebuild
59 + SRC_URI="https://${EGO_PN}/archive/${RUNC_COMMIT}.tar.gz -> ${P}.tar.gz"
60 + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
61 + inherit golang-build golang-vcs-snapshot
62 +fi
63 +
64 +DESCRIPTION="runc container cli tools"
65 +HOMEPAGE="http://runc.io"
66 +
67 +LICENSE="Apache-2.0"
68 +SLOT="0"
69 +IUSE="+ambient apparmor hardened +kmem +seccomp"
70 +
71 +RDEPEND="
72 + apparmor? ( sys-libs/libapparmor )
73 + seccomp? ( sys-libs/libseccomp )
74 + !app-emulation/docker-runc
75 +"
76 +
77 +src_prepare() {
78 + default
79 + sed -i -e "/^GIT_BRANCH/d"\
80 + -e "/^GIT_BRANCH_CLEAN/d"\
81 + -e "/^COMMIT_NO/d"\
82 + -e "s/COMMIT :=.*/COMMIT := ${RUNC_COMMIT}/"\
83 + src/${EGO_PN}/Makefile || die
84 +}
85 +
86 +src_compile() {
87 + # Taken from app-emulation/docker-1.7.0-r1
88 + export CGO_CFLAGS="-I${ROOT}/usr/include"
89 + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '')
90 + -L${ROOT}/usr/$(get_libdir)"
91 +
92 + # build up optional flags
93 + local options=(
94 + $(usex ambient 'ambient' '')
95 + $(usex apparmor 'apparmor' '')
96 + $(usex seccomp 'seccomp' '')
97 + $(usex kmem '' 'nokmem')
98 + )
99 +
100 + GOPATH="${S}" emake BUILDTAGS="${options[*]}" -C src/${EGO_PN}
101 +}
102 +
103 +src_install() {
104 + pushd src/${EGO_PN} || die
105 + dobin runc
106 + dodoc README.md PRINCIPLES.md
107 + popd || die
108 +}