Basically, esearch hasn't been updated in a while and it's using some legacy aspect to portage (version 2.2_rc1) that will apparently be going away in some future version The specific error from esync is /usr/lib/portage/pym/output.py:39: DeprecationWarning: DEPRECATION NOTICE This bug can be assigned upstream status per Arfrever's request at http://forums.gentoo.org/viewtopic.php?p=5145290#5145290.
Last release was in 2004. Maybe it is time to ditch this package and suggest eix which has a much more active UPSTREAM.
What do you think, guys, is it time for TreeCleaners to get involved? esearch was one of the first of its kind, but it's probably time to retire it. Alternatives including portage-utils' qsearch, eix, pkgcore's equery, and of course judicious use of tools like locate, find, and grep. :)
Created attachment 163731 [details, diff] Output Patch Fixes the problem.
I think this should fix the problem.
Created attachment 171157 [details, diff] esearch-0.7.1-no-deprecated-modules.patch The old patch misses a couple of other 'import'. The attached patch fixes esync and eupdatedb as well.
*** Bug 246387 has been marked as a duplicate of this bug. ***
*** Bug 252750 has been marked as a duplicate of this bug. ***
Fixed in esearch-0.7.1-r5
*** Bug 253177 has been marked as a duplicate of this bug. ***
esearch -v is still showing a deprecation notice.
Fixed in esearch-0.7.1-r6
Uh! But in esearch-0.7.1-r7 esync is broken again. # esync Traceback (most recent call last): File "/usr/sbin/esync", line 141, in <module> tree_old = gettree("old") File "/usr/sbin/esync", line 112, in gettree emsg("Importing " + tree + " portage tree") File "/usr/sbin/esync", line 103, in emsg if quiet: return NameError: global name 'quiet' is not defined