This includes a _compat_upgrade.default_locations script that the ebuild can call in pkg_preinst in order to maintain backward-compatible defaults when appropriate. The new defaults are specified in the summary of the 20180729 council meeting:
Vote: Default locations for the Gentoo repository, distfiles, and binary packages will be, respectively: /var/db/repos/gentoo /var/cache/distfiles /var/cache/binpkgs Accepted with 6 yes votes and 1 no vote. See: https://projects.gentoo.org/council/meeting-logs/20180729-summary.txt Bug: https://bugs.gentoo.org/378603 Zac Medico (2): Change /usr/portage council approved locations (bug 378603) Update /usr/portage references (bug 378603) cnf/make.conf.example | 12 ++-- cnf/make.globals | 4 +- cnf/repos.conf | 2 +- lib/portage/__init__.py | 2 +- lib/portage/_compat_upgrade/__init__.py | 0 lib/portage/_compat_upgrade/default_locations.py | 82 ++++++++++++++++++++++++ lib/portage/cache/flat_hash.py | 2 +- lib/portage/tests/news/test_NewsItem.py | 2 +- lib/portage/tests/resolver/ResolverPlayground.py | 2 +- lib/portage/xml/metadata.py | 4 +- man/ebuild.5 | 4 +- man/emerge.1 | 6 +- man/make.conf.5 | 20 +++--- man/portage.5 | 26 ++++---- man/quickpkg.1 | 2 +- repoman/lib/repoman/__init__.py | 2 +- repoman/lib/repoman/checks/herds/herdbase.py | 2 +- 17 files changed, 128 insertions(+), 46 deletions(-) create mode 100644 lib/portage/_compat_upgrade/__init__.py create mode 100644 lib/portage/_compat_upgrade/default_locations.py -- 2.16.4