Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 401239 - has_version and best_version argument for $ROOT
Summary: has_version and best_version argument for $ROOT
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard: in-eapi-5
Keywords:
Depends on:
Blocks: future-eapi
  Show dependency tree
 
Reported: 2012-01-28 22:37 UTC by Zac Medico
Modified: 2012-09-23 06:44 UTC (History)
0 users

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 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:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;
> h=25fb5fca6674215ea8aaa3d0ec3dd3df451eec07

Commit in master:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=faaeeba5763814d2a7d0aa700209093cec791cf4