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.
Created attachment 254393 [details] build.log - FEATURES=collision-protect
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 <...>
Created attachment 254397 [details] traceback.txt traceback on stderr
ehm, this bug is still current?
scared to try
[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.
--- !prefix path/to/file warnings added in 2.2.01.17304 no longer attempts to unmerge files outside of the prefix.
warnings work since the CONTENTS files got so messed up. FEATURES=-collision-protect is the workaround.