On a long-time running system (one year uptime, no changes) I did a new emerge --sync, for an update spree. No emerging possible after this, not of ebuilds or of further syncs. Repeatable output of 'emerge --sync' ...normal text, upto 100% cache update... and then: Check /var/db/pkg/sys-libs/libcap-1.10-r5/PROVIDE and USE. Traceback (most recent call last): File "/usr/bin/emerge", line 5254, in ? retval = emerge_main() File "/usr/bin/emerge", line 5211, in emerge_main action_sync(settings, trees, mtimedb, myopts, myaction) File "/usr/bin/emerge", line 3954, in action_sync mybestpv = portdb.xmatch("bestmatch-visible", "sys-apps/portage") File "/usr/lib/portage/pym/portage.py", line 5871, in xmatch mydep = dep_expand(origdep, mydb=self, settings=self.mysettings) File "/usr/lib/portage/pym/portage.py", line 4086, in dep_expand return prefix + cpv_expand( File "/usr/lib/portage/pym/portage.py", line 4250, in cpv_expand virts = settings.getvirtuals("/") File "/usr/lib/portage/pym/portage.py", line 1952, in getvirtuals self.treeVirtuals = map_dictlist_vals(getCPFromCPV,temp_vartree.get_all_provides()) File "/usr/lib/portage/pym/portage.py", line 5291, in get_all_provides for mykey in self.get_provide(node): File "/usr/lib/portage/pym/portage.py", line 5283, in get_provide print "Possibly Invalid: " + str(mylines) UnboundLocalError: local variable 'mylines' referenced before assignment
Environmental data: * linux 2.6.11-gentoo-r6 * portage-2.1.2_rc4-r4 * python 2.3.5
Created attachment 105119 [details, diff] fix the UnboundLocalError in vartree.getprovide() This patch will fix that UnboundLocalError exception. Something else went wrong while loading the virtuals though. You should get a warning message about that after the patch is applied. If the patch is saved as /tmp/getprovide.patch, then it can be applied as follows: cd /usr/lib/portage patch -p0 < /tmp/getprovide.patch
This has been released in 2.1.2_rc4-r5.