Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 669908

Summary: 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 ...
Product: Gentoo Linux Reporter: Michael 'veremitz' Everitt <gentoo>
Component: Current packagesAssignee: Igor V. Kovalenko <igor.v.kovalenko>
Status: RESOLVED FIXED    
Severity: normal CC: igor.v.kovalenko, leio, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=667592
https://github.com/gentoo/gentoo/pull/25887
Whiteboard:
Package list:
Runtime testing required: ---

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
Comment 3 Simon 2020-09-21 23:49:02 UTC
I've a problem with the elogind version..
The autospawn seems not to work so the default startup script start-pulseaudio-x11 returns
"Connection failure: Connection refused
pa_context_connect() failed: Connection refused"
instead of autospawning the pulseaudio server.
Comment 4 Larry the Git Cow gentoo-dev 2022-06-15 21:56:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17dea0907ab8369c600955b38bd27c86c9c79cc8

commit 17dea0907ab8369c600955b38bd27c86c9c79cc8
Author:     Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
AuthorDate: 2022-06-13 22:14:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-15 21:56:33 +0000

    media-sound/pulseaudio-daemon: Make module-console-kit optional
    
    Upstream commit 823e46fba0742605f557b68cd591f61624b93966
    
    Now it is possible to explicitly disable module-console-kit, do that since
    consolekit is no longer available in the tree.
    
    Closes: https://bugs.gentoo.org/669908
    Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...lseaudio-16.0-optional-module-console-kit.patch | 76 ++++++++++++++++++++++
 .../pulseaudio-daemon-16.0-r2.ebuild               |  2 +
 2 files changed, 78 insertions(+)