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

Bug 40667

Summary: Another "autoclean doesn't clean" fix (matchcache again)
Product: Portage Development Reporter: TGL <tom.gl>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: use_cache.patch

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