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