pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/audio/pulseaudio
Module Name: pkgsrc
Committed By: ryoon
Date: Sat Feb 20 22:10:39 UTC 2021
Modified Files:
pkgsrc/audio/pulseaudio: Makefile distinfo
pkgsrc/audio/pulseaudio/patches: patch-src_modules_module-detect.c
patch-src_modules_oss_module-oss.c
Log Message:
pulseaudio: Use DEVOSSAUDIO instead of hardcoded /dev/audio
To generate a diff of this commit:
cvs rdiff -u -r1.155 -r1.156 pkgsrc/audio/pulseaudio/Makefile
cvs rdiff -u -r1.75 -r1.76 pkgsrc/audio/pulseaudio/distinfo
cvs rdiff -u -r1.6 -r1.7 \
pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c
cvs rdiff -u -r1.2 -r1.3 \
pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/audio/pulseaudio/Makefile
diff -u pkgsrc/audio/pulseaudio/Makefile:1.155 pkgsrc/audio/pulseaudio/Makefile:1.156
--- pkgsrc/audio/pulseaudio/Makefile:1.155 Sun Feb 7 06:25:31 2021
+++ pkgsrc/audio/pulseaudio/Makefile Sat Feb 20 22:10:39 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.155 2021/02/07 06:25:31 ryoon Exp $
+# $NetBSD: Makefile,v 1.156 2021/02/20 22:10:39 ryoon Exp $
DISTNAME= pulseaudio-14.2
PKGREVISION= 1
@@ -13,6 +13,13 @@ LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
NOT_FOR_PLATFORM= DragonFly-*-*
+SUBST_CLASSES+= oss
+SUBST_STAGE.oss= pre-configure
+SUBST_MESSAGE.oss= Set OSS device node
+SUBST_FILES.oss+= src/modules/oss/module-oss.c
+SUBST_FILES.oss+= src/modules/module-detect.c
+SUBST_VARS.oss+= DEVOSSAUDIO
+
# Requires --desktop in msgfmt.
_TOOLS_USE_PKGSRC.msgfmt= yes
Index: pkgsrc/audio/pulseaudio/distinfo
diff -u pkgsrc/audio/pulseaudio/distinfo:1.75 pkgsrc/audio/pulseaudio/distinfo:1.76
--- pkgsrc/audio/pulseaudio/distinfo:1.75 Sun Feb 7 06:25:31 2021
+++ pkgsrc/audio/pulseaudio/distinfo Sat Feb 20 22:10:39 2021
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.75 2021/02/07 06:25:31 ryoon Exp $
+$NetBSD: distinfo,v 1.76 2021/02/20 22:10:39 ryoon Exp $
SHA1 (pulseaudio-14.2.tar.xz) = 5dfc46595e981f0eb6308d07666f4108a69b2106
RMD160 (pulseaudio-14.2.tar.xz) = 5e52b8549a0ece2b52df854b5edaa2998c438ccd
@@ -6,8 +6,8 @@ SHA512 (pulseaudio-14.2.tar.xz) = 196338
Size (pulseaudio-14.2.tar.xz) = 1951300 bytes
SHA1 (patch-configure.ac) = 125098049a779b7afb70a7a4a625706a0c172683
SHA1 (patch-src_Makefile.am) = 5d136002c12016a8b451e84103a627685ec403de
-SHA1 (patch-src_modules_module-detect.c) = b68923d6adc6640d2eef4b50b54e3f9ec437d042
-SHA1 (patch-src_modules_oss_module-oss.c) = 399ac178ae832619253ce8dd985edbed23db86e7
+SHA1 (patch-src_modules_module-detect.c) = 860529fef9a14cbaa3979d985f5fde391b121484
+SHA1 (patch-src_modules_oss_module-oss.c) = d254f6c346d34470c9e178199c485e929bfd84c5
SHA1 (patch-src_modules_raop_raop-client.h) = 9fb7ae86a6852022f53aee3765777bd136250ffb
SHA1 (patch-src_pulsecore_mix__neon.c) = 6f6d33d38024d65045d637d48276e1ba92b81342
SHA1 (patch-src_pulsecore_shm.c) = c7079e8ac3461f5069e1415a2816784781aaa59c
Index: pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c
diff -u pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c:1.6 pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c:1.7
--- pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c:1.6 Thu Dec 17 09:42:59 2020
+++ pkgsrc/audio/pulseaudio/patches/patch-src_modules_module-detect.c Sat Feb 20 22:10:39 2021
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_modules_module-detect.c,v 1.6 2020/12/17 09:42:59 ryoon Exp $
+$NetBSD: patch-src_modules_module-detect.c,v 1.7 2021/02/20 22:10:39 ryoon Exp $
Hack to set proper sound device on NetBSD.
@@ -17,12 +17,12 @@ Hack to set proper sound device on NetBS
+ */
+ char args[64];
-+ pa_snprintf(args, sizeof(args), "mmap=0 device=/dev/audio");
++ pa_snprintf(args, sizeof(args), "mmap=0 device=@DEVOSSAUDIO@");
+ if (pa_module_load(&m, c, "module-oss", args) < 0)
+ return 0;
+
+ for (int i = 0; i < 4; i++) {
-+ pa_snprintf(args, sizeof(args), "mmap=0 device=/dev/audio%d", i);
++ pa_snprintf(args, sizeof(args), "mmap=0 device=@DEVOSSAUDIO@%d", i);
+ if (pa_module_load(&m, c, "module-oss", args) < 0)
+ return i + 1;
+ }
Index: pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c
diff -u pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c:1.2 pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c:1.3
--- pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c:1.2 Wed Jun 25 15:26:40 2014
+++ pkgsrc/audio/pulseaudio/patches/patch-src_modules_oss_module-oss.c Sat Feb 20 22:10:39 2021
@@ -1,18 +1,15 @@
-$NetBSD: patch-src_modules_oss_module-oss.c,v 1.2 2014/06/25 15:26:40 ryoon Exp $
+$NetBSD: patch-src_modules_oss_module-oss.c,v 1.3 2021/02/20 22:10:39 ryoon Exp $
-Set proper sound device default on NetBSD.
+Set DEVOSSAUDIO value to fix default device on NetBSD at least.
---- src/modules/oss/module-oss.c.orig 2014-01-23 18:57:55.000000000 +0000
+--- src/modules/oss/module-oss.c.orig 2021-01-16 17:26:36.000000000 +0000
+++ src/modules/oss/module-oss.c
-@@ -98,7 +98,11 @@ PA_MODULE_USAGE(
+@@ -95,7 +95,7 @@ PA_MODULE_USAGE(
PA_MODULE_DEPRECATED("Please use module-alsa-card instead of module-oss!");
#endif
-+#if defined(__NetBSD__)
-+#define DEFAULT_DEVICE "/dev/audio"
-+#else /* Linux */
- #define DEFAULT_DEVICE "/dev/dsp"
-+#endif
+-#define DEFAULT_DEVICE "/dev/dsp"
++#define DEFAULT_DEVICE "@DEVOSSAUDIO@"
struct userdata {
pa_core *core;
Home |
Main Index |
Thread Index |
Old Index