From caf64840785ad915f5b60847b82fff9160de21ae Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Jun 2012 11:29:00 +0000 Subject: testing/userspace-rcu: new aport liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data synchronization library provides read-side access which scales linearly with the number of cores. It does so by allowing multiples copies of a given data structure to live at the same time, and by monitoring the data structure accesses to detect grace periods after which memory reclamation is possible. liburcu-cds provides efficient data structures based on RCU and lock-free algorithms. Those structures include hash tables, queues, stacks, and doubly- linked lists. http://lttng.org/urcu/ --- testing/userspace-rcu/APKBUILD | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 testing/userspace-rcu/APKBUILD (limited to 'testing/userspace-rcu') diff --git a/testing/userspace-rcu/APKBUILD b/testing/userspace-rcu/APKBUILD new file mode 100644 index 000000000..e9885f7bb --- /dev/null +++ b/testing/userspace-rcu/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +pkgname=userspace-rcu +pkgver=0.7.3 +pkgrel=0 +pkgdesc="A userspace RCU (read-copy-update) library" +url="http://lttng.org/urcu/" +arch="all" +license="LGPL2+" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://lttng.org/files/urcu/$pkgname-$pkgver.tar.bz2" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +# Tests are extremly time-consuming +# make check || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="c40b726f13bff80982c1ffa1bc2db31d userspace-rcu-0.7.3.tar.bz2" -- cgit v1.2.3