Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888815 - eerror/ewarn on orphaned collisions leads to confusing emails/log files (e.g. when merging app-alternatives/sh-0)
Summary: eerror/ewarn on orphaned collisions leads to confusing emails/log files (e.g....
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-28 23:41 UTC by Toralf Förster
Modified: 2022-12-30 00:20 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-28 23:41:55 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 23:43:47 UTC
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.