Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414821 - app-admin/webapp-config should not use portage.root to retrive $ROOT
Summary: app-admin/webapp-config should not use portage.root to retrive $ROOT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-06 04:12 UTC by Benda Xu
Modified: 2013-03-23 04:07 UTC (History)
4 users (show)

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


Attachments
Adds fix for retriving root through the portage.settings['ROOT'] function. (retrive_root_var.patch,411 bytes, patch)
2013-03-22 00:52 UTC, Devan Franchini (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2012-05-06 04:12:27 UTC
in wrapper.py(71)get_root(), the code uses portage.root to retrive $ROOT variable. portage.root == portage.settings['EROOT'] =! portage.settings['ROOT'] in Prefix

How to patch this in upstream?

http://webapp-config.svn.sourceforge.net/viewvc/webapp-config/trunk/webapp-config/WebappConfig/wrapper.py?revision=25&view=markup&sortby=log

Reproducible: Always
Comment 1 Fabian Groffen gentoo-dev 2012-05-13 15:23:49 UTC
interestingly enough:

>>> print portage.root
/Library/Gentoo/

that's printing EROOT, not ROOT :S
Comment 2 Devan Franchini (RETIRED) gentoo-dev 2013-03-22 00:52:28 UTC
Created attachment 342872 [details, diff]
Adds fix for retriving root through the portage.settings['ROOT'] function.
Comment 3 Anthony Basile gentoo-dev 2013-03-23 04:07:04 UTC
Fix in master/HEAD at git.overlays.gentoo.org/proj/webapp-config.git

@Benda.  The sourceforge code seems abandoned.  I'm not sure whether I've "forked" it or just continuing development of it for gentoo.  Devan is doing most of the leg work these days.