[Bug 277330] x11/lightdm overwrites pam.d/lightdm on upgrade

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 26 Feb 2024 16:04:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277330

Guido Falsi <madpilot@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |madpilot@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Guido Falsi <madpilot@FreeBSD.org> ---
Hi,

This was an onging issue up to commit [1], which fixed it, but only for future
updates.

This is due to how pkg works. When previous versione were installed the
`/usr/local/etc/pam.d/lightdm` file was registered in the plist as is. From now
on the file `/usr/local/etc/pam.d/lightdm.sample` is added to the plist and
removed automatically, while `/usr/local/etc/pam.d/lightdm` will be removed or
overwritten only if it has not been customized, thanks to the @sample keyword
in the plist.

Since I added those files as samples in version 1.32.0_2 future updated will
not overwrite the file anymore if customized.

If you want to test this you can try doing `pkg upgrade -f lightdm` which force
a pkg upgrade and with the latest version the pam file will not be overwritten
anymore.

Feel free to ask for clarifications, but if you are persuaded by this
explanation, please close this bug report.


[1]
https://cgit.freebsd.org/ports/commit/?id=23a47f28de20c42fb2c3a7286c815797013df6ea

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