pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/darkice This patch disables the priority schedul...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/650b1e9c9ea5
branches:  trunk
changeset: 490466:650b1e9c9ea5
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Mar 11 21:27:17 2005 +0000

description:
This patch disables the priority scheduling if it is not available.
Needed at least for NetBSD-1.6.2. Approved by wiz.

diffstat:

 audio/darkice/distinfo         |   3 ++-
 audio/darkice/patches/patch-aa |  40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r 876e08770140 -r 650b1e9c9ea5 audio/darkice/distinfo
--- a/audio/darkice/distinfo    Fri Mar 11 21:24:49 2005 +0000
+++ b/audio/darkice/distinfo    Fri Mar 11 21:27:17 2005 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 20:39:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/03/11 21:27:17 rillig Exp $
 
 SHA1 (darkice-0.14.tar.gz) = 3c86c1f68ee7b1616911345ede1515652603b34f
 RMD160 (darkice-0.14.tar.gz) = 05f712fe8e2bb27dcd33543c4d9cd7cf696fd58e
 Size (darkice-0.14.tar.gz) = 337956 bytes
+SHA1 (patch-aa) = 9eba63fbc55e84f72adab2ec4bdd0c8bf97295f2
diff -r 876e08770140 -r 650b1e9c9ea5 audio/darkice/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/darkice/patches/patch-aa    Fri Mar 11 21:27:17 2005 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.3 2005/03/11 21:27:17 rillig Exp $
+
+This patch disables the priority scheduling if it is not available.
+
+Needed at least for NetBSD-1.6.2.
+
+--- src/DarkIce.cpp.orig       Sun Feb 15 13:14:38 2004
++++ src/DarkIce.cpp    Fri Mar 11 18:01:41 2005
+@@ -873,6 +873,7 @@ DarkIce :: configFileCast (  const Confi
+ void
+ DarkIce :: setRealTimeScheduling ( void )               throw ( Exception )
+ {
++#ifdef _POSIX_PRIORITY_SCHEDULING
+     uid_t   euid;
+ 
+     euid = geteuid();
+@@ -917,6 +918,7 @@ DarkIce :: setRealTimeScheduling ( void 
+         reportEvent( 1,
+         "It is recommended that you run this program as super-user");
+     }
++#endif
+ }
+ 
+ 
+@@ -928,6 +930,7 @@ DarkIce :: setRealTimeScheduling ( void 
+ void
+ DarkIce :: setOriginalScheduling ( void )               throw ( Exception )
+ {
++#ifdef _POSIX_PRIORITY_SCHEDULING
+     uid_t   euid;
+ 
+     euid = geteuid();
+@@ -947,6 +950,7 @@ DarkIce :: setOriginalScheduling ( void 
+ 
+         reportEvent( 5, "reverted to original scheduling");
+     }
++#endif
+ }
+ 
+ 



Home | Main Index | Thread Index | Old Index