[Bug 266532] x11/lightdm: Login sessions do not respect login.conf

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 Dec 2023 13:07:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266532

--- Comment #19 from Guido Falsi <madpilot@FreeBSD.org> ---
Created attachment 247213
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247213&action=edit
patch v1

Hi,

I am sending a cumulative patch to try to address this bug and also bug #273720
and bug #275885 integrating patches from these tree bugs too.

Please test this and report if it actually fixes the issues and does what it
says.

Thanks in advance.

Some notes about the patch:

- Imported patch suggested by darius@dons.net.au to use setusercontext (should
solve login.conf issues), upstreamable patch at [1]. Requires USES=autoreconf
- Add patch to implement new configuration value "smart-xsession-errors"
(disabled by default) to move .xsession-errors from home directory to ~/.cache
(or ploaces indicated by XDG variables if present) inspiured from: [2]
upstreamable patch at [3], inspired by bug #266532
- Move some LIB_DEPENDS that really are BUILD_DEPENDS
- Added USES=autoreconf to allow patches to work, adjust DOC dependencies.
During autoreconf gtkdoc and yelp are unconditionally required
- Due to autoreconf usage, the build system insisted on installing apparmor
files, which are not supported in FreeBSD patched Makefile.am to skip those.
- Unconditionally disable libaudit, I found no support in FreeBSD
- Add QT5 option to properly compile and install qt5 pars. Disabled by default
since it is unused at present by other ports
- Install pam files as samples, to try not to overwrite customized ones
- Use ETCDIR in post-install
- Pet portclippy/portfmt

[1]
https://github.com/canonical/lightdm/compare/main...madpilot78:lightdm:use_setusercontext

[2] https://github.com/canonical/lightdm/pull/287

[3]
https://github.com/canonical/lightdm/compare/main...madpilot78:lightdm:xsession_errors_location_configure

-- 
You are receiving this mail because:
You are the assignee for the bug.