Bug#550826: (no subject)

2009-10-17 Thread Clint Adams
forwarded 550826 http://pulseaudio.org/ticket/679
quit

Maybe this?

diff -ur pulseaudio-0.9.19.orig/src/modules/module-cli.c 
pulseaudio-0.9.19/src/modules/module-cli.c
--- pulseaudio-0.9.19.orig/src/modules/module-cli.c 2009-10-03 
10:07:01.0 -0700
+++ pulseaudio-0.9.19/src/modules/module-cli.c  2009-10-17 07:28:47.467939290 
-0700
@@ -105,7 +105,12 @@
  * of log messages, particularly because if stdout and stderr are
  * dup'ed they share the same O_NDELAY, too. */
 
+#ifdef O_CLOEXEC
 if ((fd = open(/dev/tty, O_RDWR|O_CLOEXEC|O_NONBLOCK)) = 0) {
+#else
+if ((fd = open(/dev/tty, O_RDWR|O_NONBLOCK)) = 0) {
+   pa_make_fd_cloexec(fd);
+#endif
 io = pa_iochannel_new(m-core-mainloop, fd, fd);
 pa_log_debug(Managed to open /dev/tty.);
 } else {



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#550826: (no subject)

2009-10-14 Thread Christophe Mutricy
The following patch [1] get the build going. But it error later on when
compiling src/modules/modules-cli.c with:

modules/module-cli.c: In function ‘module_cli_LTX_pa__init’:
modules/module-cli.c:108: error: ‘O_CLOEXEC’ undeclared (first use in
this function)
modules/module-cli.c:108: error: (Each undeclared identifier is reported
only once
modules/module-cli.c:108: error: for each function it appears in.)

[1]

diff -u pulseaudio-0.9.19/debian/control
pulseaudio-0.9.19/debian/control
--- pulseaudio-0.9.19/debian/control
+++ pulseaudio-0.9.19/debian/control
@@ -9,7 +9,9 @@
 libcap-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
 libasound2-dev (= 1.0.19) [!kfreebsd-i386 !kfreebsd-amd64
!hurd-i386],
 libavahi-client-dev, libjack-dev, libwrap0-dev,
-liblircclient-dev, libgconf2-dev, libudev-dev (= 143),
 libasyncns-dev,
+liblircclient-dev, libgconf2-dev,
+libudev-dev (= 143) [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
+libasyncns-dev,
 libatomic-ops-dev, libspeexdsp-dev (= 1.2~rc1),
 libbluetooth-dev (= 4.40) [!kfreebsd-i386 !kfreebsd-amd64
!hurd-i386],
 libgdbm-dev, intltool, libgtk2.0-dev, libxtst-dev,
@@ -22,7 +24,8 @@
 Package: pulseaudio
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, adduser,
-  lsb-base (= 3.2-13), consolekit, udev (= 143)
+  lsb-base (= 3.2-13), consolekit,
+  udev (= 143)[!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
 Conflicts: libltdl3 ( 1.5.24-1)
 Recommends: pulseaudio-module-x11,
 libasound2-plugins, gstreamer0.10-pulseaudio,


-- 
Xtophe



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org