avahi-daemon (indirectly) depends on libx11

Bug #326613 reported by Gioele Barabucci
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
avahi (Ubuntu)
Invalid
Low
Unassigned
consolekit (Ubuntu)
Invalid
Undecided
Unassigned
dbus (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

On Ubuntu Intrepid 8.10 avahi-daemon depends on dbus that depends on consolekit that directly depends on libx11. This means that there is not way to install the avahi-daemon package without getting libx11 and its dependences installed. I don't see why avahi-daemon should depend (directly or indirectly) on libx11.

Please note that avahi-daemon depends on dbus, not dbus-x11.

Related branches

Changed in avahi (Ubuntu):
importance: Undecided → Low
status: New → Triaged
description: updated
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Martin: is there any way that we can make the ConsoleKit dependency a recommends or suggests; likewise any way to stop ConsoleKit depending on X11 like this?

It does somewhat defeat the object of the dbus-x11 split

Changed in dbus (Ubuntu):
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

The consolekit dependency of d-bus is currently necessary to implement the "at_console" d-bus policy. Quite a few packages still use this, unfortunately, e. g. on my system

$ grep at_console /etc/dbus-1/system.d/*
/etc/dbus-1/system.d/bluetooth.conf: <policy at_console="true">
/etc/dbus-1/system.d/NetworkManager.conf: <policy at_console="true">
/etc/dbus-1/system.d/newprinternotification.conf: <policy at_console="true">
/etc/dbus-1/system.d/nm-applet.conf: <policy at_console="true">

However, I have no objection to dropping the depends to a recommends. If d-bus is installed without consolekit, then the at_console policies will break, i. e. you couldn't use NetworkManager frontends as normal user any more. But that might not be a concern for these environments.

Revision history for this message
Martin Pitt (pitti) wrote :

Not avahi's fault, closing avahi task.

Changed in avahi (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Martin Pitt (pitti) wrote :

We shouldn't change consolekit either, it directly links to libX11.so for ck-get-x11-display-device.

Changed in consolekit (Ubuntu):
status: New → Invalid
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : Re: [Bug 326613] Re: avahi-daemon (indirectly) depends on libx11

On Thu, 2009-07-16 at 14:00 +0000, Martin Pitt wrote:

> The consolekit dependency of d-bus is currently necessary to implement
> the "at_console" d-bus policy. Quite a few packages still use this,
> unfortunately, e. g. on my system
>
> $ grep at_console /etc/dbus-1/system.d/*
> /etc/dbus-1/system.d/bluetooth.conf: <policy at_console="true">
> /etc/dbus-1/system.d/NetworkManager.conf: <policy at_console="true">
> /etc/dbus-1/system.d/newprinternotification.conf: <policy at_console="true">
> /etc/dbus-1/system.d/nm-applet.conf: <policy at_console="true">
>
> However, I have no objection to dropping the depends to a recommends. If
> d-bus is installed without consolekit, then the at_console policies will
> break, i. e. you couldn't use NetworkManager frontends as normal user
> any more. But that might not be a concern for these environments.
>
That doesn't seem unreasonable, as long as the breakage magically goes
away if you install consolekit again. That's what Recommends are for,
after all ;-)

You can uninstall them, but you might lose functionality by doing so.

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Martin Pitt (pitti) wrote :

Scott James Remnant [2009-07-16 18:08 -0000]:
> That doesn't seem unreasonable, as long as the breakage magically goes
> away if you install consolekit again.

Yes, it does.

/usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck just
creates /var/run/console/<user> stamps which D-BUS checks for to grant
at_console. If they aren't there (either because you aren't at the
console, or CK isn't installed), at_console will be denied. As soon as
you install CK and log out/in, it'll come back.

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dbus - 1.2.16-0ubuntu2

---------------
dbus (1.2.16-0ubuntu2) karmic; urgency=low

  * Drop consolekit to a recommends, you almost certainly want it installed
    but it's ok to remove it if you don't want libx11 on your system.
    LP: #326613.

 -- Scott James Remnant <email address hidden> Fri, 17 Jul 2009 12:06:47 +0100

Changed in dbus (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.