Commit graph

274 commits

Author SHA1 Message Date
Colin Walters
65be3cd5d9 Release 1.2.20 2010-02-03 12:13:38 -05:00
Colin Walters
a7169e694c Release 1.2.18 2010-02-02 10:31:28 -05:00
Colin Walters
0a3905d7f3 Switch to libcap-ng, avoid linking libdbus against libcap[-ng]
(Commit message written by Colin Walters <walters@verbum.org>)

A current Fedora goal is to convert projects to libcap-ng which
more easily allows dropping Linux capabilities.  For software
which also links to libdbus, it's problematic to link against
libcap as well.

Though really, libdbus should have never linked against libcap
in the first place, which is another thing this patch changes
by moving the libcap-using bits out of dbus/ and into bus/.

https://bugzilla.redhat.com/show_bug.cgi?id=518541
2010-01-28 17:01:24 -05:00
Colin Walters
b7e77c6b03 Ignore exit code zero from activated services
A variety of system components have migrated from legacy init into DBus
service activation.  Many of these system components "daemonize", which
involves forking.  The DBus activation system treated an exit as an
activation failure, assuming that the child process which grabbed the
DBus name didn't run first.

While we're in here, also differentiate in this code path between the
servicehelper (system) versus direct activation (session) paths.  In
the session activation path our error message mentioned a helper
process which was confusing, since none was involved.

Based on a patch and debugging research from Ray Strode <rstrode@redhat.com>
2010-01-28 17:01:24 -05:00
Brian Cameron
c6992fc56c Bug 22788 - Fix detection of getpwnam_r on Solaris
Define POSIX_PTHREAD_SEMANTICS earlier so more things use it.

Signed-off-by: Colin Walters <walters@verbum.org>
2009-07-15 17:35:38 -04:00
Colin Walters
557968d8d6 Release 1.2.16 2009-07-14 16:11:27 -04:00
Grzegorz Dąbrowski
ddc553326e Bug 19446 - HaikuOS support
Signed-off-by: Colin Walters <walters@verbum.org>
(cherry picked from commit 97c58ace43)
2009-07-14 15:42:19 -04:00
Colin Walters
2e286c8a27 Bug 18121 - Use a monotonic clock for pthread timeouts
Patch based on one from Keith Mok <ek9852@gmail.com>, some
followup work from Janne Karhunen <Janne.Karhunen@gmail.com>.

We don't want condition variable timeouts to be affected by the system clock.
Use the POSIX CLOCK_MONOTONIC if available.
(cherry picked from commit ae24bb35e2)
2009-07-14 15:40:24 -04:00
Matthias Clasen
943b9d3944 Bug 22516 - Ensure inotify fd is set close on exec
This prevents it leaking into spawned child processes.

Signed-off-by: Colin Walters <walters@verbum.org>
(cherry picked from commit f4e15893e5)
2009-07-14 15:40:17 -04:00
Colin Walters
a0db71ffb5 Bug 21545 - Move CFLAGS modification towards the end of configure
This prevents the flags from screwing up autoconf tests.
(cherry picked from commit 98bbe8c794)
2009-07-14 15:40:10 -04:00
Christian Persch (GNOME)
f412447c95 Bug 21657 - Fix configure checks for va_list in maintainer mode
Include the right headers.
(cherry picked from commit fe86222d10)
2009-07-14 15:39:56 -04:00
Marc Mutz
6eddb6e122 configure.in: fail abstract socket test gracefully when cross-compiling
* configure.in: only run AC_CACHE_CHECK if enable_abstract_sockets=auto
 * configure.in: warn that, when cross-compiling, we're unable to detect
                 abstract sockets availability automatically

