1 |
commit: d46502e794948afa85e33f86d575456c62ff8859 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 6 21:11:31 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 6 21:14:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46502e7 |
7 |
|
8 |
dev-libs/userspace-rcu: add 0.13.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-libs/userspace-rcu/Manifest | 1 + |
13 |
.../userspace-rcu-0.13.1-tests-no-benchmark.patch | 13 ++++++ |
14 |
dev-libs/userspace-rcu/metadata.xml | 14 +++--- |
15 |
dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild | 50 ++++++++++++++++++++++ |
16 |
4 files changed, 71 insertions(+), 7 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/userspace-rcu/Manifest b/dev-libs/userspace-rcu/Manifest |
19 |
index 24eedb824689..f20d5a0e4e87 100644 |
20 |
--- a/dev-libs/userspace-rcu/Manifest |
21 |
+++ b/dev-libs/userspace-rcu/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST userspace-rcu-0.13.0.tar.bz2 608434 BLAKE2B 11b5d13f4e1a577cc33ad430eb387b26cc2db2ba9ff32c7a09f9cb6c8a418548cd87c198ab4b63be3df884d8e3878046ba817106ff2f07cbab86dd60c9bb1d34 SHA512 7288b5a4a2dca6a75ecaa8553b942b9e7be9cae25776d2448fb0b0c950af9919c369791839607c6c1e6cbd32bbd1e1cafc18ee753f0e3bdc2ed7b65488612580 |
24 |
+DIST userspace-rcu-0.13.1.tar.bz2 609961 BLAKE2B 96581fb3e90764870d2eb3eff6999e3c20bf206e3a0d5c910acfe693d55e0cb389fa5126a74d175f3c46655e740ecf1c1426c367eb3c28f3ef3a634848e51e83 SHA512 c86f2eb260cccb3cb6bd54ddbc0b46e60083fc99423e9403242ebed7f39a2a49c68af933ea6f373e2a9d4f9dc56f5befe030740891e28cf2fabe927a48ff8182 |
25 |
|
26 |
diff --git a/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-tests-no-benchmark.patch b/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-tests-no-benchmark.patch |
27 |
new file mode 100644 |
28 |
index 000000000000..ecbe3e01e0a8 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-tests-no-benchmark.patch |
31 |
@@ -0,0 +1,13 @@ |
32 |
+Fedora: https://src.fedoraproject.org/rpms/userspace-rcu/raw/rawhide/f/regtest-without-bench.patch |
33 |
+ |
34 |
+"Remove the benchmarks from the regtest target, they timeout on the buildds." |
35 |
+--- a/tests/Makefile.am |
36 |
++++ b/tests/Makefile.am |
37 |
+@@ -8,7 +8,6 @@ |
38 |
+ cd benchmark && $(MAKE) $(AM_MAKEFLAGS) long_bench |
39 |
+ regtest: |
40 |
+ cd regression && $(MAKE) $(AM_MAKEFLAGS) regtest |
41 |
+- cd benchmark && $(MAKE) $(AM_MAKEFLAGS) regtest |
42 |
+ |
43 |
+ check-loop: |
44 |
+ while [ 0 ]; do \ |
45 |
|
46 |
diff --git a/dev-libs/userspace-rcu/metadata.xml b/dev-libs/userspace-rcu/metadata.xml |
47 |
index 4123f2f05874..dce48a4a9489 100644 |
48 |
--- a/dev-libs/userspace-rcu/metadata.xml |
49 |
+++ b/dev-libs/userspace-rcu/metadata.xml |
50 |
@@ -1,11 +1,11 @@ |
51 |
<?xml version="1.0" encoding="UTF-8"?> |
52 |
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
53 |
<pkgmetadata> |
54 |
-<maintainer type="project"> |
55 |
-<email>base-system@g.o</email> |
56 |
-<name>Gentoo Base System</name> |
57 |
-</maintainer> |
58 |
-<use> |
59 |
-<flag name="regression-test">Run regression tests (requires FEATURES=test)</flag> |
60 |
-</use> |
61 |
+ <maintainer type="project"> |
62 |
+ <email>base-system@g.o</email> |
63 |
+ <name>Gentoo Base System</name> |
64 |
+ </maintainer> |
65 |
+ <use> |
66 |
+ <flag name="regression-test">Run regression tests (requires FEATURES=test)</flag> |
67 |
+ </use> |
68 |
</pkgmetadata> |
69 |
|
70 |
diff --git a/dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild b/dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild |
71 |
new file mode 100644 |
72 |
index 000000000000..434c0ba25a9e |
73 |
--- /dev/null |
74 |
+++ b/dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild |
75 |
@@ -0,0 +1,50 @@ |
76 |
+# Copyright 1999-2022 Gentoo Authors |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+ |
79 |
+EAPI=7 |
80 |
+ |
81 |
+inherit autotools |
82 |
+ |
83 |
+DESCRIPTION="Userspace RCU (read-copy-update) library" |
84 |
+HOMEPAGE="https://liburcu.org/" |
85 |
+SRC_URI="https://lttng.org/files/urcu/${P}.tar.bz2" |
86 |
+ |
87 |
+LICENSE="LGPL-2.1" |
88 |
+SLOT="0/8" # subslot = soname version |
89 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
90 |
+IUSE="static-libs test" |
91 |
+RESTRICT="!test? ( test )" |
92 |
+ |
93 |
+BDEPEND="test? ( sys-process/time )" |
94 |
+ |
95 |
+PATCHES=( |
96 |
+ "${FILESDIR}"/${PN}-0.13.1-tests-no-benchmark.patch |
97 |
+) |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ default |
101 |
+ |
102 |
+ # Needed for tests patch |
103 |
+ eautoreconf |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ local myeconfargs=( |
108 |
+ --enable-shared |
109 |
+ $(use_enable static-libs static) |
110 |
+ ) |
111 |
+ |
112 |
+ econf "${myeconfargs[@]}" |
113 |
+} |
114 |
+ |
115 |
+src_test() { |
116 |
+ default |
117 |
+ |
118 |
+ emake -C tests/regression regtest |
119 |
+} |
120 |
+ |
121 |
+src_install() { |
122 |
+ default |
123 |
+ |
124 |
+ find "${ED}" -type f -name "*.la" -delete || die |
125 |
+} |