Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94116 - collision-protect fails to protect files in cfgpro directories
Summary: collision-protect fails to protect files in cfgpro directories
Status: RESOLVED CANTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-26 14:01 UTC by Mike Nerone
Modified: 2006-02-16 17:24 UTC (History)
0 users

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 Mike Nerone 2005-05-26 14:01:51 UTC
The only example I have is ppp-2.4.2 (-r10 is fine) and radiusclient. Because ppp has a bundled copy of radiusclient, they collide on the library files and the /etc/radiusclient config directory. Only the library collisions are detected. This might be by design, since it will take manual intervention by the user to actually mess up those files, but IMHO it is definitely the wrong way to handle it.

For one thing, it may not be clear to the user that this collision situation has occured. Second, it's silly: over time, updates to the two colliding packages will continually try to ping-pong between possibly completely different files or sets of files, which is bound to eventually screw somebody up.

Note: in my particular example, the configuration files are compatible, but that is just a quirk of this example - the only example I have - and this could have much worse results if it occurred in two packages that actually aren't so closely related but happen to use the same configuration path. E.g. what if someone made a daemon called, oh I dunno, "Network Transmission Plotter" and unwisely used the configuration file /etc/ntp.conf? :P
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-05-26 16:10:01 UTC
It is by design and for a good reason. Portage doesn't remove files in   
config-protected directories when packages are unmerged. This essentially   
means that `emerge ppp; emerge -C ppp; emerge ppp` will trigger   
collision-protect without this hack. Hence, changing the behaviour of  
collision-protect can't happen until the config-protect is cleaned up.  
Comment 2 Mike Nerone 2005-05-26 16:34:09 UTC
Ahhh...now I understand. Still suboptimal, but I see your problem.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2006-02-16 17:24:13 UTC
Yeah, unless someone can think of a better way to deal with CONFIG_PROTECT I consider this CANTFIX.