Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 529200

Summary: sys-apps/portage: portageq root parameter no longer works
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS, PATCH, REGRESSION
Priority: Normal    
Version: 2.2   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 484436    

Description Zac Medico gentoo-dev 2014-11-14 01:54:14 UTC
It was broken by this change in commit c9f6aa9f0151adb3c86706eaef1914cdbdcf2b6d, since it causes portage.settings to be instantiated earlier:

diff --git a/bin/portageq b/bin/portageq
index c88ee88..1ae1fe1 100755
--- a/bin/portageq
+++ b/bin/portageq
@@ -1232,7 +1232,7 @@ def main(argv):
 			sys.stderr.write("Run portageq with --help for info\n")
 			sys.stderr.flush()
 			sys.exit(os.EX_USAGE)
-		eprefix = portage.const.EPREFIX
+		eprefix = portage.settings["EPREFIX"]
 		eroot = portage.util.normalize_path(argv[2])
 
 		if eprefix:
Comment 1 Zac Medico gentoo-dev 2014-11-14 07:45:34 UTC
I have a patch in the following branch:

	https://github.com/zmedico/portage/tree/bug_529200

I've posted it for review here:

	http://thread.gmane.org/gmane.linux.gentoo.portage.devel/4783
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2014-12-04 05:38:17 UTC
This is in the portage-2.2.15 release.