Packages need to migrate away from reliance on the PORTDIR and PORTDIR_OVERLAY variables, since they are deprecated in favor of repos.conf.
Can we document the best portageq commands for replacement? The best I can tell is: PORTDIR: portageq get_repo_path / $(portageq repositories_configuration / | grep main-repo | awk '{print $3}') PORTDIR_OVERLAY: portageq get_repo_path / $(portageq get_repos /) with the caveat that the main repo path is included as well
(In reply to Paul Varner from comment #1) > PORTDIR: > portageq get_repo_path / $(portageq repositories_configuration / | grep > main-repo | awk '{print $3}') It might be better if we don't encourage the notion of a "main-repo" because it could be ambiguous (maybe there are multiple repos with all the attributes of a "main-repo"). Can whatever code you were thinking would need this be adjusted to somehow handle this sort of ambiguity? > PORTDIR_OVERLAY: > portageq get_repo_path / $(portageq get_repos /) > with the caveat that the main repo path is included as well Inclusion of the main repo isn't really a caveat if you are handling the ambiguous case as discussed above.
main-repo attribute is deprecated...
Okay, given that we are moving to just a collection of repositories, I have updated euse in git to just search through all repositories for the information and have removed the concepts of PORTDIR and PORTDIR_OVERLAY. Thanks for the guidance.