Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1190 - Detect the same file belonging to different packages
Summary: Detect the same file belonging to different packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
: 2971 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-16 16:38 UTC by Geert Bevin
Modified: 2011-10-30 22:37 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 Geert Bevin 2002-03-16 16:38:52 UTC
Currently packages can install any file anywhere, there thus a real danger of
the same file being installed by different packages. Even more complicated is
that some files should be possible to install by several packages, like /bin/mail.
Comment 1 Geert Bevin 2002-03-16 16:39:10 UTC
One solution could be karltk's tinderbox that has to succeed for every ebuild
that's submitted. The tinderbox could keep track of which files are installed by
all the packages and prevent a new package from being validated if there are
conflicts.
Comment 2 Daniel Robbins (RETIRED) gentoo-dev 2002-03-23 12:49:55 UTC
I think the best solution is to have a unified firebird database for all 
filesystem objects installed.  With a unified database, it is easy to check 
for/track duplicate files and deal with them appropriately -- either with a 
warning, backing up the original, etc.  A unified db will also allow us to 
effectively "tweak" the equivalent of CONTENTS files, so if we back up a file, 
we can record its new filename so if the original package is unmerged, 
"foo.backup" gets unmerged as well.  It also allows us to track directory 
ownership better and thus remove the dreaded .keep files and pkg_postinst() 
dir creation tricks eventually. 
Comment 3 Grant Goodyear (RETIRED) gentoo-dev 2002-06-09 10:56:20 UTC
Some months ago I added a "chkcontents" script that verifies the integrity of
already-installed packages.  My guess is that until we switch to a db
there's no good to prevent file clobbering, but at least it can be detected.

I really need to upgrade this script so that, at least by default, it 
doesn't report files in /etc (or similar) that are expected to differ
from what was originally installed.
Comment 4 SpanKY gentoo-dev 2002-09-24 23:22:06 UTC
*** Bug 2971 has been marked as a duplicate of this bug. ***
Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:21:52 UTC
db fix
Comment 6 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:26:43 UTC
db fix