>=sys-apps/systemd-utils-255 contains code in pkg_preinst to migrate files from /lib/{systemd,udev} into /usr/lib/ (replacing the former by symlinks) on systems using a split-usr profile. Installing >=systemd-utils-255 causes subsequent upgrades of other packages installing files into /lib/systemd or /lib/udev to generate preserved symlink warnings: * One or more symlinks to directories have been preserved in order to * ensure that files installed via these symlinks remain accessible. This * indicates that the mentioned symlink(s) may be obsolete remnants of an * old install, and it may be appropriate to replace a given symlink with * the directory that it points to. * * /lib/systemd Notably, this includes every package using systemd_dounit from systemd.eclass which installs into /lib/systemd (when systemd is not installed). These messages are not actionable by users (unless you want a bug report for every package installing into /lib/{systemd,udev}), so they should probably be silenced. Here's a couple of examples of others encountering (what is likely) this same issue, one of which solved it by adding "/lib/systemd /lib/udev" to UNINSTALL_IGNORE in make.conf: https://forums.gentoo.org/viewtopic-t-1170378-start-0.html https://forums.gentoo.org/viewtopic-t-1169435-start-0.html
The messages will stop once the user has rebuilt all packages that install files under /lib/systemd or /lib/udev. Adding the paths to UNINSTALL_IGNORE is completely unnecessary and will eventually result in dangling symlinks that are not owned by any package.
(In reply to Torbjörn Lönnemark from comment #0) > Notably, this includes every package using systemd_dounit from > systemd.eclass which installs into /lib/systemd (when systemd is not > installed). I will update the eclass default to /usr/lib/systemd soon.
The issue may also be resolved by migrating to a merged-usr profile.
Hmm, I suppose I could add the paths to UNINSTALL_IGNORE in profiles until I drop the symlinks from systemd-utils.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f0cf971a940c24b9f5e7a3164ee2c3a995a6760 commit 2f0cf971a940c24b9f5e7a3164ee2c3a995a6760 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-12-01 20:10:29 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-12-01 20:11:49 +0000 profiles/features/split-usr: UNINSTALL_IGNORE="/lib/systemd /lib/udev" Closes: https://bugs.gentoo.org/945390 Signed-off-by: Mike Gilbert <floppym@gentoo.org> profiles/features/split-usr/make.defaults | 3 +++ 1 file changed, 3 insertions(+)
(In reply to Mike Gilbert from comment #2) > (In reply to Torbjörn Lönnemark from comment #0) > > Notably, this includes every package using systemd_dounit from > > systemd.eclass which installs into /lib/systemd (when systemd is not > > installed). > > I will update the eclass default to /usr/lib/systemd soon. Are you still planning to do this?