pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11 Disable usage of POSIX thread priority functions o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7140eb86b0b3
branches:  trunk
changeset: 552771:7140eb86b0b3
user:      shattered <shattered%pkgsrc.org@localhost>
date:      Thu Jan 08 21:58:17 2009 +0000

description:
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:

 x11/wxGTK24/Makefile         |   4 ++--
 x11/wxGTK24/distinfo         |   3 ++-
 x11/wxGTK24/patches/patch-aj |  20 ++++++++++++++++++++
 x11/wxGTK26/Makefile         |   4 ++--
 x11/wxGTK26/distinfo         |   3 ++-
 x11/wxGTK26/patches/patch-ac |  18 ++++++++++++++++++
 x11/wxGTK28/Makefile         |   3 ++-
 x11/wxGTK28/distinfo         |   3 ++-
 x11/wxGTK28/patches/patch-ac |  18 ++++++++++++++++++
 9 files changed, 68 insertions(+), 8 deletions(-)

diffs (154 lines):

diff -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK24/Makefile
--- a/x11/wxGTK24/Makefile      Thu Jan 08 21:48:00 2009 +0000
+++ b/x11/wxGTK24/Makefile      Thu Jan 08 21:58:17 2009 +0000
@@ -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 -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK24/distinfo
--- a/x11/wxGTK24/distinfo      Thu Jan 08 21:48:00 2009 +0000
+++ b/x11/wxGTK24/distinfo      Thu Jan 08 21:58:17 2009 +0000
@@ -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-ag) = ccdaca4030c08aefa922367019e0c9249b810456
 SHA1 (patch-ah) = 24cc32f7eda53f4704422363902f72239eda2253
 SHA1 (patch-ai) = c5d301c2cb45397329d9a817d9278707a2d3b97f
+SHA1 (patch-aj) = 9f74442617e6a869c5ff253591bba3f9da3a9e0c
diff -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK24/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/wxGTK24/patches/patch-aj      Thu Jan 08 21:58:17 2009 +0000
@@ -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 -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK26/Makefile
--- a/x11/wxGTK26/Makefile      Thu Jan 08 21:48:00 2009 +0000
+++ b/x11/wxGTK26/Makefile      Thu Jan 08 21:58:17 2009 +0000
@@ -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 -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK26/distinfo
--- a/x11/wxGTK26/distinfo      Thu Jan 08 21:48:00 2009 +0000
+++ b/x11/wxGTK26/distinfo      Thu Jan 08 21:58:17 2009 +0000
@@ -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 @@
 Size (wxGTK-2.6.3.tar.bz2) = 7213119 bytes
 SHA1 (patch-aa) = 0ef5ae28b70a3290e37363193248365f4cf03cec
 SHA1 (patch-ab) = 3e9c6bc0df33e466390a4f6483b1c84e2eb9257b
+SHA1 (patch-ac) = 50bd7d4291e44dac1d2bbbae1b12167177f5ef01
diff -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK26/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/wxGTK26/patches/patch-ac      Thu Jan 08 21:58:17 2009 +0000
@@ -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 -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK28/Makefile
--- a/x11/wxGTK28/Makefile      Thu Jan 08 21:48:00 2009 +0000
+++ b/x11/wxGTK28/Makefile      Thu Jan 08 21:58:17 2009 +0000
@@ -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 -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK28/distinfo
--- a/x11/wxGTK28/distinfo      Thu Jan 08 21:48:00 2009 +0000
+++ b/x11/wxGTK28/distinfo      Thu Jan 08 21:58:17 2009 +0000
@@ -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 @@
 Size (wxGTK-2.8.8.tar.bz2) = 9482521 bytes
 SHA1 (patch-aa) = 9cf0af5d5d9f6eaee43ed74c45e45c0a88907ad1
 SHA1 (patch-ab) = d071e5e9f8dfd9c61a527464c55bfc671a27bbd0
+SHA1 (patch-ac) = 50cf253797f2dee8b9dab08d138d0070e25e7a8c
diff -r 24e11a553915 -r 7140eb86b0b3 x11/wxGTK28/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/wxGTK28/patches/patch-ac      Thu Jan 08 21:58:17 2009 +0000
@@ -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
+ // ----------------------------------------------------------------------------



Home | Main Index | Thread Index | Old Index