head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.4 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.2 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q3:1.3.0.12 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.10 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.8 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.4 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.2 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.2.0.10 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.8 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.6 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.4 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.2.0.2 pkgsrc-2010Q1-base:1.2 pkgsrc-2009Q4:1.1.0.10 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.8 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.6 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.4 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.2 pkgsrc-2008Q4-base:1.1; locks; strict; comment @# @; 1.4 date 2012.11.03.01.54.55; author ryoon; state dead; branches; next 1.3; 1.3 date 2011.05.21.15.33.00; author wiz; state Exp; branches; next 1.2; 1.2 date 2010.02.01.15.00.20; author jmcneill; state Exp; branches; next 1.1; 1.1 date 2008.12.23.02.15.27; author hasso; state Exp; branches; next ; desc @@ 1.4 log @Update to 2.1 * Tested on NetBSD/i386 5.1, /i386 6.0, and /amd64 6.99.13 * Also tested on OpenIndiana/i386 151a7, but my environment lacks audio device, so I cannot check audio output * Tested with multimedia/mplayer's -ao pulse option, works fine * Add gm4 to USE_TOOLS for OpenIndiana build Changelog: Many changes. See http://www.freedesktop.org/wiki/Software/PulseAudio . @ text @$NetBSD: patch-ag,v 1.3 2011/05/21 15:33:00 wiz Exp $ shm_open takes a path on NetBSD; pa_shm_create_rw needs write permissions, so +w the shared memory when creating it. --- src/pulsecore/shm.c.orig 2010-02-01 14:21:15.000000000 +0000 +++ src/pulsecore/shm.c @@@@ -91,7 +91,7 @@@@ struct shm_marker { #define SHM_MARKER_SIZE PA_ALIGN(sizeof(struct shm_marker)) static char *segment_name(char *fn, size_t l, unsigned id) { - pa_snprintf(fn, l, "/pulse-shm-%u", id); + pa_snprintf(fn, l, "/tmp/pulse-shm-%u", id); return fn; } @@@@ -142,7 +142,7 @@@@ int pa_shm_create_rw(pa_shm *m, size_t s pa_random(&m->id, sizeof(m->id)); segment_name(fn, sizeof(fn), m->id); - if ((fd = shm_open(fn, O_RDWR|O_CREAT|O_EXCL, mode & 0444)) < 0) { + if ((fd = shm_open(fn, O_RDWR|O_CREAT|O_EXCL, mode & 0644)) < 0) { pa_log("shm_open() failed: %s", pa_cstrerror(errno)); goto fail; } @ 1.3 log @Add comments to most patches. Also add a patch by drochner: pthread_key_create returns 0 on success; return values on failure are not defined. Remaining patches without comments: patch-ab: adding an ifdef notyet in src/daemon/main.c patch-a{c,e}: --start -> -D (no idea why) patch-af: allow some Linux-only code also on NetBSD @ text @d1 1 a1 1 $NetBSD: patch-ag,v 1.2 2010/02/01 15:00:20 jmcneill Exp $ @ 1.2 log @Update pulseaudio to 0.9.21. Too many changes to list here: http://pulseaudio.org/milestone/0.9.15 http://pulseaudio.org/milestone/0.9.16 http://pulseaudio.org/milestone/0.9.17 http://pulseaudio.org/milestone/0.9.18 http://pulseaudio.org/milestone/0.9.19 http://pulseaudio.org/milestone/0.9.20 http://pulseaudio.org/milestone/0.9.21 @ text @d1 4 a4 1 $NetBSD$ @ 1.1 log @Portability fixes to make it compile in DragonFly and possibly to help other platforms. @ text @d3 4 a6 4 --- ./src/modules/oss-util.c.orig 2008-12-21 22:03:48 +0200 +++ ./src/modules/oss-util.c 2008-12-21 22:04:31 +0200 @@@@ -298,7 +298,11 @@@@ static int get_device_number(const char int r; d8 14 a21 8 if (!(p = rp = pa_readlink(dev))) { +#ifdef ENOLINK if (errno != EINVAL && errno != ENOLINK) { +#else + if (errno != EINVAL) { +#endif r = -1; goto finish; @