From a61d0ff5bdb2c9006f5e35d70cea3f74f66231d1 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Fri, 28 Mar 2008 15:39:27 +0000 Subject: pulseaudio 0.9.9 fix building against uClibc. closes #4106 --- packages/pulseaudio/files/fix-shm.patch | 20 ++++++++++++++++++++ packages/pulseaudio/pulseaudio_0.9.9.bb | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 packages/pulseaudio/files/fix-shm.patch (limited to 'packages') diff --git a/packages/pulseaudio/files/fix-shm.patch b/packages/pulseaudio/files/fix-shm.patch new file mode 100644 index 0000000000..3bf61d0d34 --- /dev/null +++ b/packages/pulseaudio/files/fix-shm.patch @@ -0,0 +1,20 @@ +# fixes building against uclibc +# fixed upstream, see http://www.pulseaudio.org/ticket/200 +Index: pulseaudio-0.9.9/src/pulsecore/shm.c +=================================================================== +--- pulseaudio-0.9.9/src/pulsecore/shm.c (revision 1971) ++++ pulseaudio-0.9.9/src/pulsecore/shm.c (revision 2110) +@@ -319,4 +319,5 @@ + int pa_shm_cleanup(void) { + ++#ifdef HAVE_SHM_OPEN + #ifdef SHM_PATH + DIR *d; +@@ -376,5 +377,6 @@ + + closedir(d); +-#endif ++#endif /* SHM_PATH */ ++#endif /* HAVE_SHM_OPEN */ + + return 0; diff --git a/packages/pulseaudio/pulseaudio_0.9.9.bb b/packages/pulseaudio/pulseaudio_0.9.9.bb index 7e63b61eb3..f38595e5dd 100644 --- a/packages/pulseaudio/pulseaudio_0.9.9.bb +++ b/packages/pulseaudio/pulseaudio_0.9.9.bb @@ -1,15 +1,15 @@ require pulse.inc DEPENDS += "dbus" +PR = "r4" # this is not correct (see below) SRC_URI += "\ file://disable-using-glibc-tls.patch;patch=1 \ file://fix-dbus-without-hal.patch;patch=1 \ + file://fix-shm.patch;patch=1 \ " -PR = "r3" - # problems w/ pulseaudio 0.9.9 atm: # 1.) needs libltdl >= 1.5.24 (yes, any older version will NOT work at runtime) # 2.) doesn't build w/ glibc TLS support (hence patched out) -- cgit 1.2.3-korg