Commit graph

3078 commits

Author SHA1 Message Date
Diego Elio 'Flameeyes' Pettenò
673112b192 Check for support of -z nodelete LD flag, don't use it unconditionally.
On non-GNU, non-Sun linkers, the -z option is often not understood; make
sure that the -z nodelete option is usable before making use of it.

Unbreaks build on Mac OS X.
2009-07-17 14:18:07 +02:00
Colin Guthrie
7e4509f9e5 Merge commit 'flameeyes/master' 2009-07-16 17:41:25 +01:00
Diego Elio 'Flameeyes' Pettenò
84200b423e Remove exploitable LD_BIND_NOW hack (CVE-2009-1894).
Instead of trying to re-execute pulseaudio itself with LD_BIND_NOW set,
just find the correct flag for the linker to request immediate bindings
(all ELF files support that option), and use that when linking the daemon.

Reduce the amount of compiled and executed code as well.
2009-07-16 15:57:41 +02:00
Colin Guthrie
61fefd67da introspect: Fix two memory issues in port handling code.
First one is a simple typo on an error condition that would have likely caused issues if it ever cropped up.
Second issue is that port information is never actually freed if everything works fine.
2009-07-12 21:07:58 +01:00
Lennart Poettering
6fdd5846b2 stream-restore: mark volume changes from instant apply as saved ones 2009-07-01 21:11:19 +02:00
Marc-André Lureau
95d3faaac8 bluetooth: don't connect on unconnected profile 2009-07-01 21:00:42 +02:00
Marc-André Lureau
e93c6c36fe bluetooth: warn on EAGAIN after POLLOUT 2009-07-01 21:00:33 +02:00
Lennart Poettering
7dabe051cd memtrap: properly lock access to memtrap changer 2009-07-01 20:22:38 +02:00
Lennart Poettering
28e4625a52 memblock: rearrange locking order 2009-07-01 20:20:55 +02:00
Lennart Poettering
efdd3d054b reserve: update from upstream git repo 2009-07-01 20:20:36 +02:00
Lennart Poettering
5d4769b7dd alsa: fix a few comments 2009-07-01 20:20:06 +02:00
Lennart Poettering
5bb1883e60 build-sys: add missing dependency to libcli 2009-07-01 20:19:42 +02:00
Lennart Poettering
b174a51120 libpulse: minor cleanups 2009-07-01 14:26:07 +02:00
Lennart Poettering
a10b7cda4e native: don't hit assert when user uploads zero-sized sample 2009-07-01 14:25:13 +02:00
Lennart Poettering
cd70d7f5b0 bluetooth: don't busy loop when device is not writable but we want to write 2009-07-01 02:21:17 +02:00
Lennart Poettering
c3958aaa07 bluetooth: handle absence of bluez D-Bus service properly 2009-07-01 02:20:23 +02:00
Lennart Poettering
1104141d78 reserve: fix build without D-Bus 2009-06-30 21:13:09 +02:00
Colin Guthrie
59376b039e introspect: Fix a bug in sink/source info protocol handling related to ports.
Previously the active_profile was extracted from the tagstruct regardless of
the protocol version which caused errors while speaking to older version
servers.
2009-06-29 22:52:31 +01:00
Colin Guthrie
a007d4740f combine: Do not set (and update) description if the user passed one in during load.
Note that this will not turn off auto-description setting if the user were to
update the proplist later, so such a change could be short lived.
2009-06-29 22:52:31 +01:00
Colin Guthrie
7ee1b471d9 udev: Don't install the udev rules if we're not compiling udev support 2009-06-29 22:52:30 +01:00
Diego Elio 'Flameeyes' Pettenò
1ca7603109 Add missing headers includes for FreeBSD.
This removes the implicit declarations of send() and pthread_sigmask().
2009-06-29 17:42:07 +02:00
Diego Elio 'Flameeyes' Pettenò
bce211e416 Rename the flock variable to f_lock.
flock() is a function on FreeBSD, and the variable shadowed its definition.
2009-06-29 17:41:57 +02:00
Diego Elio 'Flameeyes' Pettenò
6f44792806 Only declare saved_errno when it's going to be used (on Linux). 2009-06-29 17:41:45 +02:00
Diego Elio 'Flameeyes' Pettenò
9a2ac32dcd Rename the wait parameter to wait_op, to avoid shadowing wait(). 2009-06-29 17:41:37 +02:00
Diego Elio 'Flameeyes' Pettenò
2266a39bd3 Remove the call for pa_rtpoll_install() in the Solaris module.
I hope this is enough, since the removal of the other pa_rtpoll_install()
calls deemed Linux good enough, but said nothing about Solaris, but since
the function is gone there is little more to do.
2009-06-29 17:41:27 +02:00
Diego Elio 'Flameeyes' Pettenò
24564afc43 Fix the moved rtclock.h header in the Solaris module. 2009-06-29 17:41:18 +02:00
Diego Elio 'Flameeyes' Pettenò
de40e41446 Also alias MAP_ANONYMOUS to MAP_ANON in shm.c, for FreeBSD. 2009-06-29 17:41:06 +02:00
Diego Elio 'Flameeyes' Pettenò
2f7bce9375 Add a missing sys/stat.h include for FreeBSD to declare umask(). 2009-06-29 17:40:56 +02:00
Diego Elio 'Flameeyes' Pettenò
fc649adf9d Don't try to compile the rtkit sources when dbus is not enabled.
This change only affects the buildsystem: source code was correct already.
2009-06-29 17:40:50 +02:00
Diego Elio 'Flameeyes' Pettenò
ad4e025ef5 Implement mix-test for s24le and s24be sample formats. 2009-06-29 17:40:42 +02:00
Diego Elio 'Flameeyes' Pettenò
595f80fef7 Use static constants to keep the generated sample blocks. 2009-06-29 17:40:35 +02:00
Diego Elio 'Flameeyes' Pettenò
080f6308f2 Ignore IPv6 tests, if IPv6 was built in but the system doesn't have it.
This removes a test failure when an IPv6-enabled PulseAudio is tested on a
system where IPv6 is not enabled in kernel.
2009-06-29 17:40:28 +02:00
Diego Elio 'Flameeyes' Pettenò
e7c3a12a6e Properly link module-zeroconf-publish against libnative-protocol.
Without this change, undefined symbols will be found in the module and the
link will be rejected (thanks to the just-made change to reject outstanding
undefined symbols).

