Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343033 - sys-apps/shadow-4.1.4.2-r6 breaks sys-auth/consolekit-0.4.1 when using startx
Summary: sys-apps/shadow-4.1.4.2-r6 breaks sys-auth/consolekit-0.4.1 when using startx
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on: 343097
Blocks:
  Show dependency tree
 
Reported: 2010-10-28 07:53 UTC by Matthew Turnbull
Modified: 2010-10-29 10:47 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 Matthew Turnbull 2010-10-28 07:53:04 UTC
Sorry I didn't catch this sooner. I haven't been in the habit of logging out/rebooting recently...

My setup:

sys-auth/pambase-20100310  USE="consolekit cracklib sha512 -debug -gnome-keyring -mktemp -passwdqc (-selinux) -ssh" 0 kB
sys-apps/shadow-4.1.4.2-r5  USE="cracklib nls pam -audit (-selinux) -skey" 0 kB
sys-auth/consolekit-0.4.1  USE="pam policykit -debug -doc" 0 kB
x11-apps/xinit-1.2.1-r2  USE="minimal pam -debug" 0 kB
xfce-base/xfce-utils-4.7.0  USE="dbus lock -debug" 0 kB
xfce-base/xfce4-session-4.7.0  USE="gnome -debug -gnome-keyring" XFCE_PLUGINS="logout" 0 kB

lrwxrwxrwx 1 sparky sparky 22 Sep  5 21:39 /home/sparky/.xinitrc -> /etc/xdg/xfce4/xinitrc


I automatically start X via startx when a non-root user logs in on tty1. I noticed that this broke when I couldn't mount external media via nautilus/GDU. I checked ck-list-sessions and my single session looked normal except for "active = FALSE". I tried re-emerging consolekit, pambase, shadow, and ensuring that all /etc files were up-to-date, but that did not help.

Long story short, I ended up downgrading back to shadow-4.1.4.2-r5, rebooted, and all was well.

I'm not really sure what information would be useful in debugging this. So just ask and I'll do my best to provide it.

Reproducible: Always

Steps to Reproduce:
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-10-28 08:14:28 UTC
-r6 *fixes* it

lrwxrwxrwx 1 sparky sparky 22 Sep  5 21:39 /home/sparky/.xinitrc ->
/etc/xdg/xfce4/xinitrc

looks invalid, try 'exec ck-launch-session startxfce4' in .xinitrc

*** This bug has been marked as a duplicate of bug 342291 ***
Comment 2 Matthew Turnbull 2010-10-28 11:20:46 UTC
Hm.. yes, fixes it by now behaving correctly, thus breaking everything that depended on the old broken behavior...

I don't think this is a dupe. This is about consolekit-0.4.1 (stable), bug 342291 is about consolekit-0.4.2-r3 (unstable).



The fact of the matter is that a stable, default installation is now broken (in that it expects the old behavior).

/etc/X11/Sessions/Gnome
/etc/X11/xinit/xinitrc

These rely on /etc/X11/xinit/xinitrc.d/90-consolekit which is now broken in consolekit-0.4.1

/etc/xdg/xfce4/xinitrc (used by startxfce4) is also broken because it basically does the same thing that 90-consolekit does. I would not be surprised if the xinitrc scripts from other DEs are also broken as well.



IMHO what should be done at this point is:

* bump consolekit-0.4.1 with the new 90-consolekit script and stabilize it... Or stabilize consolekit-0.4.2-r3 and the fixed pambase

* patch xfce-utils's xinitrc to use /etc/X11/xinit/xinitrc.d/* (rather than directly calling dbus and ck-launch-session) - or just fix it - and stabilize it

* check other DE's xinitrc scripts to make sure they aren't also broken.

or

* remask shadow-4.1.4.2-r6 until the rest of these packages are fixed and ready to be stabilized



Also, in the new 90-consolekit script, shouldn't
STARTUP="$CK_LAUNCH_SESSION $STARTUP"
actually be
command="$CK_LAUNCH_SESSION $command"
?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-10-28 16:04:22 UTC
(In reply to comment #2)
> Also, in the new 90-consolekit script, shouldn't
> STARTUP="$CK_LAUNCH_SESSION $STARTUP"
> actually be
> command="$CK_LAUNCH_SESSION $command"
> ?

I believe so, fixed in 0.4.2-r4.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-10-28 16:48:13 UTC
- Bug 343097 for stabilization.
- xfce-utils doesn't mess with ck-launch-session anymore: 4.6.2-r1 removed from tree, the patch was bogus.   no revision bump for 4.7.0 because it's p.masked, re-emerge that if you're using it.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-10-28 16:49:21 UTC
http://www.gentoo.org/doc/en/xfce-config.xml

3. Starting Xfce4

If you launch from console, use 'startx' with .xinitrc of 'exec ck-launch-session startxfce4' as the doc suggest
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-10-28 17:09:37 UTC
That should be it, CC yourself on bug 343097 to follow it's progress
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-10-28 17:25:41 UTC
Or upstream bug: http://bugzilla.xfce.org/show_bug.cgi?id=6690 (See Comment #11)
Comment 8 Matthew Turnbull 2010-10-28 19:59:08 UTC
Looks good to me. Thanks for the fast action and upstream bug.
Comment 9 Alex Buell 2010-10-29 10:25:08 UTC
 had to downgrade to shadow-4.1.4.2-r5 to revert to older broken behaviour as
upgrading to shadow-4.1.4.2-r5, pambase-20101024 and consolekit-0.4.2-r4 still
broke a lot of things in gnome. You're right, more work is needed. 
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-10-29 10:47:32 UTC
No, this bug is closed and fixed. Open new bug if you have futher issues.