Bug 1176212

Summary: sddm can't login in x plasma session (xdm files moved to /usr/etc/X11/xdm)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dmitry Markov <werwolf131313>
Component: X.OrgAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: Gfx Bugs <gfx-bugs>
Severity: Major    
Priority: P3 - Medium CC: Dieter, fabian, rainer.klier, werwolf131313
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1173049, 1173053    
Attachments: logs

Description Dmitry Markov 2020-09-06 17:36:47 UTC
after input password sddm blink and restart

sddm version sddm-0.18.1-88.5.x86_64

xorg log:
[    11.767] (EE) Failed to open authorization file "/run/sddm/{403b7696-a1ff-4dd9-b24a-cf84d015ad70}": No such file or directory
Comment 1 Fabian Vogt 2020-09-06 17:43:03 UTC
That error is normal and harmless. Please provide the full journal of that boot and ~/.local/share/sddm/xorg-session.log.
Comment 2 Dmitry Markov 2020-09-07 03:59:38 UTC
Created attachment 841421 [details]
logs

logs
Comment 3 Dmitry Markov 2020-09-07 14:25:27 UTC
downgrade xdm from 1.1.12-296.1 version to 1.1.12-9.1 version helped
Comment 4 Fabian Vogt 2020-09-07 17:24:39 UTC
Ok, so that's just another case of

https://lists.opensuse.org/opensuse-factory/2020-09/msg00075.html

Reassigning, needs further discussion.
Comment 5 Stefan Dirsch 2020-09-07 17:42:32 UTC
My proposal was

https://build.opensuse.org/request/show/832827
Comment 6 Rainer Klier 2020-09-07 21:57:40 UTC
hi,

as workaround i edited file /usr/lib/sddm/sddm.conf.d/00-general.conf, and changed the paths from /etc/X11/xdm/Xsession and /etc/X11/xdm/Xsetup to /usr/etc/X11/xdm/Xsession and /usr/etc/X11/xdm/Xsetup.
Comment 7 Stefan Dirsch 2020-09-08 09:09:53 UTC
https://lists.opensuse.org/opensuse-factory/2020-09/msg00079.html

[...]

/usr/etc is a location for distro provided config files. This config can be
overwritten by placing files in /etc, which take precedence.

Looking at xdm, /etc/X11/xdm mostly contains executable scripts, called by xdm
itself and some other programs outside. Moving those into /usr/etc makes only
sense if the scripts are configuration files and supposed to be edited by the
admin. Additionally, changes in /etc/ need to be respected to make the move
useful.

AFAICT, neither of that is the case, so /usr/etc is the wrong location for
those. What about %{_libexecdir}? Ideally, there are some compat scripts or
symlinks in /etc for the time being so that there can be a smooth migration.
This is necessary to avoid that packages in devel projects (which can't assume
any particular version of xdm) just break.

There are two candidates for /usr/etc migration in the xdm package:
/etc/X11/xdm/scripts/*
/etc/pam.d/xdm/*

Whatever reads and processes the scripts directory should read both
/usr/etc/X11/xdm/scripts/ and /etc/X11/xdm/scripts/, ignoring overwritten files
like https://en.opensuse.org/openSUSE:Packaging_UsrEtc#Variant_3.

For xinit it's a similar story.

[...]
Comment 8 Stefan Dirsch 2020-09-08 09:50:21 UTC
reverted xdm files move to /usr/etc for now
Comment 9 OBSbugzilla Bot 2020-09-08 10:20:21 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/832945 Factory / xdm
Comment 10 OBSbugzilla Bot 2020-09-08 12:30:08 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/832970 Factory / xinit
Comment 11 Dieter Nützel 2020-09-08 13:04:48 UTC
(In reply to Stefan Dirsch from comment #8)
> reverted xdm files move to /usr/etc for now

Thank's a bunch!
Our son is very happy, again. (wine games...) ;-)
Comment 12 OBSbugzilla Bot 2020-09-08 15:40:10 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/833031 Factory / xdm
Comment 13 OBSbugzilla Bot 2020-09-09 00:20:10 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/833131 Factory / xinit
Comment 14 Stefan Dirsch 2020-09-09 16:36:46 UTC
AFAICS these issues are fixed now in latest version xdm in X11:XOrg devel project, but the main bug (boo#1173049)  about this change will remain open. There are still open issues (PAM move not working with lightdm and logrotate mechanism not adjusted yet).
Comment 15 Stefan Dirsch 2020-09-09 16:37:28 UTC
Closing as fixed.
Comment 16 OBSbugzilla Bot 2020-09-09 17:00:45 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/833265 Factory / xdm
Comment 17 OBSbugzilla Bot 2020-09-10 03:40:12 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/833353 Factory / xdm
Comment 18 OBSbugzilla Bot 2020-09-29 10:40:12 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/838503 Factory / xdm
Comment 19 OBSbugzilla Bot 2020-10-03 17:40:17 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/839332 Factory / xdm
Comment 20 OBSbugzilla Bot 2020-10-05 15:50:17 UTC
This is an autogenerated message for OBS integration:
This bug (1176212) was mentioned in
https://build.opensuse.org/request/show/839607 Factory / xdm