Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40667 - Another "autoclean doesn't clean" fix (matchcache again)
Summary: Another "autoclean doesn't clean" fix (matchcache again)
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-06 18:49 UTC by TGL
Modified: 2004-02-10 23:37 UTC (History)
0 users

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


Attachments
use_cache.patch (use_cache--2.0.50.patch,6.57 KB, patch)
2004-02-06 18:50 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2004-02-06 18:49:18 UTC
I've found another case where a wrong vardbapi matchcache makes emerge skip some package cleaning. It was again with a "less than one second for merging" package, gnome-base/gnome-2.4.2. The call path that leads to using/updating matchcache at the wrong time (ie during treewalk) was:

doebuild -> (config.setcpv ->) config.reset -> config.regenerate -> autouse -> dep_check -> dep_wordreduce -> vardbapi.match

I've added a use_cache parameter to each of this functions, again with default=1, and added a "use_cache=0" to doebuild(preinst/postinst) from treewalk. I've also applied the same change to doebuild(prerm/postrm) in unmerge, because it doesn't really makes sense to use matchcache from this function neither, since we know we are removing a vardb entry. 


Reproducible: Always
Steps to Reproduce:
Comment 1 TGL 2004-02-06 18:50:21 UTC
Created attachment 25117 [details, diff]
use_cache.patch

Patch is against 2.0.50.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-02-10 23:37:34 UTC
In -r1