Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2436 - warn about obsolete links pointing to `emerge clean` removed packages
Summary: warn about obsolete links pointing to `emerge clean` removed packages
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-04 09:09 UTC by Darke
Modified: 2011-10-30 22:21 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 Darke 2002-05-04 09:09:31 UTC
I've just noticed (got bitten with it an hour ago) how sometimes emerge either breaks when 
emerging new packages, or the package has an error in it, and doesn't update symlinks 
properly. (In my case libpng.) 
 
Whilst the new packages can be fixed, unless you do a complete reinstall/rebuild of your 
machine regularly, you're likely to have a few obsolete links pointing to files that have been 
'emerge clean'ed away, which are likely to bite you at inconvenient times. 
 
Perhaps it would be useful to have either an option on `emerge clean` or do it by default, 
that works similarly to the configuration protection feature, but instead warning at the end 
when a link has potentially broken. 
 
Perhaps a more 'prettied' version of this: 
	find / -xdev -follow 2>&1 >/dev/null |less  
Or more specifically (and will probably miss a few files) this: 
	foreach $package in @packages_cleaned 
		find / -xdev -iname '*$package*' -follow 2>&1 >/dev/null |less 
 
Just a few thoughts. And an incidental "Nice work!" *grin* This portage system is _very_ 
nifty.
Comment 1 Daniel Robbins (RETIRED) gentoo-dev 2002-09-03 17:11:20 UTC
Hrm. Portage 2.0.34 unmerges any dead symlinks it installed along with the
package. That's about all we can do :)