Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321181 - media-sound/pulseaudio doesn't work without consolekit
Summary: media-sound/pulseaudio doesn't work without consolekit
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 234479 424898 478206 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-23 13:48 UTC by Nikos Chantziaras
Modified: 2015-09-16 09:20 UTC (History)
7 users (show)

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 Nikos Chantziaras 2010-05-23 13:48:57 UTC
PulseAudio, at least as built and installed in Portage, is unable to start if ConsoleKit is not installed ("-consolekit" in make.conf USE.)  Yet the PA ebuild does not pull CK as a dependency.
Comment 1 Rafał Mużyło 2010-05-23 17:00:24 UTC
Attach verbose log of such aborted start.
Are you sure that i.e. adding the user to 'audio' group
doesn't help ?
Comment 2 Nikos Chantziaras 2010-05-23 17:14:31 UTC
User "pulse" is in the following groups:

  audio plugdev pulse

pulseaudio has been emerged with following USE flags:

"X alsa asyncns caps dbus glib libsamplerate (multilib) tcpd udev -avahi -bluetooth -doc -gnome -hal -ipv6 -jack -lirc (-oss) -realtime (-system-wide) -test"

Re-emerging with "hal" enabled and/or "udev" disabled does not change anything.

This is the error message with which the pulseaudio daemon aborts when trying to start without consolekit:

E: module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetSessionsForUnixUser" with signature "u" on interface "org.freedesktop.ConsoleKit.Manager" doesn't exist
E: module.c: Failed to load  module "module-console-kit" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: Failed to initialize daemon.
Comment 3 Rafał Mużyło 2010-05-23 19:09:25 UTC
Not user 'pulse', your user.

But anyway, that's more a configuration problem
- if you comment out that module in default.pa
things should be alright.

main pulseaudio developer is AFAIK a RedHat employee
and a Gnome user, so pulseaudio works out-of-box
on full Gnome installs with gdm and all of its dependencies
(dbus, consolekit, etc.). If you try to leave some stuff out,
you need to adjust config files.
Comment 4 Nikos Chantziaras 2010-05-23 19:31:26 UTC
I didn't know anything about PA modules.  I've found out that there's a module called "module-console-kit" and that PA loads modules in /etc/pulse/default.pa.  The console-kit module is loaded by this file by default.

I think the PA ebuild might want to have a "consolekit" USE flag so that the module will not be used (or built, if that's possible) if consolekit is missing.  This makes sense because there are USE flags for hal, udev, dbus, etc, just not for consolekit.
Comment 5 Rafał Mużyło 2010-05-24 00:29:46 UTC
The catch is that, AFAICT, those that you've mentioned
are real runtime deps - that is i.e. they provide libs,
pulseaudio links against, while that consolekit module
depends only on dbus and simply calls ConsoleKit services
through it.
Comment 6 Nikos Chantziaras 2010-07-02 12:06:57 UTC
Is this intended behavior and should I close this?
Comment 7 Arun Raghavan (RETIRED) gentoo-dev 2010-11-03 19:42:13 UTC
I think a on-by-default consolekit USE flag is fine. We can make the behaviour similar to the avahi module where the corresponding config line is commented out if the USE flag is not set.

Nikos, for now you could just comment that line, and if there are no objections, we can do this for the next release (no point in making everyone recompile their PulseAudio for a trivial change).
Comment 8 Nikos Chantziaras 2010-11-03 23:44:56 UTC
I'm no longer interested in this bug. I have completely removed PulseAudio from my system for a long time now.
Comment 9 Arun Raghavan (RETIRED) gentoo-dev 2011-05-23 01:32:27 UTC
*** Bug 234479 has been marked as a duplicate of this bug. ***
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2012-07-05 16:35:25 UTC
*** Bug 424898 has been marked as a duplicate of this bug. ***
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-07-26 07:09:50 UTC
*** Bug 478206 has been marked as a duplicate of this bug. ***
Comment 12 Nikos Chantziaras 2013-12-23 20:57:41 UTC
Just wondering: why is this bug still open? :-P
Comment 13 Pacho Ramos gentoo-dev 2014-02-16 21:15:30 UTC
It starts ok for me even without consolekit with 4.99.4
Comment 14 Nikos Chantziaras 2014-02-17 10:40:31 UTC
I assume the TEST-REQUEST is targeted at me. As I said, this bug is not relevant to me anymore.
Comment 15 Khumba 2015-09-16 09:20:24 UTC
I wonder if I might request that this bug be reopened.  I just purged *kit from my system, and I immediately hit this issue with pulseaudio-6.0 (mostly-stable amd64 system).

$ pulseaudio
W: [pulseaudio] main.c: Compiled with DEPRECATED libsamplerate support!
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.
$

My user is in the audio group.  Can we please add a consolekit USE flag to control building module-console-kit.so?