Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 140594 - soft collision-protect
Summary: soft collision-protect
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 184999 (view as bug list)
Depends on:
Blocks: 193766
  Show dependency tree
 
Reported: 2006-07-15 22:54 UTC by Nguyen Thai Ngoc Duy (RETIRED)
Modified: 2008-10-12 09:08 UTC (History)
5 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 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-07-15 22:54:27 UTC
I would request another version of collision-protect that notifies users about collisions without stopping emerging process. file type, path, size, md5 would be sufficient.
Another way is backing up collided files, notify users and continue emerging.
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-07-18 10:17:46 UTC
uhm, why? FEATURES=collision-protect was meant as a QA feature AFAIK, not really targetted for production use.

Just my 0.02 SFr.
Comment 2 Zac Medico gentoo-dev 2006-09-03 22:10:00 UTC
(In reply to comment #1)
> uhm, why? FEATURES=collision-protect was meant as a QA feature AFAIK, not
> really targetted for production use.

Personally, I don't enable collision-protect because I don't want my merges interrupted.  I'm still curious about whether or not collisions occur, however. I suppose we could call it something like "collision-notify", and use the elog system to report collisions.
Comment 3 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-09-04 03:08:32 UTC
(In reply to comment #1)
> uhm, why? FEATURES=collision-protect was meant as a QA feature AFAIK, not
> really targetted for production use.
Sorry for too late reply.
The reason is that I used collision-protect on a system with lots of manual hack. Most of changes are in /usr/share/locale/vi/LC_MESSAGES/*.mo because I'm also a translator. Most of changes can be discarded but I want to make sure what is discarded (and better keep a backup).
So it's not really a production system. It's kind of extending the usage of collision-protect. Zac's "collision-notify" is fine with me.
Comment 4 Zac Medico gentoo-dev 2006-09-04 09:10:15 UTC
(In reply to comment #3)
> The reason is that I used collision-protect on a system with lots of manual
> hack. Most of changes are in /usr/share/locale/vi/LC_MESSAGES/*.mo because I'm
> also a translator. Most of changes can be discarded but I want to make sure
> what is discarded (and better keep a backup).

How about if reuse the CONFIG_PROTECT name mangling scheme for file collisions?
Comment 5 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2006-09-04 14:09:58 UTC
> How about if reuse the CONFIG_PROTECT name mangling scheme for file collisions?
Didn't think about that. Yes, it makes sense (with another prefix than ._cfg to prevent confusion of course)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-01-15 21:32:43 UTC
*** Bug 162288 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-01-15 22:13:01 UTC
Uhm...FEATURES="collision-protect" is perfectly fine now that all the funky perl stuff doesn't install its manpages. 

The only "soft" collisions come from badly slotted packages - python-updater and gcc (Bug 136382 and the retarded fix_libtool_files.sh thing) being the major offenders; plus the nasty hardcoded CONFIG_PROTECT on kernel modules (Bug 117972). The last one can be safely worked around by sticking COLLISION_IGNORE="/lib/modules" into make.conf until there's a better solution.

Once those are fixed, I'd even suggest this feature should be enabled by default. Getting other packages binaries clobbered by something completely different plain sucks, can cause pretty cryptic bugs and should be always fixed.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-07-11 21:30:09 UTC
*** Bug 184999 has been marked as a duplicate of this bug. ***
Comment 9 Chris Kerr 2007-11-03 17:05:00 UTC
As another idea, perhaps there could be a FEATURES option ("collision-binpkg", perhaps) where, whenever a merge is blocked by collision-protect, the freshly compiled program is made into a binpkg so that it can be installed quickly if the collision can be manually verified as spurious.
Comment 10 Marius Mauch (RETIRED) gentoo-dev 2008-03-02 15:26:08 UTC
This has been implemented for some time now.