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
Diego Elio 'Flameeyes' Pettenò
ff252cb48d
Check for the library containing the backtrace() function.
...
On FreeBSD the backtrace() function as well as the execinfo.h headers are
provided by libexecinfo (an optional package). PulseAudio “automagically”
identifies execinfo.h and proceeds to use it, but then will fail to link
against the library.
Thanks to Alexis Ballier for reporting.
2009-07-04 13:12:32 +02: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
00c392d72c
bootstrap: Ship git-version-gen with the tarball.
...
bootstrap.sh is already shipped and when rebootstrapping, it will call git-version-gen
internally when processing configure.ac.
In order to know when someone has rebootstrapped, we modify the tarball version to mark it
as rebootstrapped. Not 100% sure this later stage is desired or if we should remove
the .tarball-version file instead.
2009-06-29 22:52:31 +01: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ò
cd375da1db
Use the new CC_CHECK_CFLAGS_APPEND macro instead of a manual for.
2009-06-29 17:40:19 +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
Diego Elio 'Flameeyes' Pettenò
e61795ce53
Update attributes.m4 file from xine-lib.
2009-06-29 17:39:47 +02:00
Diego Elio 'Flameeyes' Pettenò
e832383197
Make it more clear that PulseAudio needs libtool 2.2.
...
The error message was way too generic, as it was very possible that libltdl
_is_ in the system but is not found because too old. Disambiguate this by
explicitly stating that the version 2 of the library is not found.
2009-06-29 17:39:32 +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
390c275173
build-sys: properly drop '-' from major/minor/micro strings
2009-06-23 17:40:33 +02:00
Lennart Poettering
b4b1f0375c
build-sys: teacch git versioning script to not kill - in version strings
2009-06-23 17:13:29 +02:00
Lennart Poettering
5651c03920
build-sys: drop compat with old git versions so that tarballs for -test1 style evrsions are properly created
2009-06-23 16:27:38 +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
bcae7969db
build-sys: use pax tar format to allow longer file names
2009-06-23 01:36:29 +02:00