Commit graph

3231 commits

Author SHA1 Message Date
Simon McVittie
54bf2bd92c Remove unused _dbus_string_append_4_aligned, _dbus_string_append_8_aligned
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39759
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Lennart Poettering <lennart@poettering.net>
2012-02-10 14:37:41 +00:00
Simon McVittie
0fe2583e71 _dbus_getgid: remove, unused
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39759
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Lennart Poettering <lennart@poettering.net>
2012-02-10 14:37:05 +00:00
Simon McVittie
b1cff7e6eb NEWS 2012-02-10 13:49:00 +00:00
Lennart Poettering
6056a3d662 spec: document systemd transport
This adds a short section about the systemd transport to the
specification.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35232
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-02-10 13:44:20 +00:00
Simon McVittie
a4805aac4f NEWS for recently-merged branches 2012-02-10 10:28:59 +00:00
Simon McVittie
21c8094040 Merge branch 'system-search-paths-21620'
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=21620
Reviewed-by: Lennart Poettering <lennart@poettering.net>
2012-02-10 10:10:38 +00:00
Simon McVittie
349260f245 Merge branch 'doc-search-paths-35306'
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35306
Reviewed-by: Lennart Poettering <lennart@poettering.net>
2012-02-10 10:10:17 +00:00
Simon McVittie
818e62f15f Merge branch 'reversed-dns-37095'
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37095
Reviewed-by: Lennart Poettering <lennart@poettering.net>
2012-02-10 10:09:38 +00:00
Lennart Poettering
a8423067ce bus: introduce --nopidfile switch to disable writing of PID files
When used with init systems such as systemd (where PID files are
redundant) this allows us to disable PID files even if a path is
configured for them in the normal bus configuration files.

Make use of this new switch in the systemd unit file.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45520
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-02-10 10:07:24 +00:00
Ralf Habacker
dd4038156d Windows compile fix
BUG: https://bugs.freedesktop.org/show_bug.cgi?id=45832
2012-02-09 14:58:43 +01:00
Simon McVittie
0a6a1726af NEWS 2012-02-08 19:34:37 +00:00
Simon McVittie
b129afbb7e _dbus_get_environment: move from shared library to dbus-sysdeps-util
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34976
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2012-02-08 19:30:22 +00:00
Simon McVittie
2e23700b39 NEWS 2012-02-08 19:13:19 +00:00
Simon McVittie
a2262becfe dbus-marshal-recursive: make some internal functions static
Having a disabled type writer, comparing type readers by position, and
performing a single step of copying from a reader to a writer all seem pretty
obscure, and were only used within dbus-marshal-recursive.c (to realign
after insertion).

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38285
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2012-02-08 19:10:30 +00:00
Simon McVittie
de9b34d933 find_field_for_modification: document where the readers are left pointing
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38285
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2012-02-08 19:10:22 +00:00
Simon McVittie
009ab474e2 Reinstate the recursive marshalling test but skip the later parts by default
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38285
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2012-02-08 19:10:14 +00:00
Simon McVittie
79cc73627a dbus-test: only test for memleaks if we actually ran the test
This reduces output spam if you're only running one part.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38285
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
2012-02-08 19:09:52 +00:00
Simon McVittie
2a8be5a2f5 Merge branch 'dbus-1.4'
Conflicts:
	NEWS
2012-02-08 19:06:51 +00:00
Simon McVittie
a9e14209a2 NEWS 2012-02-08 19:06:30 +00:00
Jack Nagel
336483a6cc docs: correctly invoke man2html
man2html expects to find its input on stdin, so just passing the
filename will cause it to hang waiting for input.

