Created attachment 912575 [details] build log Hi, I've been getting this error while trying to build the latest version of tlp * Package 'sys-power/tlp-1.7.0-r1' has internal collisions between non- * identical files (located in separate directories in the installation * image (${D}) corresponding to merged directories in the target * filesystem (${ROOT})): * * /usr/lib/elogind/system-sleep/49-tlp-sleep * /lib/elogind/system-sleep/49-tlp-sleep * /usr/lib/elogind/system-sleep/49-tlp-sleep * Differences: type, mode * * Package 'sys-power/tlp-1.7.0-r1' NOT merged due to internal collisions * between non-identical files. If necessary, refer to your elog messages * for the whole content of the above message. I'm running on llvm/musl with non-splitusr. It looks like it's somehow creating different files in /lib and /usr/lib for 49-tlp-sleep.
Created attachment 912576 [details] emerge --info
Created attachment 912608 [details, diff] proposed fix I had a play round with the ebuild, and I think the issue comes from a dosym function that creates a symlink: /usr/lib/elogind/system-sleep/49-tlp-sleep -> /lib/elogind/system-sleep/49-tlp-sleep this leads to one of the files being a symlink and the other the actual script. Since this is only necessary under split-usr, I think having it run conditionally under the split-usr use flag would fix it. I'll attach a patch showing what I mean :) I also noticed that the package always installs files for both elogind and system regardless of which is present, might be a good idea to add those use flags too, but this is unrelated to this bug.
I'll look at the proposed patch and bugfix. Thanks! For the elogind/systemd configs; under Gentoo's small files policy https://projects.gentoo.org/qa/policy-guide/installed-files.html#pg0301 we don't use use flags to prevent the installation of minor files, such as the config files indicated.
A similar patch was PR'd, I'm merging that one to resolve this issue. Thanks fort he report.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac22bc3b256a7ccd530debb425a62ff04809e972 commit ac22bc3b256a7ccd530debb425a62ff04809e972 Author: Stilic <lateman-jpeg@outlook.fr> AuthorDate: 2025-03-10 20:02:37 +0000 Commit: Jay Faulkner <jayf@gentoo.org> CommitDate: 2025-03-12 19:21:18 +0000 sys-power/tlp: fix install with elogind Signed-off-by: Stilic <lateman-jpeg@outlook.fr> Closes: https://bugs.gentoo.org/945285 Closes: https://github.com/gentoo/gentoo/pull/41004 Signed-off-by: Jay Faulkner <jayf@gentoo.org> sys-power/tlp/tlp-1.7.0-r1.ebuild | 4 ---- 1 file changed, 4 deletions(-)