Summary: | x11-apps/xinit: add LXDM support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabio Erculiani (RETIRED) <lxnay> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | lxde+disabled, mmharder |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://gitweb.sabayon.org/?p=overlay.git;a=commit;h=c8881ba64adc19e31f24f95a1bc3f239319b4d65 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 342661, 346833 | ||
Attachments: |
lxde-base/lxdm-0.2.0 ebuild
/etc/conf.d/lxdm to start lxdm /etc/init.d/lxdm to start lxdm /etc/lxdm/xinitrc configuration file Patch to disable pam_console The init.d patch The startDM.sh patch |
Description
Fabio Erculiani (RETIRED)
![]() Please also see: http://gitweb.sabayon.org/?p=overlay.git;a=commit;h=03eb0310651527ae94971a2413dcc58ca0111dc4 We have working lxdm ebuilds in the sabayon overlay too. Maybe lxdm team is interested. Please also see: http://gitweb.sabayon.org/?p=overlay.git;a=commit;h=c8881ba64adc19e31f24f95a1bc3f239319b4d65 for startDM.sh changes required in order to make lxdm-binary working with /etc/init.d/xdm Created attachment 243455 [details]
lxde-base/lxdm-0.2.0 ebuild
Created attachment 243457 [details]
/etc/conf.d/lxdm to start lxdm
Created attachment 243459 [details]
/etc/init.d/lxdm to start lxdm
Created attachment 243461 [details]
/etc/lxdm/xinitrc configuration file
Utilize global and local xinitrc and xprofile files (which had been ignored).
Created attachment 243463 [details, diff]
Patch to disable pam_console
Patch to disable pam_console in /etc/pam.d/lxdm. Portage will complain profusely when sys-libs/pam is built if the file exists as included in the upstream.
I am attaching an ebuild for lxde-base/lxdm-0.2.0. This ebuild is very similar to the ebuild currently in the sabayon overlay; however, I have stripped out the Sabayon customizations for artwork, etc. This ebuild was based on an original lxde-base/lxdm-9999 ebuild from the lxde overlay. I have customized this ebuild to include an /etc/init.d/lxdm and /etc/conf.d/lxdm file to allow starting lxdm using the rc scripts. Lxdm currently has some incompatibilities with the /etc/init.d/xdm script and the /etc/X11/StartDM.sh script. I will be working to iron out these incompatibilities in different bug submittals. Also, this ebuild adds an /etc/lxdm/xinitrc file to utilize global and local xinitrc and xprofile files (which had been ignored). This file was largely based on the portion of kdm's Xsession script that provides this functionality for kdm. Lastly, the ebuild utilizes a patch to disable pam_console in /etc/pam.d/lxdm. Portage will complain profusely when sys-libs/pam is built if the file exists as included in the upstream. All those files and patches are beyond the scope of this bug. Unless the lxde herd wants to "take over" this bug report. As for the xdm/xinit changes Fabio posted in comment #2, those look fine to me but I'd rather let Tomáš (*ping*!!!) comment on them since he knows those bits better than me. Cheers My apologies. I got turned around as to which bug was filed. Now I start thinking that we seriously need to consider rewriting that script. I really dislike the idea of adding more and more variables to the old skel... but for now, I'll clean the referenced changes up and attach a patch in a while. Created attachment 249343 [details, diff]
The init.d patch
Created attachment 249345 [details, diff]
The startDM.sh patch
I dislike my work but I think that's the best we can do without rewriting it.
Many people died trying to fix the mess. So, make sure you get things working with LXDM before even thinking of dying ;) (In reply to comment #14) > Many people died trying to fix the mess. So, make sure you get things working > with LXDM before even thinking of dying ;) BTW someone should suggest upstream to let lxdm background on its own. I agree, even because it seems to be the de-facto default among other DMs. So, ladies and gentlemen, what's the status here? Can we just add the missing bits that introduce lxdm support in init.d/xdm and startDM.sh, and then, think about merging some good enough lxdm ebuild to tree? Please please pretty please let's kill this bug ;) Packages requiring minimal changes to get lxdm supported are: - x11-base/xorg-server (init.d/xdm) - x11-apps/xinit (startDM.sh) If nobody has objections, I'd go ahead and add the missing bits. I knocked myself out, and updated xinit and xorg-server accordingly. |