Commit graph

2307 commits

Author SHA1 Message Date
Colin Walters
235eebdb16 Finish moving file-related functions from dbus-sysdeps-unix to dbus-file-unix 2010-02-19 12:48:44 -05:00
Colin Walters
f81e8702a6 Revert "_dbus_string_to_lower(): new function"
This reverts commit 39aa809024.
2010-02-18 10:09:20 -05:00
Ralf Habacker
39aa809024 _dbus_string_to_lower(): new function 2010-02-12 08:47:33 +01:00
Ralf Habacker
984b372fd2 Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus 2010-02-12 08:46:10 +01:00
Marcus Brinkmann
f31bb2a749 Enable dbus-launch for Windows target. 2010-02-11 22:38:55 +01:00
Ralf Habacker
0793857c92 added some docs for windows and updated the documentation index 2010-02-10 13:03:19 +01:00
Ralf Habacker
a931e61763 fixed xml doc generating for cmake build system - supported docbook generator is currently kde's meinproc4, xmlto may also work but need still some checks 2010-02-10 09:26:52 +01:00
Ralf Habacker
31d9f4d655 Merge branch 'master' of ssh://git.freedesktop.org/git/dbus/dbus 2010-02-09 19:44:12 +01:00
Ralf Habacker
523e01827e fixed bug on win32 not been able to use session bus with --config-file option
Internal setup of session bus type was bound to the presence of the --session
command line parameter which prevents to use the --config-file parameter for
session bus setup.
2010-02-09 08:37:50 +01:00
Romain Pokrzywka
27a46ea9cb variable name fix (DBUS_DAEMON_NAME instead of DAEMON_NAME) 2010-02-07 00:32:51 +01:00
Romain Pokrzywka
deb7e5a9aa apply remaining unapplied parts of eeedba5b2f5b008819619764943caddd52441adf in dbus4win 2010-02-07 00:32:50 +01:00
Romain Pokrzywka
3f05abb3ad not needed anymore. Builds fine without for both msvc and mingw 2010-02-07 00:32:49 +01:00
Romain Pokrzywka
e6c10e9304 add new symbols from 1.3 to the exports 2010-02-07 00:32:48 +01:00
Romain Pokrzywka
e750a52a4d move dbus-1.def.cmake to the cmake subdir, as it's cmake specific 2010-02-07 00:32:48 +01:00
Romain Pokrzywka
18d6f550d4 add the LIBRARY header in the .def file, but for mingw only, msvc doesn't support it anymore. It's still needed when creating a .lib from a mingw-built dll 2010-02-07 00:32:47 +01:00
Romain Pokrzywka
1cd84d8258 remove DBUS_DAEMON_EXECUTABLE_NAME, we already have DBUS_DAEMON_NAME, and use the specified name for the executable when building with cmake 2010-02-07 00:32:46 +01:00
Romain Pokrzywka
196b310dd1 remove the debug postfix for the executables, it only makes sense for the lib 2010-02-07 00:32:45 +01:00
Romain Pokrzywka
83c70d45a8 and another .def.in for the verbose mode handling 2010-02-07 00:32:44 +01:00
Romain Pokrzywka
b0e0cd03e8 commented bits cleanup 2010-02-07 00:32:44 +01:00
Romain Pokrzywka
3de7453714 disable cmake options that don't apply (for cmake-gui) 2010-02-07 00:32:43 +01:00
Romain Pokrzywka
7cda0ff030 fixed the TODO, the if block didn't make sense indeed. Also make it clearer which dirs in the summary are installation dirs 2010-02-07 00:32:42 +01:00
Romain Pokrzywka
5bf0e86495 fixed and simplified install prefix handling with cmake 2010-02-07 00:32:41 +01:00
Romain Pokrzywka
f554db982f dbus-spawn.h is internal, it shouldn't be installed 2010-02-07 00:32:40 +01:00
Romain Pokrzywka
bbd1c9fe82 now fix the build for the tests; turns out we need another set of exports, since some tests are compiled in the client lib and some are in the internal lib... 2010-02-07 00:32:39 +01:00
Romain Pokrzywka
ce69516585 refactor the cmake build to match with autotools: only export client symbols in dbus-1 and use and internal library for the rest. Currently this library is statically linked to the apps but it can be made dynamic if wanted 2010-02-07 00:32:39 +01:00
Romain Pokrzywka
cffb66be40 oops, this symbol belongs to the client exports 2010-02-07 00:32:38 +01:00
Romain Pokrzywka
5746ba8811 split the symbols into separate files matching the client/shared/util sections of the code, and generate the final .def file dynamically 2010-02-07 00:32:37 +01:00
Romain Pokrzywka
7487915ff4 make the def handling simpler with cmake, we don't need to specify the library name anyway 2010-02-07 00:32:36 +01:00
Ralf Habacker
8ba739fb1a win32 fix: _dbus_get_install_root(): there are more places to fix case insensitive pattern search 2010-02-07 00:32:13 +01:00
Ralf Habacker
9e918c8f74 win32 fix: _dbus_get_install_root(): to catch all cases perform case insensitive pattern search 2010-02-07 00:29:10 +01:00
Colin Walters
7bc27d1e84 Fix inotify shutdown
We were incorrectly passing NULL for a DBusList when the usage expected
is a pointer to a NULL DBusList pointer.  Also during dbus_shutdown
we need to actually close the inotify fd, and remove our watch.

