summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-22Limit batch file creating to windowsRalf Habacker1-0/+4
cherry-picked 84b03cae585274bfe54e2a234dff72469cef581d
2011-09-22Fixed cmake buildsystem - option command only supports boolean valuesRalf Habacker1-3/+3
Conflicts: cmake/CMakeLists.txt cherry picked 4ee7b07b208f64f3b76f253c449e86e86849fca8 from master Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-09-22cmake fix: generate build timestampRalf Habacker2-5/+18
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41029 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-09-22Simplified cmake xml parser dependencies.Ralf Habacker1-9/+9
Find either expat or libxml2 xml parser libraries, depending on -DDBUS_USE_EXPAT=ON|OFF Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41027 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-09-21Micro versionSimon McVittie2-1/+6
2011-09-21Prepare version 1.4.16Simon McVittie3-9/+8
2011-09-21NEWSSimon McVittie1-0/+3
2011-09-21update_desktop_file_entry: initialize return value properly, and actually ↵Simon McVittie1-1/+2
return it Since 1.4.4 (commit 75cfd97f) this function always returned FALSE. As far as I can see this was actually harmless, because both of its callers ignore any error that is not NoMemory (and treat it the same as success). Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21update_desktop_file_entry: if the service name already existed, set errorSimon McVittie1-1/+4
If we're going to return FALSE for this (which has apparently always been the case), then we should set an error properly. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21update_desktop_file_entry: don't leak file_path on one particular OOMSimon McVittie1-2/+1
Revenge of #33126: most, but not all, temporary variables were freed on this code path. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39230 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21NEWSSimon McVittie1-0/+16
2011-09-21If --enable-tests=yes, require Python modules for complete test coverageSimon McVittie1-1/+8
The two relevant tests already exit 0 with a message if importing those modules fails. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Only ask pkg-config for the systemd unit directory if both are installedSimon McVittie1-1/+6
pkg-config is not a hard dependency, and this check avoids errors in a minimal build environment: ./configure: line 21777: --variable=systemdsystemunitdir: command not found Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Give better diagnostics if --enable-tests=yes is givenSimon McVittie1-3/+12
We want to indicate why it's a problem that GLib, dbus-glib are missing. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Check for Python; skip Python tests if not foundSimon McVittie4-4/+16
As with the optional test-dependencies on GLib and dbus-glib, we make this a hard dependency if --enable-tests[=yes], but not if --enable-tests=auto. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Cope with platforms whose vsnprintf violates both POSIX and C99Simon McVittie1-3/+49
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=11668 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Add a semi-automatic test for _dbus_system_logSimon McVittie2-0/+105
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39987 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Cope with Unixes that don't have LOG_PERROR, like Solaris 10Simon McVittie2-1/+24
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39987 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Make "make -C test clean" idempotentSimon McVittie1-1/+3
Previously, it'd fail when done twice, because you can't rmdir a nonexistent directory. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40004 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21On Solaris, define CMSG_ALIGN, CMSG_LEN, CMSG_SPACE if undefinedSimon McVittie1-0/+32
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40235 Tested-by: Dagobert Michelsen <dam@opencsw.org> Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-21Fix maintainer-upload-docs target to work out-of-treeSimon McVittie1-14/+25
The STATIC_DOCS, DTDS and all dist_ files except XMLTO_OUTPUT are in the source tree. The XMLTO_OUTPUT and the man2html output are in the build tree, and the BONUS_FILES already have $(srcdir) in their names. Also change the rules that generate the dbus-docs directory so that if they fail, they leave behind a temporary directory, rather than leaving behind a dbus-docs directory that causes make to not run those rules if re-run; and change the rules to scp files to the server, to put a trailing "/" on paths, ensuring that the tarball won't be uploaded as "www" if the www directory doesn't already exist. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=41047 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-09-20cmake fix: install version stringRalf Habacker1-0/+11
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40905
2011-08-26Don't build any of the reload-pipe code on non-UnixSimon McVittie1-2/+5
In commit ab7b3f9, Ralf notes that handle_reload_watch() is (in principle) cross-platform. However, there's no way to trigger it on Windows, because nothing ever writes to the pipe. Make the entire pipe-to-self trick Unix-specific instead. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40002
2011-08-24NEWSSimon McVittie1-0/+2
2011-08-24Add missing inclusion of inttypes.hSimon McVittie1-0/+4
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40313 Reviewed-by: Thiago Macieira <thiago@kde.org> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-08-15Fix compilation of (no-op) alignment assertions on non-gccSimon McVittie1-1/+4
do {} while (0) isn't valid at file scope, so the non-gcc code path was broken; in particular, this affected MSVC. Reviewed-by:Ralf Habacker <ralf.habacker@freenet.de>
2011-08-15NEWSSimon McVittie1-1/+4
2011-08-15Install diagrams in htmldirChris Mayo1-7/+7
diagram.png and diagram.svg are linked from dbus-tutorial.html but recent changes to doc/Makefile.am mean that if htmldir is set with configure they are installed such that the relative link from dbus-tutorial.html does not work. Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-08-13Fix compilation on MSVC, which doesn't understand "inline" with its C99 meaning.Ralf Habacker3-13/+3
This fix is limited to msvc compilers only. Reviewed-by:Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-08-12NEWSSimon McVittie1-0/+1
2011-08-12Fix compiler warnings when cross-compiling dbus-daemon test for mingw32Simon McVittie1-2/+3
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40003 Reviewed-by: Colin Walters <walters@verbum.org>
2011-08-11NEWS for 1.4.xSimon McVittie1-0/+13
2011-08-11dbus-marshal-basic: assert that the size and (on gcc) alignment of all types ↵Simon McVittie1-0/+33
is as expected The __alignof__() checks here will fail if compiling for an architecture where more-than-natural alignment is needed. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39636 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-11Add _DBUS_STATIC_ASSERT (based on GLib's G_STATIC_ASSERT) and use itSimon McVittie4-0/+12
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39636 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-11capng: Drop supplemental groups when switching to daemon userSteve Grubb1-1/+1
This patch ensures the daemon process doesn't inherit any supplemental groups for the root user from an administrator login via an init script. This is only an issue for pre-systemd systems. https://bugzilla.redhat.com/show_bug.cgi?id=726953
2011-08-11autogen.sh: Don't run configure if NOCONFIGURE is setColin Walters1-3/+7
See http://people.gnome.org/~walters/docs/build-api.txt
2011-08-06Clean up cygwin readmeRalf Habacker1-3/+0
2011-08-06Reduce duplicates from authors listRalf Habacker1-0/+10
Some duplicates are there by accident mostly because of the git learning curve (as in my case). Other duplicates could be outdated and may be candidates for additional mappings.
2011-08-05Clean author listRalf Habacker1-4/+0
2011-08-05Win32 compile fix.Ralf Habacker2-1/+12
msvc compilers define 'inline' only for c++ code, so wrap it with a platform independent DBUS_INLINE define in cmake generated config.h.
2011-08-05NEWSSimon McVittie1-0/+11
2011-08-05Add a regression test for fd.o #38005Simon McVittie2-0/+618
(The dbus-1.4 version.) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39836 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-05relay test: don't leak the server's addressSimon McVittie1-4/+8
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39836 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-05_dbus_server_new_for_domain_socket: don't try to unlink abstract socketsSimon McVittie1-5/+13
Our abstract socket names look like filenames (/tmp/dbus-MwozdykBNK or whatever), so if we incorrectly unlink the abstract socket name, in highly unlikely circumstances we could accidentally unlink a non-abstract socket belonging to another process! Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-05bus signal_handler: call _exit in the unlikely event that the pipe is full ↵Simon McVittie1-2/+8
or invalid On OSs with abstract sockets, this is close enough. On OSs without abstract sockets, this results in failing to clean up Unix sockets in /tmp if someone has sent us thousands of SIGHUP signals since we last entered the main loop - I think that's acceptable. The reload pipe should never get closed, but if it is for some reason, we want a SIGTERM after that to cause an exit too. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-05bus signal_handler: comment why it's OK if the reload pipe gets fullSimon McVittie1-0/+13
Backported to dbus-1.4, originally part of commit c7ef3ead558e147. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33336 Reviewed-by: Thiago Macieira <thiago@kde.org>
2011-08-05bus signal_handler: don't pretend to be portable away from UnixSimon McVittie1-0/+8
Signals are POSIX but not ISO C, so guard it with DBUS_UNIX. dbus-sysdeps-util-win doesn't actually implement _dbus_set_signal_handler anyway, so not compiling this code on non-Unix seems more honest. Backported to dbus-1.4, originally part of commit c7ef3ead558e147. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33336 Reviewed-by: Thiago Macieira <thiago@kde.org>
2011-08-05Conditionalize inclusion of unistd.hSimon McVittie1-0/+2
Windows doesn't have it, for instance. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-08-05Handle SIGTERM again, to avoid leaving /tmp/dbus-XXX sockets on SolarisBrian Cameron1-11/+73
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38656 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2011-08-05cmake: always enable GNU and recent-POSIX extensions, like autoconf doesSimon McVittie1-0/+3
If the C library is (e)glibc, this allows use of POSIX, BSD, SVID, GNU, etc., extensions to ISO C, regardless of using -ansi or not. Not doing this broke the cmake build on Linux since commit 18b08180, which added AC_USE_SYSTEM_EXTENSIONS to configure.ac (and removed _GNU_SOURCE from files that use it) without also updating the cmake build system. SO_PEERCRED is defined unconditionally, but struct ucred is considered to be a GNU extension, so can't be used under _GNU_SOURCE. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29228 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>