There is allot going on in here, so here is a summary *Replace Xsession with modified version from lxdm Why: packaged Xsession (from kde) runs /etc/xinitrc.d twice.. https://github.com/sddm/sddm/issues/126 *Patch for /etc/xinit.d/xdm This one is a bit tricky but this file will need to get modified for sddm to boot properly.. otherwise xdm will just hang forever on boot when it calls sddm using the last * switch case. This is bad and will jam up openrc.. I suppose the other option is to modify sddm code to fall to background on start *uPower dependency should be optional (filed another ticket earlier for this) but patch changes appear in here also.. Basically sddm does not require this, and some weird users (like me) don't use it. Reproducible: Always
Created attachment 368374 [details] new sddm-9999.ebuild file
Created attachment 368376 [details] modified lxdm Xsession file
Created attachment 368378 [details, diff] /etc/xinit.d/xdm patch I do understand that this is probably a very bad thing to do.. but not sure how else this would get done.
Created attachment 368414 [details] sddm-9999.ebuild v2 Sorry the last file has some issues with replacing Xsession file
(In reply to Bombino from comment #4) > Created attachment 368414 [details] > sddm-9999.ebuild v2 > > Sorry the last file has some issues with replacing Xsession file Thanks for helping out to get sddm to work on Gentoo. I do see a few problems with your ebuild though: 1) src_prepare has an added comment, but no command to patch mentioned file 2) the attached Xsession file still references lxde and lxdm, which is not what we want here 3) we shouldn't use pkg_postinst for patching stuff (src_prepare is the right place for that) or installing files (src_install is the right place for that)
(In reply to Bombino from comment #3) > Created attachment 368378 [details, diff] [details, diff] > /etc/xinit.d/xdm patch > > I do understand that this is probably a very bad thing to do.. but not sure > how else this would get done. we should open a new bug to request this patch to be applied to x11-base/xorg-server
(In reply to Ben de Groot from comment #6) > (In reply to Bombino from comment #3) > > Created attachment 368378 [details, diff] [details, diff] [details, diff] > > /etc/xinit.d/xdm patch > > > > I do understand that this is probably a very bad thing to do.. but not sure > > how else this would get done. > > we should open a new bug to request this patch to be applied to > x11-base/xorg-server Done: https://bugs.gentoo.org/show_bug.cgi?id=498972
Created attachment 368492 [details, diff] sddm-999.ebuild v3
Created attachment 368494 [details] New Xsession file
(In reply to Ben de Groot from comment #5) > (In reply to Bombino from comment #4) > > Created attachment 368414 [details] > > sddm-9999.ebuild v2 > > > > Sorry the last file has some issues with replacing Xsession file > > Thanks for helping out to get sddm to work on Gentoo. > > I do see a few problems with your ebuild though: > 1) src_prepare has an added comment, but no command to patch mentioned file > 2) the attached Xsession file still references lxde and lxdm, which is not > what we want here > 3) we shouldn't use pkg_postinst for patching stuff (src_prepare is the > right place for that) or installing files (src_install is the right place > for that) Ok made those changes, this new Xsession file should get tested but aside from that, ready to go.
Created attachment 368496 [details] v3
cool, this works! now if we could also get shutdown/reboot to work with openrc...
(In reply to Andreas Sturmlechner from comment #12) > cool, this works! > > now if we could also get shutdown/reboot to work with openrc... On an unrelated note, my sddm reboot and shutdown work fine, but logout of any session will freeze everything up... perhaps separate bug reports are in order..
(In reply to Bombino from comment #13) > On an unrelated note, my sddm reboot and shutdown work fine Maybe we should compare various system configs... > but logout of > any session will freeze everything up... > perhaps separate bug reports are in order.. Confirmed for sddm-9999, but 0.1.0 including your Xsession file works just fine.
As per conversation at https://bugs.gentoo.org/show_bug.cgi?id=498404 I have revised the build for 9999 again.. here if you have systemd upower is no longer required..
Created attachment 370252 [details] sddm-9999.ebuild - Newest Ebuild Revision (v4)
Created attachment 376848 [details, diff] diff against latest sddm-9999 rev from qt overlay sddm[qt5] requires dev-qt/linguist-tools:5 to configure.
Please, test x11-misc/sddm from the tree. For me it works without any further modifications. 9999 version works for me also as it is now.