commit:     d46502e794948afa85e33f86d575456c62ff8859
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  6 21:11:31 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan  6 21:14:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46502e7

dev-libs/userspace-rcu: add 0.13.1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/userspace-rcu/Manifest                    |  1 +
 .../userspace-rcu-0.13.1-tests-no-benchmark.patch  | 13 ++++++
 dev-libs/userspace-rcu/metadata.xml                | 14 +++---
 dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild | 50 ++++++++++++++++++++++
 4 files changed, 71 insertions(+), 7 deletions(-)

diff --git a/dev-libs/userspace-rcu/Manifest b/dev-libs/userspace-rcu/Manifest
index 24eedb824689..f20d5a0e4e87 100644
--- a/dev-libs/userspace-rcu/Manifest
+++ b/dev-libs/userspace-rcu/Manifest
@@ -1 +1,2 @@
 DIST userspace-rcu-0.13.0.tar.bz2 608434 BLAKE2B 
11b5d13f4e1a577cc33ad430eb387b26cc2db2ba9ff32c7a09f9cb6c8a418548cd87c198ab4b63be3df884d8e3878046ba817106ff2f07cbab86dd60c9bb1d34
 SHA512 
7288b5a4a2dca6a75ecaa8553b942b9e7be9cae25776d2448fb0b0c950af9919c369791839607c6c1e6cbd32bbd1e1cafc18ee753f0e3bdc2ed7b65488612580
+DIST userspace-rcu-0.13.1.tar.bz2 609961 BLAKE2B 
96581fb3e90764870d2eb3eff6999e3c20bf206e3a0d5c910acfe693d55e0cb389fa5126a74d175f3c46655e740ecf1c1426c367eb3c28f3ef3a634848e51e83
 SHA512 
c86f2eb260cccb3cb6bd54ddbc0b46e60083fc99423e9403242ebed7f39a2a49c68af933ea6f373e2a9d4f9dc56f5befe030740891e28cf2fabe927a48ff8182

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
new file mode 100644
index 000000000000..ecbe3e01e0a8
--- /dev/null
+++ b/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-tests-no-benchmark.patch
@@ -0,0 +1,13 @@
+Fedora: 
https://src.fedoraproject.org/rpms/userspace-rcu/raw/rawhide/f/regtest-without-bench.patch
+
+"Remove the benchmarks from the regtest target, they timeout on the buildds."
+--- a/tests/Makefile.am
++++ b/tests/Makefile.am
+@@ -8,7 +8,6 @@
+       cd benchmark && $(MAKE) $(AM_MAKEFLAGS) long_bench
+ regtest:
+       cd regression && $(MAKE) $(AM_MAKEFLAGS) regtest
+-      cd benchmark && $(MAKE) $(AM_MAKEFLAGS) regtest
+ 
+ check-loop:
+       while [ 0 ]; do \

diff --git a/dev-libs/userspace-rcu/metadata.xml 
b/dev-libs/userspace-rcu/metadata.xml
index 4123f2f05874..dce48a4a9489 100644
--- a/dev-libs/userspace-rcu/metadata.xml
+++ b/dev-libs/userspace-rcu/metadata.xml
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<maintainer type="project">
-<email>base-sys...@gentoo.org</email>
-<name>Gentoo Base System</name>
-</maintainer>
-<use>
-<flag name="regression-test">Run regression tests (requires 
FEATURES=test)</flag>
-</use>
+       <maintainer type="project">
+               <email>base-sys...@gentoo.org</email>
+               <name>Gentoo Base System</name>
+       </maintainer>
+       <use>
+               <flag name="regression-test">Run regression tests (requires 
FEATURES=test)</flag>
+       </use>
 </pkgmetadata>

diff --git a/dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild 
b/dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild
new file mode 100644
index 000000000000..434c0ba25a9e
--- /dev/null
+++ b/dev-libs/userspace-rcu/userspace-rcu-0.13.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Userspace RCU (read-copy-update) library"
+HOMEPAGE="https://liburcu.org/";
+SRC_URI="https://lttng.org/files/urcu/${P}.tar.bz2";
+
+LICENSE="LGPL-2.1"
+SLOT="0/8" # subslot = soname version
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( sys-process/time )"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.13.1-tests-no-benchmark.patch
+)
+
+src_prepare() {
+       default
+
+       # Needed for tests patch
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --enable-shared
+               $(use_enable static-libs static)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_test() {
+       default
+
+       emake -C tests/regression regtest
+}
+
+src_install() {
+       default
+
+       find "${ED}" -type f -name "*.la" -delete || die
+}

Reply via email to