Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231223 - app-portage/esearch uses deprecated portage modules
Summary: app-portage/esearch uses deprecated portage modules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 246387 252750 253177 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-08 20:51 UTC by Maurice Volaski
Modified: 2009-01-02 16:20 UTC (History)
3 users (show)

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


Attachments
Output Patch (esearch.patch,433 bytes, patch)
2008-08-24 23:59 UTC, Frank Bartunek
Details | Diff
esearch-0.7.1-no-deprecated-modules.patch (esearch-0.7.1-no-deprecated-modules.patch,1.46 KB, patch)
2008-11-09 09:34 UTC, Giacomo Perale
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Volaski 2008-07-08 20:51:33 UTC
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.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-08 23:09:55 UTC
Last release was in 2004. Maybe it is time to ditch this package and suggest eix which has a much more active UPSTREAM.
Comment 2 michael@smith-li.com 2008-07-16 12:43:48 UTC
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. :)
Comment 3 Frank Bartunek 2008-08-24 23:59:14 UTC
Created attachment 163731 [details, diff]
Output Patch

Fixes the problem.
Comment 4 Frank Bartunek 2008-08-24 23:59:39 UTC
I think this should fix the problem.
Comment 5 Giacomo Perale 2008-11-09 09:34:10 UTC
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.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-11 20:41:29 UTC
*** Bug 246387 has been marked as a duplicate of this bug. ***
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-12-27 22:57:00 UTC
*** Bug 252750 has been marked as a duplicate of this bug. ***
Comment 8 Paul Varner (RETIRED) gentoo-dev 2008-12-30 05:34:15 UTC
Fixed in esearch-0.7.1-r5
Comment 9 Paul Varner (RETIRED) gentoo-dev 2008-12-30 20:45:46 UTC
*** Bug 253177 has been marked as a duplicate of this bug. ***
Comment 10 Paul Varner (RETIRED) gentoo-dev 2008-12-31 02:58:51 UTC
esearch -v is still showing a deprecation notice.
Comment 11 Paul Varner (RETIRED) gentoo-dev 2008-12-31 05:16:40 UTC
Fixed in esearch-0.7.1-r6
Comment 12 Jeff Singleton 2009-01-02 16:20:44 UTC
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