Move the shutdown handler out of bus.c and into inotify where we
can do all of this cleanly.
(cherry picked from commit 90fe96b187)
2010-02-03 12:05:28 -05:00
Ralf Habacker
b43d342846 linux cmake build system related compile fix 2010-02-03 14:14:03 +01:00
Colin Walters
15109202a9 Fix compilation in --disable-selinux case
_dbus_change_to_daemon_user moved into selinux.c for the --with-selinux
(and audit) case because that's where all of the relevant libcap headers
were being used.  However in the --disable-selinux case this didn't
compile and wasn't very clean.

If we don't have libaudit, use the legacy direct setgid/setuid bits
we had before in dbus-sysdeps-util-unix.c.
2010-02-03 08:36:38 +01:00
Colin Walters
19d48c3344 Merge branch 'my-dbus-1.2'
Conflicts:
	configure.in
2010-02-02 11:00:09 -05:00
Colin Walters
a7169e694c Release 1.2.18 2010-02-02 10:31:28 -05:00
Tom Hughes
1c6596eb52 Use monotonic clock for _dbus_get_current_time() if it's available.
_dbus_get_current_time() is used for timeouts, but uses gettimeofday(), which
relies on the wall clock time, which can change. If the time is changed forwards
or backwards, the timeouts are no longer valid, so the monotonic clock must be used.

https://bugs.freedesktop.org/show_bug.cgi?id=25624

Signed-off-by: Colin Walters <walters@verbum.org>
2010-02-02 10:29:03 -05:00
Ralf Habacker
14f376717e win32 fix: provide separate def file for cmake until there is full splitlib support for cmake 2010-02-02 14:26:50 +01:00
Ralf Habacker
53bab8663e win32 fix for commit 8a9880ffd2 - Clean up inotify watch handling 2010-02-02 14:14:20 +01:00
Colin Walters
0607bdb676 Don't crash when reloading if we haven't loaded user database yet
The user database is populated on-demand, but the cache dropping
code assumed it had been initialized.  Simply check for NULL.

https://bugs.freedesktop.org/show_bug.cgi?id=26182
2010-02-01 17:40:17 -05:00
Colin Walters
6db588b854 Merge branch 'my-dbus-1.2' 2010-02-01 17:27:26 -05:00
Colin Walters
e59db9df47 Move system-activation.txt into non-conditional EXTRA_DIST
It doesn't depend on the XML doc generation.
2010-02-01 16:45:48 -05:00
Colin Walters
8a9880ffd2 Clean up inotify watch handling
Substantially based on a patch by Matthias Clasen <mclasen@redhat.com>
kqueue implementation by Joe Marcus Clarke <marcus@freebsd.org>

Previously, when we detected a configuration change (which included
the set of config directories to monitor for changes), we would
simply drop all watches, then readd them.

The problem with this is that it introduced a race condition where
we might not be watching one of the config directories for changes.

Rather than dropping and readding, change the OS-dependent monitoring
API to simply take a new set of directories to monitor.  Implicit
in this is that the OS-specific layer needs to keep track of the
previously monitored set.
2010-02-01 16:22:56 -05:00
Ralf Habacker
2016b83dec _dbus_change_to_daemon_user() is platform related and commit 0a3905d7f3 broke windows builds 2010-01-29 23:57:07 +01:00
Ralf Habacker
e77fff6dfa reverted 2aea64fbb6 because it breaks msvc2008 builds 2010-01-29 23:48:34 +01:00
Colin Walters
0705eb5c86 Update messagebus.in init script to start earlier
Patch from Fedora.
2010-01-28 17:31:36 -05:00
Colin Walters
2691b302aa [doc] diagram.[svg,png] to EXTRA_DIST
These files are part of the docs and should appear in tarballs.
2010-01-28 17:29:27 -05:00
Colin Walters
7a4cd46284 Merge branch 'my-dbus-1.2'
Conflicts:
	bus/Makefile.am
	dbus/dbus-sysdeps-util-unix.c
	dbus/dbus-transport.c
	test/test-service.c
2010-01-28 17:09:15 -05:00
Colin Walters
b93476ce07 Don't drop pending activations when reloading configuration
The reload handling for activation simply dropped all knowledge
of pending activations, which was clearly wrong.  Refactor things
so that reload only reloads directories, server address etc.

Based on a patch originally from Matthias Clasen <mclasen@redhat.com>
2010-01-28 17:01:24 -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
5b2cf0d031 Add Will Thompson and Simon McVittie to reviewers, add emails to all
The reviewer list was sorely lacking actual email addresses; fix this.
Also add Will and Simon.
2010-01-28 17:01:24 -05:00