1 |
commit: ba74f5d6d3772e0bff832faf76fda6767b0ebef1 |
2 |
Author: Robert Günzler <r <AT> gnzler <DOT> io> |
3 |
AuthorDate: Tue Jun 2 10:51:26 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 2 11:13:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba74f5d6 |
7 |
|
8 |
app-emulation/crun: Bump to 0.13 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/709982 |
11 |
Signed-off-by: Robert Günzler <r <AT> gnzler.io> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-emulation/crun/Manifest | 1 + |
15 |
app-emulation/crun/crun-0.13.ebuild | 74 ++++++++++++++++++++++ |
16 |
...ec-deduplicate-json_common-in-makefile-am.patch | 31 +++++++++ |
17 |
3 files changed, 106 insertions(+) |
18 |
|
19 |
diff --git a/app-emulation/crun/Manifest b/app-emulation/crun/Manifest |
20 |
index 1652b232561..56e3366c82b 100644 |
21 |
--- a/app-emulation/crun/Manifest |
22 |
+++ b/app-emulation/crun/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
+DIST crun-0.13.tar.gz 1305048 BLAKE2B fbffabf4cfc744522147b47c5e2bf2bc48e074866108ec4ec8ab94e7ebdc39451851696fabde268b5853e1c3fafb0ac93527e08fdb766acebdd7cf952a9e1a9e SHA512 314612eaf3097160e9369b3400ac8a83e173ef1a53295191c925e96212ba00d032883db1e4615b8ba42ddb08f1e31ca5e5088ea583a469835ac3c27087a88d6e |
25 |
DIST crun-0.10.6.tar.gz 1242736 BLAKE2B 840699c6a07ddaef3f6ab4ce226fa6c4ebf0e32641012b6467a2a622d575a48286555b84140d5a1c947b5ef00a691045b0618533fb246bfb6d605baa262febe4 SHA512 b7db09d0c7d2d6e8b1ea239ead5a2ca2b97f188a74f08f0d5ac787e0a698fddf596e7cfdde482c6bc8790d06a7705613e877344a44691c0be7388e6d046c4b15 |
26 |
|
27 |
diff --git a/app-emulation/crun/crun-0.13.ebuild b/app-emulation/crun/crun-0.13.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..7b7d5fcda02 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/crun/crun-0.13.ebuild |
32 |
@@ -0,0 +1,74 @@ |
33 |
+# Copyright 2019-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{6,7} ) |
39 |
+ |
40 |
+inherit autotools python-any-r1 |
41 |
+ |
42 |
+DESCRIPTION="A fast and low-memory footprint OCI Container Runtime fully written in C" |
43 |
+HOMEPAGE="https://github.com/containers/crun" |
44 |
+SRC_URI="https://github.com/containers/${PN}/releases/download/${PV}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="GPL-2+ LGPL-2.1+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="bpf +caps doc seccomp systemd static-libs" |
50 |
+ |
51 |
+DEPEND=" |
52 |
+ dev-libs/yajl |
53 |
+ caps? ( sys-libs/libcap ) |
54 |
+ seccomp? ( sys-libs/libseccomp ) |
55 |
+ systemd? ( sys-apps/systemd:= ) |
56 |
+" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+BDEPEND=" |
59 |
+ ${PYTHON_DEPS} |
60 |
+ doc? ( dev-go/go-md2man ) |
61 |
+" |
62 |
+ |
63 |
+# the crun test suite is comprehensive to the extent that tests will fail |
64 |
+# within a sandbox environment, due to the nature of the privileges |
65 |
+# required to create linux "containers". |
66 |
+RESTRICT="test" |
67 |
+ |
68 |
+DOCS=README.md |
69 |
+ |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ # see https://709982.bugs.gentoo.org/attachment.cgi?id=614208 |
73 |
+ "${FILESDIR}/libocispec-deduplicate-json_common-in-makefile-am.patch" |
74 |
+) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ default |
78 |
+ eautoreconf |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ --disable-criu \ |
84 |
+ $(use_enable bpf) \ |
85 |
+ $(use_enable caps) \ |
86 |
+ $(use_enable seccomp) \ |
87 |
+ $(use_enable systemd) \ |
88 |
+ $(usex static-libs '--enabled-shared --enabled-static' '--enable-shared --disable-static' '' '') |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ emake -C libocispec |
93 |
+ emake crun |
94 |
+ if use doc ; then |
95 |
+ emake generate-man |
96 |
+ fi |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ emake "DESTDIR=${D}" install-exec |
101 |
+ if use doc ; then |
102 |
+ emake "DESTDIR=${D}" install-man |
103 |
+ fi |
104 |
+ |
105 |
+ einstalldocs |
106 |
+} |
107 |
|
108 |
diff --git a/app-emulation/crun/files/libocispec-deduplicate-json_common-in-makefile-am.patch b/app-emulation/crun/files/libocispec-deduplicate-json_common-in-makefile-am.patch |
109 |
new file mode 100644 |
110 |
index 00000000000..7d188abf8df |
111 |
--- /dev/null |
112 |
+++ b/app-emulation/crun/files/libocispec-deduplicate-json_common-in-makefile-am.patch |
113 |
@@ -0,0 +1,31 @@ |
114 |
+From 9d58891c058efa55c7b95cb90597d4cadc5c66d8 Mon Sep 17 00:00:00 2001 |
115 |
+From: Bruce Guenter <bruce@××××××××××.org> |
116 |
+Date: Mon, 17 Feb 2020 13:54:14 -0600 |
117 |
+Subject: [PATCH] De-duplicate json_common in Makefile.am |
118 |
+ |
119 |
+The source file src/json_common.c is listed twice in Makefile.am, |
120 |
+leading libtool to produce an archive with duplicated symbols. This |
121 |
+change removes the duplicate source. |
122 |
+ |
123 |
+This was introduced in commit 2e318803a2c49521ea448e3ae010b1564a7e95ed |
124 |
+ |
125 |
+Signed-off-by: Bruce Guenter <bruce@××××××××××.org> |
126 |
+--- |
127 |
+ Makefile.am | 2 +- |
128 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
129 |
+ |
130 |
+diff --git a/Makefile.am b/Makefile.am |
131 |
+index 65bed45..c7ede83 100644 |
132 |
+--- a/libocispec/Makefile.am |
133 |
++++ b/libocispec/Makefile.am |
134 |
+@@ -7,7 +7,7 @@ GITIGNOREFILES = build-aux/ gtk-doc.make config.h.in aclocal.m4 |
135 |
+ noinst_LTLIBRARIES = libocispec.la |
136 |
+ noinst_LIBRARIES = libocispec.a |
137 |
+ |
138 |
+-SOURCE_FILES = src/json_common.c \ |
139 |
++SOURCE_FILES = \ |
140 |
+ src/image_spec_schema_config_schema.c \ |
141 |
+ src/image_spec_schema_content_descriptor.c \ |
142 |
+ src/image_spec_schema_defs.c \ |
143 |
+-- |
144 |
+2.24.1 |