pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/libopendaap Fix a threading problem (mutexattr u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1bd04db87d44
branches:  trunk
changeset: 491345:1bd04db87d44
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Wed Mar 23 10:52:54 2005 +0000

description:
Fix a threading problem (mutexattr used after it's destroyed).
Patch was in PR pkg/29644 by Antoine Reilles, but I overlooked it.
Bump PKGREVISION to 1.

diffstat:

 audio/libopendaap/Makefile         |   3 ++-
 audio/libopendaap/distinfo         |   3 ++-
 audio/libopendaap/patches/patch-aa |  14 ++++++++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 85af2ac66946 -r 1bd04db87d44 audio/libopendaap/Makefile
--- a/audio/libopendaap/Makefile        Wed Mar 23 10:43:43 2005 +0000
+++ b/audio/libopendaap/Makefile        Wed Mar 23 10:52:54 2005 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2005/03/07 15:30:44 adam Exp $
+# $NetBSD: Makefile,v 1.4 2005/03/23 10:52:54 jmmv Exp $
 
 DISTNAME=      libopendaap-0.3.0
+PKGREVISION=   1
 CATEGORIES=    audio
 MASTER_SITES=  http://crazney.net/programs/itunes/files/
 EXTRACT_SUFX=  .tar.bz2
diff -r 85af2ac66946 -r 1bd04db87d44 audio/libopendaap/distinfo
--- a/audio/libopendaap/distinfo        Wed Mar 23 10:43:43 2005 +0000
+++ b/audio/libopendaap/distinfo        Wed Mar 23 10:52:54 2005 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.7 2005/03/18 12:17:04 wiz Exp $
+$NetBSD: distinfo,v 1.8 2005/03/23 10:52:54 jmmv Exp $
 
 SHA1 (libopendaap-0.3.0.tar.bz2) = 21817a7886ffc8c4d88c621231569562c61356db
 RMD160 (libopendaap-0.3.0.tar.bz2) = 2218783e40e7f48a7b89b2e27145e4964f7dd687
 Size (libopendaap-0.3.0.tar.bz2) = 365682 bytes
+SHA1 (patch-aa) = 89798e5b906cb3b92748b61f113542dfc4d7d22a
 SHA1 (patch-ab) = 3bd01a3038505721149a8ea56f564442b035cee4
 SHA1 (patch-ac) = d723c22d11df6d511290d45ccb54861fbecc178d
 SHA1 (patch-ad) = 88b72f80e4a6ed68f7ae74ace3f3dbf07709c0b1
diff -r 85af2ac66946 -r 1bd04db87d44 audio/libopendaap/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libopendaap/patches/patch-aa        Wed Mar 23 10:52:54 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.3 2005/03/23 10:52:54 jmmv Exp $
+
+--- thread.h.orig      2004-12-14 05:11:09.000000000 +0100
++++ thread.h
+@@ -42,8 +42,8 @@
+         pthread_mutexattr_t attr; \
+         pthread_mutexattr_init(&attr) ; \
+         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); \
+-        pthread_mutexattr_destroy(&attr) ; \
+         pthread_mutex_init(& m, &attr); \
++        pthread_mutexattr_destroy(&attr) ; \
+     } while (0)
+ #define ts_mutex_lock(m)              pthread_mutex_lock(& m)
+ #define ts_mutex_unlock(m)            pthread_mutex_unlock(& m)



Home | Main Index | Thread Index | Old Index