Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345633 - =sys-apps/portage-2.2.01.17168 has issues with file collisions
Summary: =sys-apps/portage-2.2.01.17168 has issues with file collisions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 15:54 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2010-12-01 18:32 UTC (History)
0 users

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


Attachments
build.log - FEATURES=collision-protect (build.log,416.40 KB, text/plain)
2010-11-15 15:57 UTC, Jeremy Olexa (darkside) (RETIRED)
Details
build.log - FEATURES=-collision-protect (build.log,422.06 KB, text/plain)
2010-11-15 16:00 UTC, Jeremy Olexa (darkside) (RETIRED)
Details
traceback.txt (tb.txt,6.25 KB, text/plain)
2010-11-15 16:02 UTC, Jeremy Olexa (darkside) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-15 15:54:39 UTC
With FEATURES=-collision-protect, it tries to remove detected collisions on / instead of $EPREFIX/ - results in traceback and no workaround (that I can think of besides manually rm'ing the files)

Logs attached.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-15 15:57:22 UTC
Created attachment 254393 [details]
build.log - FEATURES=collision-protect
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-15 16:00:05 UTC
Created attachment 254395 [details]
build.log - FEATURES=-collision-protect

>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- !found   obj /usr/share/xfce4/panel-plugins/thunar-tpa.desktop
--- !found   dir /usr/share/xfce4/panel-plugins
<...>
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-15 16:02:28 UTC
Created attachment 254397 [details]
traceback.txt

traceback on stderr
Comment 4 Fabian Groffen gentoo-dev 2010-11-30 17:52:55 UTC
ehm, this bug is still current?
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-30 17:57:18 UTC
scared to try
Comment 6 Fabian Groffen gentoo-dev 2010-11-30 18:44:22 UTC
[prefix 8faf55a] _unmerge_pkgfiles: improve out-of-prefix unmerging check

Bug #345633 is likely caused by a corrupted/invalid CONTENTS entry (from
previous buggy Portage releases).  It shows, however, that the unmerge
code wasn't protected well enough against "unmerging" files outside of
the Prefix.  All entries are evaluated now to see if they are within the
Prefix and a warning is issued when they are not, preventing any further
actions to be taken.
Comment 7 Fabian Groffen gentoo-dev 2010-11-30 19:44:35 UTC
--- !prefix path/to/file

warnings added in 2.2.01.17304

no longer attempts to unmerge files outside of the prefix.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-01 18:32:58 UTC
warnings work since the CONTENTS files got so messed up.

FEATURES=-collision-protect is the workaround.