From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 96A42138350 for ; Tue, 14 Jan 2020 22:49:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3C31E0929; Tue, 14 Jan 2020 22:48:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 233ACE08F3 for ; Tue, 14 Jan 2020 22:48:54 +0000 (UTC) Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 5A2B234E092 for ; Tue, 14 Jan 2020 22:48:53 +0000 (UTC) Received: by mail-io1-f51.google.com with SMTP id i7so7302129ioo.5 for ; Tue, 14 Jan 2020 14:48:53 -0800 (PST) X-Gm-Message-State: APjAAAVQwSnFd4QeBLN6QNCiG1ZbKiYXbPEELDmaIw5kxL8WeCXBwK9U CmBvspGqScLx/1pDm61ykGWuMJqBKLQmi+psEQE= X-Google-Smtp-Source: APXvYqwf3xl7uRjajId8K8SmzG9qUeaLzKgybF6B+uLj8Tudorc3LnKKl7DColUE7vSvN89EuOiXvi99kVy9/RtmOL4= X-Received: by 2002:a6b:c413:: with SMTP id y19mr18962887ioa.272.1579042131419; Tue, 14 Jan 2020 14:48:51 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Mike Gilbert Date: Tue, 14 Jan 2020 17:48:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 468eccff-a6f2-487b-a8d6-0a90e3ed2093 X-Archives-Hash: 408615e70dabfdc6c51213031ea688a4 On Tue, Jan 14, 2020 at 5:05 PM Paul B. Henson 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