summaryrefslogtreecommitdiff
path: root/libraries/pthsem
diff options
context:
space:
mode:
authorV'yacheslav Stetskevych <slava18@gmail.com>2010-03-23 19:25:02 -0500
committerErik Hanson <erik@slackbuilds.org>2010-05-13 14:28:43 +0200
commitb157b999217a5c113747e9c8abf860cab39f38d8 (patch)
tree87c17109078e6f7c192477ebd04793955305cf7a /libraries/pthsem
parente068523091165b95bc5dffd11a8eec8c5bf6e94d (diff)
downloadslackbuilds-b157b999217a5c113747e9c8abf860cab39f38d8.tar.gz
libraries/pthsem: Updated for version 2.0.8.
Diffstat (limited to 'libraries/pthsem')
-rw-r--r--libraries/pthsem/0001-Use-monotonic-clock-for-pthsem.patch35
-rw-r--r--libraries/pthsem/README12
-rw-r--r--libraries/pthsem/pthsem.SlackBuild30
-rw-r--r--libraries/pthsem/pthsem.info8
4 files changed, 14 insertions, 71 deletions
diff --git a/libraries/pthsem/0001-Use-monotonic-clock-for-pthsem.patch b/libraries/pthsem/0001-Use-monotonic-clock-for-pthsem.patch
deleted file mode 100644
index c049529fbb..0000000000
--- a/libraries/pthsem/0001-Use-monotonic-clock-for-pthsem.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 1eedb024a141665fd186d1d51e73bb64c6202476 Mon Sep 17 00:00:00 2001
-From: Martin Koegler <mkoegler@auto.tuwien.ac.at>
-Date: Sat, 23 Aug 2008 00:54:20 +0200
-Subject: [PATCH] Use montonic clock for pthsem
-
-Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
----
- pth_time.c | 11 +++++++++++
- 1 files changed, 11 insertions(+), 0 deletions(-)
-
-diff --git a/pth_time.c b/pth_time.c
-index b94dafe..e81f80a 100644
---- a/pth_time.c
-+++ b/pth_time.c
-@@ -60,6 +60,17 @@ intern void pth_time_usleep(unsigned long usec)
- #else
- #define __gettimeofday(t) gettimeofday(t, NULL)
- #endif
-+#undef __gettimeofday
-+
-+static int inline __gettimeofday(struct timeval *tv)
-+{
-+ struct timespec t;
-+ int res = clock_gettime(CLOCK_MONOTONIC, &t);
-+ tv->tv_sec = t.tv_sec;
-+ tv->tv_usec = t.tv_nsec/1000;
-+ return res;
-+}
-+
- #define pth_time_set(t1,t2) \
- do { \
- if ((t2) == PTH_TIME_NOW) \
---
-1.5.3.1
-
diff --git a/libraries/pthsem/README b/libraries/pthsem/README
index 7e8dcc7284..d8ca8279a3 100644
--- a/libraries/pthsem/README
+++ b/libraries/pthsem/README
@@ -1,7 +1,7 @@
-pthsem is an extended version of the GNU Pth, a user mode multi threading
-library, with added support for semaphores. This package can be installed
-in parallel with a normal pth, which is included in Slackware.
+pthsem is an extended version of the GNU Pth, a user mode
+multi threading library, with added support for semaphores.
+This package can be installed in parallel with a normal pth,
+which is included in Slackware.
-This version includes a patch by the developer to make pthsem use the
-monotonic clock and be able to react to date and time changes more
-adequately.
+Project page:
+http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth
diff --git a/libraries/pthsem/pthsem.SlackBuild b/libraries/pthsem/pthsem.SlackBuild
index b1d78cc8f4..81dd96247c 100644
--- a/libraries/pthsem/pthsem.SlackBuild
+++ b/libraries/pthsem/pthsem.SlackBuild
@@ -5,7 +5,7 @@
# Written by V'yacheslav Stetskevych
PRGNAM=pthsem
-VERSION=${VERSION:-2.0.7}
+VERSION=${VERSION:-2.0.8}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -32,7 +32,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -41,10 +41,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Apply the patch to use the monotonic clock, for eibd to work correctly
-# after a date/time change.
-patch -p1 < $CWD/0001-Use-monotonic-clock-for-pthsem.patch
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -58,35 +54,17 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-static=no \
--enable-pthread=no
-# Edit the Makefile to enable compilation with the monotonic clock patch.
-sed 's/-ldl/-ldl -lrt/' Makefile > Makefile.sed
-mv Makefile.sed Makefile
-
make
make test
-make install DESTDIR=$PKG
-
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
-)
+make install-strip DESTDIR=$PKG
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
)
-# Edit the output of pthsem-config to let eibd compile against modified pthsem.
-( cd $PKG/usr/bin
- sed 's/-lpthsem/-lpthsem -lrt/' pthsem-config > pthsem-config.sed
- mv pthsem-config.sed pthsem-config
- chmod 755 pthsem-config
-)
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ANNOUNCE AUTHORS COPYING HACKING HISTORY INSTALL NEWS PORTING \
- README SUPPORT TESTS THANKS USERS $PKG/usr/doc/$PRGNAM-$VERSION
+ README SUPPORT TESTS THANKS USERS ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/pthsem/pthsem.info b/libraries/pthsem/pthsem.info
index 1fe61b8b8f..01fe77ff0b 100644
--- a/libraries/pthsem/pthsem.info
+++ b/libraries/pthsem/pthsem.info
@@ -1,10 +1,10 @@
PRGNAM="pthsem"
-VERSION="2.0.7"
+VERSION="2.0.8"
HOMEPAGE="http://www.auto.tuwien.ac.at/~mkoegler/index.php/pth"
-DOWNLOAD="http://www.auto.tuwien.ac.at/~mkoegler/pth/pthsem-2.0.7.tar.gz"
-MD5SUM="b277716ee1224ca9925176fa29e1f0c5"
+DOWNLOAD="http://www.auto.tuwien.ac.at/~mkoegler/pth/pthsem_2.0.8.tar.gz"
+MD5SUM="9144b26dcc27e67498d63dd5456f934c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="V'yacheslav Stetskevych"
EMAIL="slava18@gmail.com"
-APPROVED="dsomero"
+APPROVED="Erik Hanson"