summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorshattered <shattered>2009-01-08 21:58:17 +0000
committershattered <shattered>2009-01-08 21:58:17 +0000
commit7e8cba694ce26321383399eda3734e9e1d08e055 (patch)
tree1d6213251c3edd6afaf47ccbc04ee69c782d298f /x11
parent9e9153b62101963c6090b1806f41171935bc8a34 (diff)
downloadpkgsrc-7e8cba694ce26321383399eda3734e9e1d08e055.tar.gz
Disable usage of POSIX thread priority functions on NetBSD < 4.99.50
(they are all stubs before that). This stops wxGTK (and in turn, Audacity and others) from displaying annoying "Cannot get priority range for scheduling policy 0" message at startup: http://mail-index.netbsd.org/tech-pkg/2005/11/22/0020.html http://mail-index.netbsd.org/netbsd-users/2006/07/02/0004.html http://mail-index.netbsd.org/netbsd-users/2007/06/28/0002.html OK by wiz@.
Diffstat (limited to 'x11')
-rw-r--r--x11/wxGTK24/Makefile4
-rw-r--r--x11/wxGTK24/distinfo3
-rw-r--r--x11/wxGTK24/patches/patch-aj20
-rw-r--r--x11/wxGTK26/Makefile4
-rw-r--r--x11/wxGTK26/distinfo3
-rw-r--r--x11/wxGTK26/patches/patch-ac18
-rw-r--r--x11/wxGTK28/Makefile3
-rw-r--r--x11/wxGTK28/distinfo3
-rw-r--r--x11/wxGTK28/patches/patch-ac18
9 files changed, 68 insertions, 8 deletions
diff --git a/x11/wxGTK24/Makefile b/x11/wxGTK24/Makefile
index 86e29c80ded..ca92bee806c 100644
--- a/x11/wxGTK24/Makefile
+++ b/x11/wxGTK24/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2006/04/17 14:52:12 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2009/01/08 21:58:17 shattered Exp $
#
.include "Makefile.common"
-PKGREVISION= 10
+PKGREVISION= 11
COMMENT= GTK-based implementation of the wxWidgets GUI library
CONFLICTS+= wxGTK<=2.4.2nb5
diff --git a/x11/wxGTK24/distinfo b/x11/wxGTK24/distinfo
index f5c8b73336b..a6554ed9a06 100644
--- a/x11/wxGTK24/distinfo
+++ b/x11/wxGTK24/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2006/06/19 21:16:19 joerg Exp $
+$NetBSD: distinfo,v 1.6 2009/01/08 21:58:17 shattered Exp $
SHA1 (wxGTK-2.4.2.tar.bz2) = 3f1ebacaaf8eb5510c14ee10bafbc5f225be842c
RMD160 (wxGTK-2.4.2.tar.bz2) = 8076d1ba31c9b23becb241cbad5a83763fee776e
@@ -12,3 +12,4 @@ SHA1 (patch-af) = 81cddc6dcdf986317f7d62f027515cae6ef2c855
SHA1 (patch-ag) = ccdaca4030c08aefa922367019e0c9249b810456
SHA1 (patch-ah) = 24cc32f7eda53f4704422363902f72239eda2253
SHA1 (patch-ai) = c5d301c2cb45397329d9a817d9278707a2d3b97f
+SHA1 (patch-aj) = 9f74442617e6a869c5ff253591bba3f9da3a9e0c
diff --git a/x11/wxGTK24/patches/patch-aj b/x11/wxGTK24/patches/patch-aj
new file mode 100644
index 00000000000..0afe81f5ffe
--- /dev/null
+++ b/x11/wxGTK24/patches/patch-aj
@@ -0,0 +1,20 @@
+$NetBSD: patch-aj,v 1.1 2009/01/08 21:58:17 shattered Exp $
+
+Thread priority functions were stubs until 4.99.50.
+
+--- src/unix/threadpsx.cpp.orig 2003-09-21 15:31:40.000000000 +0400
++++ src/unix/threadpsx.cpp
+@@ -58,6 +58,13 @@
+ #include <sys/resource.h>
+ #endif
+
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS)
++#undef HAVE_THREAD_PRIORITY_FUNCTIONS
++#endif
++#endif
++
+ // ----------------------------------------------------------------------------
+ // constants
+ // ----------------------------------------------------------------------------
diff --git a/x11/wxGTK26/Makefile b/x11/wxGTK26/Makefile
index 8d65a9a89ec..d4521ffcd04 100644
--- a/x11/wxGTK26/Makefile
+++ b/x11/wxGTK26/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/09/22 19:44:05 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2009/01/08 21:58:17 shattered Exp $
#
.include "Makefile.common"
-PKGREVISION= 2
+PKGREVISION= 3
COMMENT= GTK-based implementation of the wxWidgets GUI library
post-build:
diff --git a/x11/wxGTK26/distinfo b/x11/wxGTK26/distinfo
index 1dab2b4295c..bf4d60eac16 100644
--- a/x11/wxGTK26/distinfo
+++ b/x11/wxGTK26/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/09/22 19:44:05 joerg Exp $
+$NetBSD: distinfo,v 1.2 2009/01/08 21:58:17 shattered Exp $
SHA1 (wxGTK-2.6.3-libtool.diff3.bz2) = 657566a9384a4bc160dffd26678b5e0c6a1cb5b2
RMD160 (wxGTK-2.6.3-libtool.diff3.bz2) = 233af8dd61317ed1771c1862c6cec65f131b6de0
@@ -8,3 +8,4 @@ RMD160 (wxGTK-2.6.3.tar.bz2) = d7465860d7c07b42d299d4b4c5d015b25f96a9dd
Size (wxGTK-2.6.3.tar.bz2) = 7213119 bytes
SHA1 (patch-aa) = 0ef5ae28b70a3290e37363193248365f4cf03cec
SHA1 (patch-ab) = 3e9c6bc0df33e466390a4f6483b1c84e2eb9257b
+SHA1 (patch-ac) = 50bd7d4291e44dac1d2bbbae1b12167177f5ef01
diff --git a/x11/wxGTK26/patches/patch-ac b/x11/wxGTK26/patches/patch-ac
new file mode 100644
index 00000000000..bce59206aa7
--- /dev/null
+++ b/x11/wxGTK26/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1 2009/01/08 21:58:17 shattered Exp $
+
+--- src/unix/threadpsx.cpp.orig 2006-03-22 02:42:12.000000000 +0300
++++ src/unix/threadpsx.cpp
+@@ -66,6 +66,13 @@
+ #define THR_ID(thr) ((long)(thr)->GetId())
+ #endif
+
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS)
++#undef HAVE_THREAD_PRIORITY_FUNCTIONS
++#endif
++#endif
++
+ // ----------------------------------------------------------------------------
+ // constants
+ // ----------------------------------------------------------------------------
diff --git a/x11/wxGTK28/Makefile b/x11/wxGTK28/Makefile
index 542a8840e25..39816c7974b 100644
--- a/x11/wxGTK28/Makefile
+++ b/x11/wxGTK28/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/09/12 11:09:49 joerg Exp $
+# $NetBSD: Makefile,v 1.2 2009/01/08 21:58:17 shattered Exp $
#
.include "../../x11/wxGTK28/Makefile.common"
+PKGREVISION= 1
PKGNAME= ${DISTNAME:S/wxGTK/wxGTK28/}
COMMENT= GTK-based implementation of the wxWidgets GUI library
diff --git a/x11/wxGTK28/distinfo b/x11/wxGTK28/distinfo
index a19884f9fe6..0651f20fdbf 100644
--- a/x11/wxGTK28/distinfo
+++ b/x11/wxGTK28/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/09/12 11:09:49 joerg Exp $
+$NetBSD: distinfo,v 1.2 2009/01/08 21:58:17 shattered Exp $
SHA1 (wxGTK-2.8.8-libtool.diff.bz2) = f09ae6cefe70dab7383e11b4ca0abd10b44baeac
RMD160 (wxGTK-2.8.8-libtool.diff.bz2) = 34b3c3949adc47f2ce9293f91e0cb72543c7d7bb
@@ -8,3 +8,4 @@ RMD160 (wxGTK-2.8.8.tar.bz2) = 1dc3fab9e6f4d446bbc1c104aa69cf395c56b577
Size (wxGTK-2.8.8.tar.bz2) = 9482521 bytes
SHA1 (patch-aa) = 9cf0af5d5d9f6eaee43ed74c45e45c0a88907ad1
SHA1 (patch-ab) = d071e5e9f8dfd9c61a527464c55bfc671a27bbd0
+SHA1 (patch-ac) = 50cf253797f2dee8b9dab08d138d0070e25e7a8c
diff --git a/x11/wxGTK28/patches/patch-ac b/x11/wxGTK28/patches/patch-ac
new file mode 100644
index 00000000000..c1cddd665cb
--- /dev/null
+++ b/x11/wxGTK28/patches/patch-ac
@@ -0,0 +1,18 @@
+$NetBSD: patch-ac,v 1.1 2009/01/08 21:58:17 shattered Exp $
+
+--- src/unix/threadpsx.cpp.orig 2008-06-20 13:07:10.000000000 +0400
++++ src/unix/threadpsx.cpp
+@@ -65,6 +65,13 @@
+ #define THR_ID(thr) ((long)(thr)->GetId())
+ #endif
+
++#ifdef __NetBSD__
++#include <sys/param.h>
++#if __NetBSD_Version__ < 499005000 && defined(HAVE_THREAD_PRIORITY_FUNCTIONS)
++#undef HAVE_THREAD_PRIORITY_FUNCTIONS
++#endif
++#endif
++
+ // ----------------------------------------------------------------------------
+ // constants
+ // ----------------------------------------------------------------------------