Also, in -test1, without this change it would have caused the module to not
load because of missing symbols.
2009-06-29 17:40:09 +02:00
Diego Elio 'Flameeyes' Pettenò
a4703ce7e8 Check for and use flags to reject undefined symbols in libraries.
Make sure that all the PulseAudio modules are built properly without
outstanding undefined symbols: if the undefined symbols are found, reject
link.
2009-06-29 17:40:01 +02:00
Lennart Poettering
2654eb7781 sndfile: fix build on BE archs 2009-06-23 18:54:17 +02:00
Lennart Poettering
0b52bf4cd1 build-sys: don't make pulseaudio binary suid on install anymore 2009-06-23 18:33:36 +02:00
Lennart Poettering
5b78752a04 intended-roles: drop quite a few unnecessary includes 2009-06-23 16:09:32 +02:00
Lennart Poettering
ef85558abd modules: pass properly initialized userdata pointers to various hooks 2009-06-23 04:25:45 +02:00
Lennart Poettering
b6d0b0e808 intended-roles: properly initialize split state 2009-06-23 04:23:26 +02:00
Lennart Poettering
d965000982 rtclock: make use of constants when converting between nsec and usec 2009-06-23 03:55:32 +02:00
Lennart Poettering
b627d68721 intended-roles: fix symdef header inclusion 2009-06-23 03:35:34 +02:00
Lennart Poettering
882cdfc123 rtclock: fix type of PA_TIMEVAL_RTCLOCK 2009-06-23 00:17:26 +02:00
Lennart Poettering
9217b47b19 timeval: don't create the wrong illusion that nsecs should be stored in pa_usec_t 2009-06-23 00:16:42 +02:00
Lennart Poettering
f3bbbd0fd3 rtclock: document that we fallback to wallclock time if monotonic time is not supported 2009-06-23 00:15:57 +02:00
Lennart Poettering
f753ef2a23 rtclock: enable rtclock for our own mainloop implementations 2009-06-22 23:49:40 +02:00
Lennart Poettering
3ee29004a9 rtclock: fix build after merge 2009-06-22 23:15:01 +02:00
Lennart Poettering
fc33f7ee97 Merge most of elmarco/rtclock2
Merge commit 'e4d914c945'
2009-06-22 23:09:46 +02:00
Lennart Poettering
de5219aafb daemon: enable module-intended-roles by default 2009-06-22 22:44:29 +02:00
Lennart Poettering
374efbded4 Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio 2009-06-22 22:36:31 +02:00
Lennart Poettering
aa2570c2ba rescue: make sure module-rescue-streams is used only as last fallback 2009-06-22 22:36:23 +02:00