[man2html 1.6g as shipped in Debian seems to be fine with files on the
command line, but apparently other versions aren't? -smcv]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=43875
2012-02-08 18:58:36 +00:00
Simon McVittie
fccb5a0fe1 Explicitly don't search XDG_DATA_DIRS for system services, and document it
In practice, it never works, because the activation helper doesn't
respect environment variables for security reasons.
If you want to vary the search path, alter system.conf instead, to
replace or augment <standard_system_servicedirs/> with your preferred
search path.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=21620
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-02-08 16:11:35 +00:00
Simon McVittie
6b01c6cdfd spec: document how to install session .service files
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35306
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-02-08 15:46:37 +00:00
Simon McVittie
ae3faad91d spec: document the search path for session services
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35306
2012-02-08 15:30:06 +00:00
Lennart Poettering
5a548fbf64 systemd: drop machine UUID generation for unit file
To optimize startup a bit, drop machine UUID generation from the unit
file. Since a while D-Bus was already capable of making use of the
/etc/machine-id file, which is guaranteed to exist on systemd systems
(since the first released versions already), hence there's no need to
ever generate a D-Bus specific machine ID.

In times where userspace takes < 800ms to boot up getting rid of this
process optimizes boot time further.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45520
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-02-07 16:40:36 +00:00
Simon McVittie
3d29eaaf89 NEWS 2012-02-07 16:09:21 +00:00
Simon McVittie
3872970597 Check for a new enough systemd that sd_uid_get_seats (., ., NULL) is valid
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39609
2012-02-07 16:07:04 +00:00
Lennart Poettering
ba71873c72 at_console: ask systemd whether a user is at the console
systemd manages seats and users. This patch optionally asks systemd
whether a user is at the console. It used libsystemd-login for that, a
low-level library that allows querying this kind of information without
expensive round trips.

In order to be nice to the Debian folks this patch falls back to
traditional modes of operation if systemd is not found to be around.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39609
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-02-07 16:06:33 +00:00
Simon McVittie
7eca1ce532 NEWS 2012-02-07 15:21:45 +00:00
Simon McVittie
88498b706a Merge branch 'socket-set-33337'
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33337
2012-02-07 15:04:25 +00:00
Simon McVittie
b816cb6e90 NEWS 2012-01-23 12:03:20 +00:00
Simon McVittie
5a9149a334 talk about stable branches a bit more 2012-01-23 12:01:56 +00:00
Simon McVittie
b080ba1eab Merge branch 'dbus-1.4' rejecting commit 4ebb275ab7
Conflicts:
	configure.ac
2012-01-23 11:14:45 +00:00
Simon McVittie
4ebb275ab7 Don't warn about deprecated declarations in this stable branch
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44413
2012-01-23 11:13:42 +00:00
Simon McVittie
11b31b864f Port to glib 2.31.x g_thread API
g_thread_init() is deprecated since glib 2.24, call g_type_init() instead.
Bump glib requirement accordingly.

g_thread_create is deprecated since 2.31, use g_thread_new() instead. When
building with a glib earlier than 2.31, provide a backwards compatibility shim.

[Added a comment about why we're using g_type_init() in a test that
doesn't otherwise use GObject -smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=44413
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-01-23 11:11:24 +00:00
Simon McVittie
6175893100 Merge branch 'dbus-1.4', rejecting commit 08dd53c14b 2012-01-23 10:33:35 +00:00
Simon McVittie
08dd53c14b Revert addition of files which were only meant to exist on master, too
This completes the reversion started in 5df8c3db12.
2012-01-23 10:27:32 +00:00
Simon McVittie
5480536c0b update NEWS 2012-01-23 10:20:54 +00:00
Simon McVittie
26b57efe43 dbus-daemon: fix forgotten counter increase while copying configured auth mechanisms
Previously, only one auth mechanism was used.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=45106
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-01-23 10:20:48 +00:00
Simon McVittie
09207d4d4a Revert "windows fix: use install root as base path for relative pathes in dbus service file"
This reverts commit 10fae23527 and
reopens <https://bugs.freedesktop.org/show_bug.cgi?id=44030>.
2012-01-04 20:04:59 +00:00
Simon McVittie
0a314ddbf8 Revert "keep cmake in sync with automake related to default bus addresses"
This reverts commit fdab4af0f4.
Further discussion required.

Related to https://bugs.freedesktop.org/show_bug.cgi?id=38201
2012-01-04 19:14:14 +00:00
Simon McVittie
f56a55af1a Revert "made session service dirs customizable: cmake part"
This reverts commit 89e453216c.
It makes the tests fail under autotools.
2012-01-04 18:20:15 +00:00
Simon McVittie
4f404b5603 Revert "made session service dirs customizable: autotools part"
This reverts commit 61760cf7de.
2012-01-04 18:19:58 +00:00
Simon McVittie
68ecce599a Merge branch 'dbus-1.4' 2012-01-04 18:15:39 +00:00
Simon McVittie
01f6419ecc Merge commit '5df8c3db12590edd68e968975a335da9d0415e5a' into new-master
Reject its changes so that git merge-tracking will not want to revert the
changes that were unsuitable for 1.4.
2012-01-04 18:14:37 +00:00
Simon McVittie
99bd4a517a NEWS so far 2012-01-04 17:52:14 +00:00
eXeC001er
f50ea3140e Remove some dead code related to fd.o #37258
This would now just attempt to close fd -1, which is useless.

[commit message added by smcv]

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37258
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2012-01-04 17:52:11 +00:00
Simon McVittie
5df8c3db12 Revert all changes since a36d4918a6
Someone seems to have merged part of master into 1.4. Again. Let's go
back to the "last known good" point (the branch-point of some 1.4
branches I had locally), then we can cherry-pick the changes that
should have gone in.
2012-01-04 17:44:23 +00:00
Ralf Habacker
b8ce351806 Merge branch 'dbus-1.4'
Conflicts:
	dbus/dbus-spawn-win.c
2011-12-25 14:34:59 +01:00
Ralf Habacker
5ec835dac9 1.4 branch need a fix to be compilable with msvc 2011-12-25 14:31:05 +01:00
Ralf Habacker
e15ebf32a9 keep cmake in sync with automake related to default bus addresses
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38201
2011-12-22 12:51:27 +01:00