emerging that package works, but the email I got (PORTAGE_ELOG_SYSTEM="save mail") is: [-- Message 1 -- 46 lines, 1918 bytes --]: To: tfoerste@localhost.localdomain From: portage@localhost.localdomain Subject: [portage] ebuild log for app-alternatives/sh-0 on t44.localdomain Date: Thu, 29 Dec 2022 00:29:19 +0100 Message-Id: <20221228232919.8D135890B6A8@t44.localdomain> ERROR: preinst This package will overwrite one or more files that may belong to other packages (see list below). You can use a command such as `portageq owners / <filename>` to identify the installed package that owns a file. If portageq reports that only one package owns a file then do NOT file a bug report. A bug report is only useful if it identifies at least two or more packages that are known to install the same file(s). If a collision occurs and you can not explain where the file came from then you should simply ignore the collision since there is not enough information to determine if a real problem exists. Please do NOT file a bug report at https://bugs.gentoo.org/ unless you report exactly which two packages install the same file(s). See https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how to solve the problem. And once again, please do NOT file a bug report unless you have completely understood the above message. Detected file collision(s): /bin/sh Searching all installed packages for file collisions... Press Ctrl-C to Stop WARN: preinst None of the installed packages claim the file(s). Package 'app-alternatives/sh-0' merged despite file collisions. If necessary, refer to your elog messages for the whole content of the above message.
When looking at this in a terminal, it's (somewhat) clear that the warning is related to the error, and it's all OK. But if using one of our logger outputs like email or log files, you get two separate logs which looks rather alarming.