diff options
author | shattered <shattered@pkgsrc.org> | 2009-01-08 21:58:17 +0000 |
---|---|---|
committer | shattered <shattered@pkgsrc.org> | 2009-01-08 21:58:17 +0000 |
commit | 22a1327cb2ac9d40fcd0e6a8f1b141c0cbb6ffc9 (patch) | |
tree | 1d6213251c3edd6afaf47ccbc04ee69c782d298f /x11/wxGTK26 | |
parent | c3f51e476c3c02fad691de90d4b8cc3e81ef28ee (diff) | |
download | pkgsrc-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/wxGTK26')
-rw-r--r-- | x11/wxGTK26/Makefile | 4 | ||||
-rw-r--r-- | x11/wxGTK26/distinfo | 3 | ||||
-rw-r--r-- | x11/wxGTK26/patches/patch-ac | 18 |
3 files changed, 22 insertions, 3 deletions
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 + // ---------------------------------------------------------------------------- |