Bug 790147

Summary: Many packages require deprecated ConsoleKit
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ilya Chernykh <anixx>
Component: BasesystemAssignee: Forgotten User cAXlJ_FoSf <forgotten_cAXlJ_FoSf>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar
Version: 13.1 Milestone 0   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Ilya Chernykh 2012-11-18 01:03:28 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0

On the both my systems ConsoleKit consumes more memory than any other precess.

But its functionality is already doubled by systemd-logind and ConsoleKit is declared deprecated long ago.

Still the following packages require it:

   PolicyKit                      
   gnome-session-core             
   hal                            
   polkit                         
   xdm                            
   xorg-x11                       
   ConsoleKit                     
   ConsoleKit-32bit               
   ConsoleKit-devel               
   ConsoleKit-doc                 
   ConsoleKit-x11                 
   gdm                            
   kdm                            
   lightdm                        
   package-lists-openSUSE-GNOME-cd 
   package-lists-openSUSE-KDE-cd  
   package-lists-openSUSE-X11-cd  
   package-lists-openSUSE-images  

Please remove these dependencies or make systemd-logind to provide ConsoleKit. 

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Ilya Chernykh 2012-11-18 01:04:26 UTC
I suggest the later solution.
Comment 2 Dominique Leuenberger 2012-11-19 08:50:53 UTC
make systemd-login provide CK? I guess that's just meant as a joke:

Anyway: the 'move away' from CK is being worked on and will be solved for some of above packages (some are already fixed).

   PolicyKit                      > fixed
   gnome-session-core             > fixed
   hal                            > probably can't be fixed
   polkit                         > fixed
   xdm                            > fix prepare
   xorg-x11                       > to be checked
   ConsoleKit                     > it's itself... 
   ConsoleKit-32bit               > it is CK
   ConsoleKit-devel               > it is CK
   ConsoleKit-doc                 > it is CK
   ConsoleKit-x11                 > it is CK
   gdm                            > fixed
   kdm                            > fixed
   lightdm                        > to be done, not sure there is support for logind?
   package-lists-openSUSE-GNOME-cd > indirect.. 
   package-lists-openSUSE-KDE-cd   > indirect
   package-lists-openSUSE-X11-cd   > indirect
   package-lists-openSUSE-images   > indirect

Assigning to lightdm maintainer, as this is more or less the only one to be taken 'on radar'.
Comment 3 Ilya Chernykh 2012-11-19 08:58:44 UTC
I fixed hal yesterday.

By the way, can we get all these fixes submitted to openSUSE:12.2 because currently all systems with that release need both systemd and ConsoleKit in memory (and also both systemd-journald and rsyslog). This takes a huge amount of memory share.
Comment 4 Dominique Leuenberger 2012-11-19 09:14:10 UTC
(In reply to comment #3)
> I fixed hal yesterday.
> 
> By the way, can we get all these fixes submitted to openSUSE:12.2 because
> currently all systems with that release need both systemd and ConsoleKit in
> memory (and also both systemd-journald and rsyslog). This takes a huge amount
> of memory share.

no way this is going to 12.2! Teh entire gnome and KDE stacks were NOT enabled to use logind instead of CK. This is a pure 12.3 target.
Comment 5 Forgotten User cAXlJ_FoSf 2012-11-19 09:20:42 UTC
As for LightDM, upstream has this on the radar (see https://bugs.launchpad.net/lightdm/+bug/930488), however it isn't high priority for them since Debian/Ubuntu do not use systemd.

The above list is also incomplete, e.g. xfce4-session and xfce4-power-manager depend on ConsoleKit and full systemd support won't be happening before Xfce 4.12 which will not make it into openSUSE 12.3.

(In reply to comment #0)
> On the both my systems ConsoleKit consumes more memory than any other precess.

Then there must be something wrong on your system, it uses about 1.8 MB RSS here.

> But its functionality is already doubled by systemd-logind and ConsoleKit is
> declared deprecated long ago.

That's also not true, CK is still in use in many major distros such as Ubuntu, Debian, Gentoo, Solaris, or the BSDs so it won't be abandoned just because one of its maintainers left it.

I don't see any urgency here, CK can run in parallel to systemd without problems, so we can keep it around as long as it is needed just like hal, udisks etc.
Comment 6 Ilya Chernykh 2012-11-19 10:26:42 UTC
I have removed ConoleKit (breaking dependencies) from two of my systems, and I see nothig bad happening except I got lots of memory freed. For what exactly this package is needed? Why not to make the dependencies soft?
Comment 7 Dominique Leuenberger 2013-01-18 21:41:04 UTC

> osc whatdependson openSUSE:Factory ConsoleKit standard x86_64
ConsoleKit :
   lightdm-gtk-greeter-branding-openSUSE
   lxdm
   xfce4-branding-openSUSE

=> so, only lxdm left in Factory...
Comment 8 Dominique Leuenberger 2013-01-18 21:46:28 UTC
Ups.. missed those:

* xfce4-session
* xfce4-power-manager
* lightdm
Comment 9 Ludwig Nussel 2013-02-08 09:18:42 UTC
any progress here? xfce seems to use ConsoleKit only for shutdown. Should be trivial to change to calling logind.
Comment 10 Forgotten User cAXlJ_FoSf 2013-02-08 10:15:58 UTC
xfce4-session 4.12 which is due in March will support systemd.
Comment 11 Dominique Leuenberger 2017-05-29 16:01:19 UTC
ConsoleKit has been removed from Tumbleweed - so this bug must be completely fixed