summaryrefslogtreecommitdiff
path: root/x11/wxGTK24
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2009-01-08 21:58:17 +0000
committershattered <shattered@pkgsrc.org>2009-01-08 21:58:17 +0000
commit22a1327cb2ac9d40fcd0e6a8f1b141c0cbb6ffc9 (patch)
tree1d6213251c3edd6afaf47ccbc04ee69c782d298f /x11/wxGTK24
parentc3f51e476c3c02fad691de90d4b8cc3e81ef28ee (diff)
downloadpkgsrc-22a1327cb2ac9d40fcd0e6a8f1b141c0cbb6ffc9.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/wxGTK24')
-rw-r--r--x11/wxGTK24/Makefile4
-rw-r--r--x11/wxGTK24/distinfo3
-rw-r--r--x11/wxGTK24/patches/patch-aj20
3 files changed, 24 insertions, 3 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
+ // ----------------------------------------------------------------------------