Bug 272297

Summary: x11/sddm: update to 0.20.0
Product: Ports & Packages Reporter: Patrick McMunn <doctorwhoguy>
Component: Individual Port(s)Assignee: Gleb Popov <arrowd>
Status: Closed FIXED    
Severity: Affects Only Me CC: dsh, grahamperrin, kde
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/sddm/sddm/releases/tag/v0.20.0

Description Patrick McMunn 2023-07-01 00:14:17 UTC
SDDM 0.20.0 was released last week. The last release was November 3, 2020, so this release has a slew of improvements. I was able to compile it by slightly editing the current port. It does have additional dependencies on qt5-declarative-test and libXau. The 0.19 patches no longer apply. There were some runtime errors, so it will probably require some work to ensure it works properly on FreeBSD.
Comment 2 Graham Perrin freebsd_committer freebsd_triage 2023-07-13 06:36:00 UTC
Discussion in IRC includes <https://github.com/arrowd/freebsd-ports/tree/sddm>.
Comment 3 Denis Shaposhnikov 2023-07-16 17:11:50 UTC
Hi,

after todays upgrade to 0.20.0 I was unable to autologin to SDDM. /usr/local/etc/pam.d/sddm-autologin.default contains strange lines:

#%PAM-1.0
auth        required    pam_env.so
auth        required    pam_tally2.so file=/var/log/tallylog onerr=succeed
auth        required    pam_shells.so
auth        required    pam_nologin.so
auth        required    pam_permit.so
-auth       optional    pam_gnome_keyring.so
-auth       optional    pam_kwallet5.so
account     include     system-local-login
password    include     system-local-login
session     include     system-local-login
-session    optional    pam_gnome_keyring.so auto_start
-session    optional    pam_kwallet5.so auto_start

I don't have pam_env.so in my system. Anyway, I fixed the autologin by replacing content of sddm-autologin to:

#%PAM-1.0
#auth       required    pam_faillock.so preauth
auth        required    pam_permit.so
#auth       optional    pam_gnome_keyring.so
#auth       optional    pam_kwallet5.so
account     include     login
password    required    pam_deny.so
session     include     login
#session    optional    pam_gnome_keyring.so auto_start
#session    optional    pam_kwallet5.so auto_start

Hope it'll help somebody.
Comment 4 Gleb Popov freebsd_committer freebsd_triage 2023-07-16 17:16:29 UTC
Not sure how did it work before. I didn't touch the pam_env.so entry in the patch for services/sddm-autologin.pam
Comment 5 Gleb Popov freebsd_committer freebsd_triage 2023-07-16 17:18:43 UTC
Closed with https://cgit.FreeBSD.org/ports/commit/?id=718687d3ee3e9556cd440c0aa26a36c52937e620

Sorry for forgetting the "PR: ..." line.
Comment 6 Denis Shaposhnikov 2023-07-16 18:19:31 UTC
Well, before update to 0.20.0 sddm-autologin was:

#%PAM-1.0
auth        required    pam_permit.so
#auth       optional    pam_gnome_keyring.so
#auth       optional    pam_kwallet5.so
account     include     login
password    required    pam_deny.so
session     include     login
#session    optional    pam_gnome_keyring.so auto_start
#session    optional    pam_kwallet5.so auto_start
Comment 7 Graham Perrin 2023-07-22 01:17:13 UTC
(In reply to Denis Shaposhnikov from comment #3)

Thanks. This is now bug 272649.