Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139606 - Fix hardcoded paths in gentoolkit
Summary: Fix hardcoded paths in gentoolkit
Status: RESOLVED DUPLICATE of bug 83080
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-07 14:39 UTC by Paul Varner (RETIRED)
Modified: 2008-02-26 15:48 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2006-07-07 14:39:04 UTC
[16:23] <exg> hi, got a min?
[16:26] <FuzzyRay|work> Sure, what's up?
[16:28] <exg> I work on prefix-portage and I tried to use gentoolkit on a prefixed installation; the only problem are the hardcoded sys.path.insert(0, "/usr/lib/portage/pym")/sys.path.insert(0, "/usr/lib/gentoolkit/pym"); first of all why is the former needed? portage adds an env file to add to PYTHONPATH its pym dir
[16:31] <FuzzyRay|work> I don't think portage has always added the env file, secondly I didn't write the code, but I'll be happy to try to fix it
[16:33] <exg> thanks; maybe for /usr/lib/gentoolkit/pym you can add an env file too?
Comment 1 Paul Varner (RETIRED) gentoo-dev 2006-07-31 20:41:36 UTC
I'm having problems getting this to work correctly 100% of the time.  In my testing, if I remove the hardcoded paths, I always get an import error when using sudo to access equery or similar. An unoffical ebuild and release tarball are available at http://dev.gentoo.org/~fuzzyray/overlay/app-portage/gentoolkit/ for anyone who wants to look at it and suggest changes.  Until I figure out how to make this work 100% of the time, I will not be committing the changes.
Comment 2 michael@smith-li.com 2008-02-21 17:09:11 UTC
Isn't this essentially a dupe of bug 83080?
Comment 3 michael@smith-li.com 2008-02-26 15:48:45 UTC

*** This bug has been marked as a duplicate of bug 83080 ***