Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669908 - media-sound/pulseaudio USE=-systemd should RDEPEND on sys-auth/consolekit - E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by ...
Summary: media-sound/pulseaudio USE=-systemd should RDEPEND on sys-auth/consolekit - E...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-29 04:03 UTC by Michael 'veremitz' Everitt
Modified: 2019-06-30 10:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 'veremitz' Everitt 2018-10-29 04:03:32 UTC
Received the following error on a system installed with XFCE today:

[Mon-29-Oct  2:57am] michael@netscape:pts/2:339 ~ $ pulseaudio                   
E: [pulseaudio] module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.ConsoleKit was not provided by any .service files
E: [pulseaudio] module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.
[Mon-29-Oct  2:57am] michael@netscape:pts/2:340 ~ $

Discovered I hadn't got consolekit installed, and evidently not set in my USE flags anywhere.

Installing consolekit, starting service then allowed me to continue.

https://wiki.gentoo.org/wiki/PulseAudio#Prerequisites and https://wiki.gentoo.org/wiki/PulseAudio#Permissions correctly state that you need consolekit installed, and running to use PulseAudio without systemd.

I'm guessing that most desktop profiles or desktop environments are pulling consolekit in already, but it seems necessary to make this an explicit dependency!

I propose adding a DEPENDS= !sys-apps/systemd ( sys-auth/consolekit ) line in pertinent ebuilds.
Comment 1 Thomas Capricelli 2019-03-18 23:38:38 UTC
i dont have sys-auth/consolekit installed, and -systemd set systemwise... I haven't noticed such messages.

I do have such messages, which look harmless:

Mar 18 23:32:24 berlioz pulseaudio[10592]: [pulseaudio] module.c: Checking for existence of '/usr/lib64/pulse-12.2/modules/module-console-kit.so': success
Mar 18 23:32:24 berlioz pulseaudio[10592]: [pulseaudio] module.c: Loaded "module-console-kit" (index: #23; argument: "").
Mar 18 23:32:24 berlioz pulseaudio[10592]: [pulseaudio] module.c: Unloading "module-console-kit" (index: #23).
Mar 18 23:32:24 berlioz pulseaudio[10592]: [pulseaudio] module.c: Unloaded "module-console-kit" (index: #23).
Comment 2 Pacho Ramos gentoo-dev 2019-06-30 10:39:33 UTC
Please test again with latest ebuild as it relies on elogind for non-systemd setups