On Tue, Jan 14, 2020 at 5:05 PM Paul B. Henson <hen...@acm.org> wrote:
>
> I recently installed a new server, and noticed that it is using
> /var/cache/distfiles rather than /usr/portage/distfiles. looking at the
> documentation, it seems that is the new default, and it says "new
> installations" will use it. I have older servers which are still using
> /usr/portage/distfiles. None of them have DISTDIR configured, so I am
> curious how portage is deciding between "old" and new"? If I wanted to
> migrate my older boxes to the new location without explicitly setting
> DISTDIR on them, what do I need to change?

The portage ebuild has some code that automatically patches
/usr/share/portage/config/make.globals for existing installs. You can
update the setting there.

Alternatively, you can perform the following steps to make the portage
ebuild update make.globals for you.

1. Set DISTDIR to anything other than /usr/portage/distfiles in
/etc/portage/make.conf
2. Re-install sys-apps/portage.
3. Remove the DISTDIR setting from /etc/portage/make.conf.

>From then on, portage will no longer patch the default DISTDIR setting
in make.globals.

Reference: 
https://gitweb.gentoo.org/proj/portage.git/tree/lib/portage/_compat_upgrade/default_locations.py?h=portage-2.3.84

Reply via email to