pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/pulseaudio Workaround PR lib/40220 on NetBSD, pa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b299258cdfa8
branches: trunk
changeset: 551659:b299258cdfa8
user: jmcneill <jmcneill%pkgsrc.org@localhost>
date: Thu Dec 18 18:43:52 2008 +0000
description:
Workaround PR lib/40220 on NetBSD, padsp (OSS wrapper) now works.
Bump PKGREVISION.
diffstat:
audio/pulseaudio/Makefile | 3 +-
audio/pulseaudio/distinfo | 4 +-
audio/pulseaudio/patches/patch-aa | 40 ++++++++++++++++++++++++++++----------
3 files changed, 33 insertions(+), 14 deletions(-)
diffs (145 lines):
diff -r 8ee191cda646 -r b299258cdfa8 audio/pulseaudio/Makefile
--- a/audio/pulseaudio/Makefile Thu Dec 18 17:58:13 2008 +0000
+++ b/audio/pulseaudio/Makefile Thu Dec 18 18:43:52 2008 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/12/18 14:42:56 jmcneill Exp $
+# $NetBSD: Makefile,v 1.2 2008/12/18 18:43:52 jmcneill Exp $
#
DISTNAME= pulseaudio-0.9.13
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://0pointer.de/lennart/projects/pulseaudio/
diff -r 8ee191cda646 -r b299258cdfa8 audio/pulseaudio/distinfo
--- a/audio/pulseaudio/distinfo Thu Dec 18 17:58:13 2008 +0000
+++ b/audio/pulseaudio/distinfo Thu Dec 18 18:43:52 2008 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/12/18 14:42:56 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2008/12/18 18:43:52 jmcneill Exp $
SHA1 (pulseaudio-0.9.13.tar.gz) = c8482f1bb42d5213bfdbe2154e1a55b7bc04c915
RMD160 (pulseaudio-0.9.13.tar.gz) = 07cea9939dfb4fc76f13bf01dfe22ab6d0fd8459
Size (pulseaudio-0.9.13.tar.gz) = 1308493 bytes
-SHA1 (patch-aa) = f37fadef990c8e8f387e7cc0f9880e40a5ff5e4e
+SHA1 (patch-aa) = 8cc076c1301fa90ee0bb113ec3fee885ba99fbb4
SHA1 (patch-ab) = b894cf1797a2f02e8131be8abc8250774bfec1ec
SHA1 (patch-ac) = 8f61cf7c4a6681ab53c9ddf1007acb1bf524fe15
SHA1 (patch-ad) = 63571597ba707679142b45b2daaffade7f094bb0
diff -r 8ee191cda646 -r b299258cdfa8 audio/pulseaudio/patches/patch-aa
--- a/audio/pulseaudio/patches/patch-aa Thu Dec 18 17:58:13 2008 +0000
+++ b/audio/pulseaudio/patches/patch-aa Thu Dec 18 18:43:52 2008 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/12/18 14:42:56 jmcneill Exp $
+$NetBSD: patch-aa,v 1.2 2008/12/18 18:43:52 jmcneill Exp $
--- src/utils/padsp.c.orig 2008-10-01 19:05:01.000000000 -0400
+++ src/utils/padsp.c
@@ -38,7 +38,25 @@
#define LOAD_OPEN_FUNC() \
do { \
-@@ -1452,7 +1466,8 @@ static int real_open(const char *filenam
+@@ -180,11 +194,16 @@ do { \
+ pthread_mutex_unlock(&func_mutex); \
+ } while(0)
+
++#ifdef __NetBSD__
++#define STAT_FUNC "__stat30"
++#else
++#define STAT_FUNC "stat"
++#endif
+ #define LOAD_STAT_FUNC() \
+ do { \
+ pthread_mutex_lock(&func_mutex); \
+ if (!_stat) \
+- _stat = (int (*)(const char *, struct stat *)) dlsym_fn(RTLD_NEXT, "stat"); \
++ _stat = (int (*)(const char *, struct stat *)) dlsym_fn(RTLD_NEXT, STAT_FUNC); \
+ pthread_mutex_unlock(&func_mutex); \
+ } while(0)
+
+@@ -1452,7 +1471,8 @@ static int real_open(const char *filenam
return _open(filename, flags, mode);
}
@@ -48,7 +66,7 @@
r = dsp_open(flags, &_errno);
else if (filename && mixer_cloak_enable() && strcmp(filename, "/dev/mixer") == 0)
r = mixer_open(flags, &_errno);
-@@ -2313,19 +2328,27 @@ fail:
+@@ -2313,19 +2333,27 @@ fail:
#ifdef sun
int ioctl(int fd, int request, ...) {
@@ -76,7 +94,7 @@
if (!function_enter()) {
LOAD_IOCTL_FUNC();
-@@ -2383,6 +2406,8 @@ int access(const char *pathname, int mod
+@@ -2383,6 +2411,8 @@ int access(const char *pathname, int mod
if (!pathname ||
( strcmp(pathname, "/dev/dsp") != 0 &&
@@ -85,7 +103,7 @@
strcmp(pathname, "/dev/adsp") != 0 &&
strcmp(pathname, "/dev/sndstat") != 0 &&
strcmp(pathname, "/dev/mixer") != 0 )) {
-@@ -2412,6 +2437,8 @@ int stat(const char *pathname, struct st
+@@ -2412,6 +2442,8 @@ int stat(const char *pathname, struct st
if (!pathname ||
!buf ||
( strcmp(pathname, "/dev/dsp") != 0 &&
@@ -94,7 +112,7 @@
strcmp(pathname, "/dev/adsp") != 0 &&
strcmp(pathname, "/dev/sndstat") != 0 &&
strcmp(pathname, "/dev/mixer") != 0 )) {
-@@ -2469,6 +2496,8 @@ int stat64(const char *pathname, struct
+@@ -2469,6 +2501,8 @@ int stat64(const char *pathname, struct
if (!pathname ||
!buf ||
( strcmp(pathname, "/dev/dsp") != 0 &&
@@ -103,7 +121,7 @@
strcmp(pathname, "/dev/adsp") != 0 &&
strcmp(pathname, "/dev/sndstat") != 0 &&
strcmp(pathname, "/dev/mixer") != 0 )) {
-@@ -2514,6 +2543,8 @@ int open64(const char *filename, int fla
+@@ -2514,6 +2548,8 @@ int open64(const char *filename, int fla
if (!filename ||
( strcmp(filename, "/dev/dsp") != 0 &&
@@ -112,7 +130,7 @@
strcmp(filename, "/dev/adsp") != 0 &&
strcmp(filename, "/dev/sndstat") != 0 &&
strcmp(filename, "/dev/mixer") != 0 )) {
-@@ -2534,6 +2565,8 @@ int __xstat(int ver, const char *pathnam
+@@ -2534,6 +2570,8 @@ int __xstat(int ver, const char *pathnam
if (!pathname ||
!buf ||
( strcmp(pathname, "/dev/dsp") != 0 &&
@@ -121,7 +139,7 @@
strcmp(pathname, "/dev/adsp") != 0 &&
strcmp(pathname, "/dev/sndstat") != 0 &&
strcmp(pathname, "/dev/mixer") != 0 )) {
-@@ -2557,6 +2590,8 @@ int __xstat64(int ver, const char *pathn
+@@ -2557,6 +2595,8 @@ int __xstat64(int ver, const char *pathn
if (!pathname ||
!buf ||
( strcmp(pathname, "/dev/dsp") != 0 &&
@@ -130,7 +148,7 @@
strcmp(pathname, "/dev/adsp") != 0 &&
strcmp(pathname, "/dev/sndstat") != 0 &&
strcmp(pathname, "/dev/mixer") != 0 )) {
-@@ -2586,6 +2621,8 @@ FILE* fopen(const char *filename, const
+@@ -2586,6 +2626,8 @@ FILE* fopen(const char *filename, const
if (!filename ||
!mode ||
( strcmp(filename, "/dev/dsp") != 0 &&
@@ -139,7 +157,7 @@
strcmp(filename, "/dev/adsp") != 0 &&
strcmp(filename, "/dev/sndstat") != 0 &&
strcmp(filename, "/dev/mixer") != 0 )) {
-@@ -2629,6 +2666,8 @@ FILE *fopen64(const char *filename, cons
+@@ -2629,6 +2671,8 @@ FILE *fopen64(const char *filename, cons
if (!filename ||
!mode ||
( strcmp(filename, "/dev/dsp") != 0 &&
Home |
Main Index |
Thread Index |
Old Index