diff options
author | mrg <mrg@pkgsrc.org> | 2016-10-25 01:23:55 +0000 |
---|---|---|
committer | mrg <mrg@pkgsrc.org> | 2016-10-25 01:23:55 +0000 |
commit | 3d9560a31b9680f9265be43073c8f1015de33222 (patch) | |
tree | 68b68e79c7bd04b8af46773d378546da574a2545 /audio | |
parent | 99fffa53eced9e03df26ac283f66140edf16cd53 (diff) | |
download | pkgsrc-3d9560a31b9680f9265be43073c8f1015de33222.tar.gz |
fix LOGGER_SLEEP() to not call usleep() with 1000000 which is allowed
to be illegal (and is on netbsd.) this fixes 100% cpu usage seen
while doing nothing at all. (it still writes nul to /dev/audio while
doing nothing, but that takes little cpu :)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/hydrogen/Makefile | 4 | ||||
-rw-r--r-- | audio/hydrogen/distinfo | 3 | ||||
-rw-r--r-- | audio/hydrogen/patches/patch-src_core_src_logger.cpp | 15 |
3 files changed, 19 insertions, 3 deletions
diff --git a/audio/hydrogen/Makefile b/audio/hydrogen/Makefile index b710518bb84..c73e00eca4f 100644 --- a/audio/hydrogen/Makefile +++ b/audio/hydrogen/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.51 2016/06/18 11:24:54 ryoon Exp $ +# $NetBSD: Makefile,v 1.52 2016/10/25 01:23:55 mrg Exp $ DISTNAME= Hydrogen-0.9.6.1 PKGNAME= ${DISTNAME:tl} -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_GITHUB:=hydrogen-music/} GITHUB_PROJECT= Hydrogen diff --git a/audio/hydrogen/distinfo b/audio/hydrogen/distinfo index 6d2e65fac6e..e21993e0089 100644 --- a/audio/hydrogen/distinfo +++ b/audio/hydrogen/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.13 2016/06/18 11:24:54 ryoon Exp $ +$NetBSD: distinfo,v 1.14 2016/10/25 01:23:55 mrg Exp $ SHA1 (Hydrogen-0.9.6.1.tar.gz) = 3a288fbb06f65fd257e7f7648e07891276dbf56a RMD160 (Hydrogen-0.9.6.1.tar.gz) = a5b3c969c51fdbd18d0fe7eadae3199e44b192aa SHA512 (Hydrogen-0.9.6.1.tar.gz) = afb501fb1565a95677aa2702f5d93ee611f03f60dfc8aa5a22714bb261bfeecf2b28e0b591763ec4d1a0b60f8153ef01c3fdfae924ca252943a2396ac953717f Size (Hydrogen-0.9.6.1.tar.gz) = 6626629 bytes +SHA1 (patch-src_core_src_logger.cpp) = 37434775148873248b6f559df2b6d821ad5a9405 diff --git a/audio/hydrogen/patches/patch-src_core_src_logger.cpp b/audio/hydrogen/patches/patch-src_core_src_logger.cpp new file mode 100644 index 00000000000..139ce98d982 --- /dev/null +++ b/audio/hydrogen/patches/patch-src_core_src_logger.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_core_src_logger.cpp,v 1.1 2016/10/25 01:23:55 mrg Exp $ + +usleep(1000000) is illegal. + +--- src/core/src/logger.cpp.orig 2014-09-09 11:39:33.000000000 -0700 ++++ src/core/src/logger.cpp 2016-10-24 14:40:32.000000000 -0700 +@@ -31,7 +31,7 @@ + #define LOGGER_SLEEP Sleep( 100 ) + #else + #include <unistd.h> +-#define LOGGER_SLEEP usleep( 1000000 ) ++#define LOGGER_SLEEP do { usleep( 500000 ); usleep( 500000 ); } while (0) + #endif + + namespace H2Core { |