1 --- pulseaudio-1.0/configure.ac.orig 2011-09-27 09:55:58.000000000 +0200
2 +++ pulseaudio-1.0/configure.ac 2011-10-12 20:57:56.702352030 +0200
4 AC_SUBST(pulseconfdir, ["${sysconfdir}/pulse"])
5 AX_DEFINE_DIR(PA_DEFAULT_CONFIG_DIR, pulseconfdir, [Location of configuration files])
7 +PA_PA_MACHINE_ID="${sysconfdir}/pulse"
8 +AX_DEFINE_DIR(PA_PA_MACHINE_ID, PA_PA_MACHINE_ID, [PA machine-id file])
10 AC_DEFINE_UNQUOTED(PA_BUILDDIR, "${ac_pwd}/src", [Location of uninstalled binaries])
12 #### Mac OSX specific stuff #####
13 --- pulseaudio-0.9.21/src/pulsecore/core-util.c.orig 2009-11-23 04:57:07.000000000 +0100
14 +++ pulseaudio-0.9.21/src/pulsecore/core-util.c 2010-06-09 00:20:25.361930253 +0200
15 @@ -2560,6 +2560,20 @@
16 /* The returned value is supposed be some kind of ascii identifier
17 * that is unique and stable across reboots. */
19 + /* First we try locally configured ID */
21 + if ((f = fopen(PA_PA_MACHINE_ID, "r"))) {
22 + char ln[34] = "", *r;
24 + r = fgets(ln, sizeof(ln)-1, f);
30 + return pa_utf8_filter(ln);
33 /* First we try the D-Bus UUID, which is the best option we have,
34 * since it fits perfectly our needs and is not as volatile as the
35 * hostname which might be set from dhcp. */