aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vlc
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2009-08-02 04:07:21 +0800
committerwxs <wxs@FreeBSD.org>2009-08-02 04:07:21 +0800
commitf339af94708dac323e6dab125e8592bdef3e5f30 (patch)
treeb8ffc7a46ace23e4868822df09a1bb62749d4923 /multimedia/vlc
parentf91d33e0aa39f7f565b49ddf4974548ca084286e (diff)
downloadfreebsd-ports-gnome-f339af94708dac323e6dab125e8592bdef3e5f30.tar.gz
freebsd-ports-gnome-f339af94708dac323e6dab125e8592bdef3e5f30.tar.zst
freebsd-ports-gnome-f339af94708dac323e6dab125e8592bdef3e5f30.zip
- Correct a threading bug on 7.1 and older.
PR: ports/137056 Submitted by: Vaclav Haisman <v.haisman@sh.cvut.cz> Approved by: "Joseph S. Atkinson" <jsa.bsd@gmail.com> (maintainer)
Diffstat (limited to 'multimedia/vlc')
-rw-r--r--multimedia/vlc/Makefile5
-rw-r--r--multimedia/vlc/files/extra-patch-src_misc_thread.c11
2 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/vlc/Makefile b/multimedia/vlc/Makefile
index e23dea78d9d9..bcf8881ab91e 100644
--- a/multimedia/vlc/Makefile
+++ b/multimedia/vlc/Makefile
@@ -10,6 +10,7 @@
PORTNAME= vlc
DISTVERSION= 1.0.0
+PORTREVISION= 1
PORTEPOCH= 3
CATEGORIES= multimedia audio ipv6 net www
MASTER_SITES= http://download.videolan.org/pub/videolan/${PORTNAME}/${DISTVERSION}/ \
@@ -95,6 +96,10 @@ MAN1= vlc.1 \
.include <bsd.port.pre.mk>
+.if (${OSVERSION} < 701000)
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_misc_thread.c
+.endif
+
WITH_VLC_DEFAULT_FONT?= ${LOCALBASE}/lib/X11/fonts/bitstream-vera/Vera.ttf
.if ${PERL_LEVEL} < 500800
diff --git a/multimedia/vlc/files/extra-patch-src_misc_thread.c b/multimedia/vlc/files/extra-patch-src_misc_thread.c
new file mode 100644
index 000000000000..9647b82f1878
--- /dev/null
+++ b/multimedia/vlc/files/extra-patch-src_misc_thread.c
@@ -0,0 +1,11 @@
+--- src/misc/threads.c.orig 2009-08-01 09:34:56.000000000 -0400
++++ src/misc/threads.c 2009-08-01 09:40:24.000000000 -0400
+@@ -784,7 +784,7 @@
+ pthread_sigmask (SIG_BLOCK, &set, &oldset);
+ }
+
+-#if defined (_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING >= 0) \
++#if 0 && defined (_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING >= 0) \
+ && defined (_POSIX_THREAD_PRIORITY_SCHEDULING) \
+ && (_POSIX_THREAD_PRIORITY_SCHEDULING >= 0)
+ {