Signed-off-by: Thiago Macieira <thiago@kde.org>
2009-05-13 15:50:52 +02:00
Marc Mutz
f719d45432 configure.in: not all gccs support -Wno-pointer-sign
Signed-off-by: Thiago Macieira <thiago@kde.org>
2009-05-13 15:50:51 +02:00
Colin Walters
f76d17437e Release 1.2.14 2009-05-06 12:51:19 -04:00
Marc Mutz
b2f943e9c0 configure.in: fix help string alignment
* AC_ARG_ENABLE(libaudit: use AS_HELP_STRING for aligned help messages

Signed-off-by: Thiago Macieira <thiago@kde.org>
(cherry picked from commit 660073925b)
2009-04-28 14:42:20 +02:00
Colin Walters
c30270f182 Bump for unstable cycle 2009-01-06 19:36:11 -05:00
Colin Walters
1757a749c3 Release 1.2.12. 2009-01-06 19:35:55 -05:00
Colin Walters
2895b793eb Bug 17060: Explicitly hard fail if expat is not available
* configure.in: Tweak libxml/expat detection and handling.
2009-01-06 18:27:27 -05:00
Lionel Landwerlin
1334ecb435 Bug 17969: Don't test for abstract sockets if explicitly disabled
Signed-off-by: Colin Walters <walters@verbum.org>
2009-01-06 18:26:39 -05:00
Diego E. 'Flameeyes' Pettenò
9928648f16 Fix cross-compiling with autotools.
The AC_CANONICAL_TARGET macro and the $target_os variables are used for the
target of compilers and other code-generation tools, and should not be used
during cross-compile of generic software. Replace them with
AC_CANONICAL_HOST and $host_os instead, as they should have been from the
start.

For a breakdown of what host, build and target machines are, please see
http://blog.flameeyes.eu/s/canonical-target .
2009-01-06 17:43:42 -05:00
Colin Walters
6413acafef Enable -Werror by default with --enable-maintainer-mode, and change warnings
Important compiler warnings were being lost in the noise from warnings
we know about but aren't problems, and moreover made using -Werror
difficult.  Now we expect *all* developers and testers to be using
-Werror.
2009-01-06 17:43:18 -05:00
Colin Walters
eb1ba381f6 Bump for unstable cycle 2008-12-19 15:17:49 -05:00
Colin Walters
427a7be51f Release 1.2.10 2008-12-19 15:17:24 -05:00
Colin Walters
8a80392667 Bump version for unstable cycle 2008-12-09 10:47:25 -05:00
Colin Walters
5301d31f45 Release 1.2.8 2008-12-09 10:46:41 -05:00
Colin Walters
5cd3e9ca3f Release 1.2.6 2008-12-05 11:53:14 -05:00
Colin Walters
42d278a267 Bump configure again for git 2008-10-06 18:10:55 -04:00
Colin Walters
15c32cf401 Release 1.2.4 2008-10-06 18:09:51 -04:00
Colin Walters
4fb1600945 Correctly dist 1.2.3 tarball with docs enabled 2008-08-06 15:58:41 -04:00
Colin Walters
78e3685c41 Bump configure.ac to 1.2.2 2008-08-06 13:21:54 -04:00
Colin Walters
ab1eb1fd5a Bug 15740: Solaris/ADT auditing support (simon zheng)
* bus/driver.c: Add GetAdtAuditSessionData method
	which returns audit data for a connection.
	* configure.in: Detect ADT auditing support
	* dbus/dbus-auth.c: Read ADT auditing creds.
	* dbus/dbus-connection.c: Implement
	dbus_connection_get_adt_audit_session_data.
	* dbus/dbus-connection.h: Export it.
	* dbus/dbus-credentials.c: Add support for
	gathering adt_audit_data and retrieving it
	via _dbus_credentials_get_adt_audit_data.
	* dbus/dbus-credentials.h: Add
	DBUS_CREDENTIAL_ADT_AUDIT_DATA_ID.
	* dbus/dbus-protocol.h: New error
	DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN.
	* dbus/dbus-sysdeps.c: Support for reading
	audit credentials via ADT API.
	* dbus/dbus-transport.c: New function
	_dbus_transport_get_adt_audit_session_data
	to retrieve credentials.
	* dbus/dbus-transport.h: Export it.
2008-06-05 17:24:34 -04:00
Colin Walters
5e359834f2 Add "PrivServer" test which exercises DBusServer and dbus_shutdown
* test/data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service.in:
	New service file for PrivServer.
	* configure.in: Generate it.
	* test/name-test/Makefile.am: Build test-privserver and
	test-privserver-client.
	* test/name-test/test-privserver.c: Use DBusServer to
	serve a private connection.
	* test/name-test/test-privserver-client.c: Connect
	via session bus and get address of private server,
	exercise dbus_shutdown().
	* test/name-test/run-test.sh: Run it.
2008-05-30 17:11:15 -04:00
John (J5) Palmieri
a2b72d577e up version for unstable development 2008-04-04 15:42:58 -04:00
John (J5) Palmieri
541779373b bump version after release 2008-04-04 15:26:52 -04:00
John (J5) Palmieri
00ac996ec0 change version to 1.2.1 to prep release
* we are moving to the 1.2.x version scheme because re-licensing seems to be
  blocked indefinitely
2008-04-04 15:15:22 -04:00
John (J5) Palmieri
d25151483f fix broken poll on Mac OSX - build patch by Benjamin Reed
* configure.in: check for OSX's deadlocking poll
* dbus/dbus-sysdeps-unix.c (_dbus_poll): if we have a broken poll
  don't use poll
2008-03-04 13:21:05 -05:00
John (J5) Palmieri
bd561f9a19 check if the linker supports a flag instead of just checking for GNU ld
* configure.in: move AM_PROG_LIBTOOL to the top
  (ld_supports_flag): new function for checking if the linker supports
  a given flag
2008-03-04 13:09:07 -05:00
Benjamin Reed
ee4a0dce33 Platform build fixes for Mac OS X
- the Darwin linker does not understand the -z option; wrap it in
  a check for $with_gnu_ld.
- environ is only available at runtime, so you need to make a
  reference to _NSGetEnviron instead for symbols to resolve properly.
2008-03-04 10:31:28 -05:00
John (J5) Palmieri
9f48c74cb6 configure.in: add $THREAD_LIBS to DBUS_LAUNCHER_LIBS so we link correctly 2008-03-04 10:12:57 -05:00
John (J5) Palmieri
c0f7ba8d23 Released 1.1.20 2008-02-26 13:37:48 -05:00
John (J5) Palmieri
b53e46c2e2 post-release bump 2008-01-17 15:21:50 -05:00
John (J5) Palmieri
9311dea540 post-release version bump 2008-01-15 19:54:46 -05:00
John (J5) Palmieri
f44e259110 never auto-select libxml
2008-01-15  John (J5) Palmieri  <johnp@redhat.com>

	* portions of patch submitted by Tim Mooney
	<enchanter at users dot sourceforge dot net>

	* configure.in: never auto-select libxml (FDO Bug #12479)
2008-01-15 15:16:23 -05:00
John (J5) Palmieri
831a0d71c4 add inotify support (FDO Bz#13268)
2008-01-14  John (J5) Palmieri  <johnp@redhat.com>

	* patch by Frederic Crozat <fcrozat at mandriva dot com> (FDO Bz#
	13268)

	* add inotify support

	* bus/Makefile.am: add inotify module to the build

	* bus/dir-watch-inotify.c: inotify module based off the dnotify and
	kqueue modules

	* configure.in: add checks and switch for inotify
	also add a printout at the end of configure if inotify and kqueue
	support is being built in (dnotify already had this)
2008-01-14 19:00:36 -05:00
John (J5) Palmieri
93e8a272d7 add warning to output when libxml is selected
2008-01-14  John (J5) Palmieri  <johnp@redhat.com>

	* configure.in: add warning to output when libxml is selected since
	we don't have a libxml maintainer and expat works perfectly fine
	for what we need an xml parser for
2008-01-14 15:53:13 -05:00
Simon McVittie
71a357de56 configure.in: *Actually* fix detection of i486 atomic ops.
My previous attempt at a fix would always enable them due to wrong quoting.
Patch from Colin Walters <walters@verbum.org>
2007-10-16 10:13:15 +01:00
Simon McVittie
e54d56b7b2 Merge branch 'inline' 2007-10-11 17:24:18 +01:00
Simon McVittie
902beb7c2c Enable Autoconf's AC_C_INLINE to avoid compilation failure with gcc -ansi.
If inline isn't recognised (e.g. on a strict C90 compiler, like gcc -ansi) this
defines it to __inline__, __inline or nothing, whichever works. This is safe,
because we never use inline except in combination with static.
2007-10-11 10:27:28 +01:00
Simon McVittie
176738f0f0 Fix detection of i486 atomic ops.
Previously, the attempts to determine support at compile-time on Darwin were
causing the i486 atomic ops to be used on *all* i386 or x86-64 GCC builds
(AH_VERBATIM can't be conditionalized like we were trying to).
2007-10-11 09:57:48 +01:00
John (J5) Palmieri
a295b2e66c fd.o bug #11872 improve linker test for --gc-sections
* patch by Tim Mooney <enchanter at users.sourceforge.net>
2007-10-03 17:08:44 -04:00