#955865 lxsession: unnecessarily Build-Depends on deprecated dbus-glib

Package:
src:lxsession
Source:
lxsession
Submitter:
Simon McVittie
Date:
2026-05-10 17:09:01 UTC
Severity:
normal
Tags:
#955865#5
Date:
2020-04-05 13:46:15 UTC
From:
To:
dbus-glib is a deprecated D-Bus library with some significant design
flaws, and is essentially unmaintained. As announced in [0], I would
like to minimize its use, and eventually remove it from Debian.

This package Build-Depends on libdbus-glib-1-dev, but it looks as though
all its D-Bus bits are implemented using either GLib's GDBus (part of
libglib2.0-0) or the dbus-send(1) command-line tool. If this analysis
is correct, please remove the Build-Depends on libdbus-glib-1-dev.

You might also need a Build-Depends and/or Depends on dbus, for
dbus-send(1).

If this package has other uses of dbus-glib that I have missed, please
see [0] for how to proceed.

Thanks,
    smcv

[0] https://lists.debian.org/debian-devel/2020/03/msg00272.html

#955865#12
Date:
2020-05-25 12:07:30 UTC
From:
To:
#955865#19
Date:
2025-08-28 08:54:05 UTC
From:
To:
Control: tags -1 = patch upstream

It looks like that guess was correct. The attached patch
0001-d-control-d-patches-Stop-depending-on-dbus-glib.patch builds
successfully and does not change the contents of the binary package
(verified with diffoscope); I haven't tested it beyond that.

I haven't checked whether lxsession is missing a dependency on
dbus-send. It would probably be a good idea to add one, but that is
out-of-scope for this particular bug report.
dbus-glib. Please forward the attached patch
"build-Remove-a-leftover-reference-to-dbus-glib.patch" upstream.

     smcv

#955865#26
Date:
2026-04-24 10:36:29 UTC
From:
To:
Control: severity -1 important

I'm raising the bug reports for remaining uses of dbus-glib to important
severity. It's now been 11 years since dbus-glib was documented as
deprecated in its own NEWS file, and it hasn't got any better-quality or
more-maintained since then.

It might be useful to note that since the initial MBF in 2018, the
migration guide from dbus-glib to GDBus has moved to
<https://docs.gtk.org/gio/migrating-gdbus.html>.

     smcv