* [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles
@ 2020-01-14 22:05 Paul B. Henson
2020-01-14 22:48 ` Mike Gilbert
2020-01-14 23:33 ` Andrew Udvare
0 siblings, 2 replies; 5+ messages in thread
From: Paul B. Henson @ 2020-01-14 22:05 UTC (permalink / raw
To: gentoo-user
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?
Thanks…
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles
2020-01-14 22:05 [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles Paul B. Henson
@ 2020-01-14 22:48 ` Mike Gilbert
2020-01-15 2:06 ` Paul B. Henson
2020-01-14 23:33 ` Andrew Udvare
1 sibling, 1 reply; 5+ messages in thread
From: Mike Gilbert @ 2020-01-14 22:48 UTC (permalink / raw
To: gentoo-user
On Tue, Jan 14, 2020 at 5:05 PM Paul B. Henson <henson@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles
2020-01-14 22:05 [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles Paul B. Henson
2020-01-14 22:48 ` Mike Gilbert
@ 2020-01-14 23:33 ` Andrew Udvare
2020-01-15 2:06 ` Paul B. Henson
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Udvare @ 2020-01-14 23:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1.1: Type: text/plain, Size: 1223 bytes --]
On 14/01/2020 17:05, 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?
>
> Thanks…
>
I attempted to do this migration on two machines but was only successful
once. Pretty sure this is because of not using 17.1 profile on the
failing machine.
The first machine is on a 17.1 profile, and migration was relatively
simple, and worked. I did it based on this post:
https://forums.gentoo.org/viewtopic-p-8373904.html?sid=5c30f451df89c01a6bbe0a8dadd77c36#8373904
On the second machine, I did not change to profile 17.1. After moving
the files around, no matter what I tried, Portage refused to check the
new DISTDIR. I haven't had time to switch this machine to 17.1 yet.
Andrew
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles
2020-01-14 22:48 ` Mike Gilbert
@ 2020-01-15 2:06 ` Paul B. Henson
0 siblings, 0 replies; 5+ messages in thread
From: Paul B. Henson @ 2020-01-15 2:06 UTC (permalink / raw
To: gentoo-user
On Tue, Jan 14, 2020 at 05:48:40PM -0500, Mike Gilbert wrote:
> The portage ebuild has some code that automatically patches
> /usr/share/portage/config/make.globals for existing installs. You can
> update the setting there.
Ah, I didn't look there in my search :).
Cool, thanks much for the info.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles
2020-01-14 23:33 ` Andrew Udvare
@ 2020-01-15 2:06 ` Paul B. Henson
0 siblings, 0 replies; 5+ messages in thread
From: Paul B. Henson @ 2020-01-15 2:06 UTC (permalink / raw
To: gentoo-user
On Tue, Jan 14, 2020 at 06:33:58PM -0500, Andrew Udvare wrote:
> The first machine is on a 17.1 profile, and migration was relatively
> simple, and worked. I did it based on this post:
>
> https://forums.gentoo.org/viewtopic-p-8373904.html?sid=5c30f451df89c01a6bbe0a8dadd77c36#8373904
I'm already on the 17.1 profile. Thanks for the link.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-01-15 2:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-14 22:05 [gentoo-user] /usr/portage/distfiles vs /var/cache/distfiles Paul B. Henson
2020-01-14 22:48 ` Mike Gilbert
2020-01-15 2:06 ` Paul B. Henson
2020-01-14 23:33 ` Andrew Udvare
2020-01-15 2:06 ` Paul B. Henson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox