[gentoo-commits] repo/gentoo:master commit in: dev-libs/userspace-rcu/files/

2023-03-24 Thread Sam James
commit: 39973c05435688d07b999cb5276b38bb5a2cf0d9
Author: Sam James  gentoo  org>
AuthorDate: Fri Mar 24 06:55:24 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Mar 24 06:55:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39973c05

dev-libs/userspace-rcu: add another ref to loong patch

Signed-off-by: Sam James  gentoo.org>

 dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-loong.patch | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-loong.patch 
b/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-loong.patch
index 22daddedb61c..c21d2c02a105 100644
--- a/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-loong.patch
+++ b/dev-libs/userspace-rcu/files/userspace-rcu-0.13.1-loong.patch
@@ -1,6 +1,9 @@
 This is https://github.com/loongarch64/userspace-rcu/pull/2, yet to be
 upstreamed but already reviewed and accepted by the LoongArch porting
 community.
+
+(and https://github.com/urcu/userspace-rcu/pull/11)
+
 From 213197eea1a711da2f7cc0c04cdf33acb1b3c50e Mon Sep 17 00:00:00 2001
 From: Wang Jing 
 Date: Tue, 8 Jun 2021 19:44:49 +0800



[gentoo-commits] repo/gentoo:master commit in: dev-libs/userspace-rcu/files/, dev-libs/userspace-rcu/

2022-01-06 Thread Sam James
commit: d46502e794948afa85e33f86d575456c62ff8859
Author: Sam James  gentoo  org>
AuthorDate: Thu Jan  6 21:11:31 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Jan  6 21:14:29 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46502e7

dev-libs/userspace-rcu: add 0.13.1

Signed-off-by: Sam James  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 ..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 @@
 
 https://www.gentoo.org/dtd/metadata.dtd;>
 
-
-base-sys...@gentoo.org
-Gentoo Base System
-
-
-Run regression tests (requires 
FEATURES=test)
-
+   
+   base-sys...@gentoo.org
+   Gentoo Base System
+   
+   
+   Run regression tests (requires 
FEATURES=test)
+   
 

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 ..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
+}