Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105930 - collision-protect does not protect
Summary: collision-protect does not protect
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 218365 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-14 00:15 UTC by Georgi Georgiev
Modified: 2008-04-19 12:49 UTC (History)
1 user (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 Georgi Georgiev 2005-09-14 00:15:10 UTC
collision-protect does not catch collision for *already collided* packages. Best
to explain with examples:

# FEATURES=collision-protect emerge -bk ucspi-tcp ucspi-tcp-man

ucspi-tcp-man tries to overwrite /usr/share/man/man1/tcpserver.1.gz (one of
many) and is blocked. Expected.

# FEATURES=-collision-protect emerge -bk ucspi-tcp ucspi-tcp-man

ucspi-tcp-man does overwrite ucspi-tcp's man pages. Expected.

Now, try the first one again:

# FEATURES=collision-protect emerge -bk ucspi-tcp ucspi-tcp-man

This does not fail at all. Both packages remerge fine. UNEXPECTED.
Expected to get a collision error as both packages overwrite each other's files.

However, the following fails as expected:

# emerge -C ucspi-tcp-man && FEATURES=collision-protect emerge -bk ucspi-tcp
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-09-14 00:21:43 UTC
collision-protect works within the node that's being merged's installed versions.

Iow, now those files are owned by both pkgs; this is invalid from the ebuild
standpoint, but collision-protect *cannot* handle that, it can only block the
initial merges.

If the collision is already within the contents db's, collision-protect lets it
slide through due to the fact it's valid- the disabling collision-protect allows
the collision in, that's the problem. :)
Comment 2 Zac Medico gentoo-dev 2008-04-19 12:49:08 UTC
*** Bug 218365 has been marked as a duplicate of this bug. ***