Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 532996

Summary: Symlink protection makes uninstall of kde packages terribly slow
Product: Portage Development Reporter: Wiktor Garbacz <wiktor.garbacz>
Component: CoreAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 835380    

Description Wiktor Garbacz 2014-12-19 01:02:35 UTC
Uninstalling a bigger group of kde packages takes a really long time due to many symlink protection checks.
Symlinks are of form
 /usr/share/doc/HTML/en/{app_name}/common -> /usr/share/doc/HTML/en/common
which seems to be safe to remove and were found so on my system.
There are 2 possible solutions:
 1. exclude the symlinks from protection
 2. check and remove them all at the end of emerge (each check took ~15s which is not tragic but I was depcleaning ~80 packages)
Comment 1 Zac Medico gentoo-dev 2014-12-20 16:32:36 UTC
I don't think there's any need to optimize this case, since it only occurs when you remove the kde packages, not when you upgrade.