head 1.5; access; symbols pkgsrc-2013Q2:1.5.0.4 pkgsrc-2013Q2-base:1.5 pkgsrc-2012Q4:1.5.0.2 pkgsrc-2012Q4-base:1.5 pkgsrc-2012Q3:1.4.0.12 pkgsrc-2012Q3-base:1.4 pkgsrc-2012Q2:1.4.0.10 pkgsrc-2012Q2-base:1.4 pkgsrc-2012Q1:1.4.0.8 pkgsrc-2012Q1-base:1.4 pkgsrc-2011Q4:1.4.0.6 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q3:1.4.0.4 pkgsrc-2011Q3-base:1.4 pkgsrc-2011Q2:1.4.0.2 pkgsrc-2011Q2-base:1.4 pkgsrc-2011Q1:1.3.0.6 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.4 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.2 pkgsrc-2010Q3-base:1.3 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.5 date 2012.11.03.01.54.55; author ryoon; state dead; branches; next 1.4; 1.4 date 2011.05.21.15.33.00; author wiz; state Exp; branches; next 1.3; 1.3 date 2010.08.10.05.42.34; author tsutsui; state Exp; branches; next 1.2; 1.2 date 2010.02.01.15.05.58; author jmcneill; state dead; branches; next 1.1; 1.1 date 2008.12.23.02.15.27; author hasso; state Exp; branches; next ; desc @@ 1.5 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-ah,v 1.4 2011/05/21 15:33:00 wiz Exp $ Fix build on NetBSD/arm: Fix wrong placed #else clause against #if defined(__linux__) in cpu-arm.c. --- src/pulsecore/cpu-arm.c.orig 2009-11-23 03:57:07.000000000 +0000 +++ src/pulsecore/cpu-arm.c 2010-08-07 08:14:36.000000000 +0000 @@@@ -129,11 +129,11 @@@@ (flags & PA_CPU_ARM_EDSP) ? "EDSP " : "", (flags & PA_CPU_ARM_NEON) ? "NEON " : "", (flags & PA_CPU_ARM_VFPV3) ? "VFPV3 " : ""); -#else /* defined (__linux__) */ - pa_log ("ARM cpu features not yet supported on this OS"); -#endif /* defined (__linux__) */ if (flags & PA_CPU_ARM_V6) pa_volume_func_init_arm (flags); +#else /* defined (__linux__) */ + pa_log ("ARM cpu features not yet supported on this OS"); +#endif /* defined (__linux__) */ #endif /* defined (__arm__) */ } @ 1.4 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-ah,v 1.3 2010/08/10 05:42:34 tsutsui Exp $ @ 1.3 log @Fix build failure on NetBSD/arm. patch-ah (new): Fix wrong placed #else clause against #if defined(__linux__) in cpu-arm.c. patch-ba: Check NetBSD's native atomic_ops in configure even in arm case. configure checks $host_cpu first, not $host_os on checks for native atomic operations. (In upstream it seems fixed to see $host_os first but it might still have problem around NetBSD version checks) @ text @d1 4 a4 1 $NetBSD$ @ 1.2 log @gc old patches, no longer necessary for pa 0.9.21 @ text @d1 1 a1 1 $NetBSD: patch-ah,v 1.1 2008/12/23 02:15:27 hasso Exp $ d3 17 a19 83 --- src/pulsecore/core-util.c.orig 2008-12-21 23:55:12 +0200 +++ src/pulsecore/core-util.c 2008-12-22 00:26:22 +0200 @@@@ -1026,12 +1026,21 @@@@ int pa_uid_in_group(uid_t uid, const cha char **i; int r = -1; +#ifdef _SC_GETGR_R_SIZE_MAX g_n = sysconf(_SC_GETGR_R_SIZE_MAX); g_buf = pa_xmalloc((size_t) g_n); +#else + g_buf = pa_xmalloc(512); +#endif +#ifdef _SC_GETPW_R_SIZE_MAX p_n = sysconf(_SC_GETPW_R_SIZE_MAX); p_buf = pa_xmalloc((size_t) p_n); +#else + p_buf = pa_xmalloc(512); +#endif +#ifdef HAVE_GETGRNAM_R errno = 0; if (getgrnam_r(name, &grbuf, g_buf, (size_t) g_n, &gr) != 0 || !gr) { @@@@ -1040,14 +1049,28 @@@@ int pa_uid_in_group(uid_t uid, const cha goto finish; } +#else + gr = getgrnam(name); + + if (gr == NULL) { + errno = ENOENT; + goto finish; + } +#endif r = 0; for (i = gr->gr_mem; *i; i++) { struct passwd pwbuf, *pw; +#ifdef HAVE_GETPWNAM_R errno = 0; if (getpwnam_r(*i, &pwbuf, p_buf, (size_t) p_n, &pw) != 0 || !pw) continue; +#else + pw = getpwnam(*i); + if (pw == NULL) + continue; +#endif if (pw->pw_uid == uid) { r = 1; @@@@ -1069,9 +1092,14 @@@@ gid_t pa_get_gid_of_group(const char *na long g_n; struct group grbuf, *gr; +#ifdef _SC_GETGR_R_SIZE_MAX g_n = sysconf(_SC_GETGR_R_SIZE_MAX); g_buf = pa_xmalloc((size_t) g_n); +#else + g_buf = pa_xmalloc(512); +#endif +#ifdef HAVE_GETGRNAM_R errno = 0; if (getgrnam_r(name, &grbuf, g_buf, (size_t) g_n, &gr) != 0 || !gr) { @@@@ -1080,6 +1108,14 @@@@ gid_t pa_get_gid_of_group(const char *na goto finish; } +#else + gr = getgrnam(name); + + if (gr == NULL) { + errno = ENOENT; + goto finish; + } +#endif ret = gr->gr_gid; @ 1.1 log @Portability fixes to make it compile in DragonFly and possibly to help other platforms. @ text @d1 1 a1 1 $NetBSD$ @