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

Bug 401239

Summary: has_version and best_version argument for $ROOT
Product: Gentoo Hosted Projects Reporter: Zac Medico <zmedico>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard: in-eapi-5
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Zac Medico gentoo-dev 2012-01-28 22:37:59 UTC
For stage1 builds (or cross compiling), a common pattern is for ebuilds to call `ROOT=/ has_version foo/bar`. It's messy to override the ROOT environment variable like that (maybe PMS doesn't even document this "feature"). So, it would be nice to add an explicit argument to trigger equivalent behavior. Such an argument does not necessarily need to specify path for $ROOT, since ROOT=/ is typically all that's needed in practice. So, for the sake of simplicity, a boolean flag called --host-root might serve the purpose well.
Comment 2 Ulrich Müller gentoo-dev 2012-09-23 06:44:06 UTC
(In reply to comment #1)
> PMS patch:
> h=25fb5fca6674215ea8aaa3d0ec3dd3df451eec07

Commit in master:;a=commit;h=faaeeba5763814d2a7d0aa700209093cec791cf4