Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How long does "Verifying /usr/portage" take?
Date: Fri, 06 Jul 2018 23:28:08
Message-Id: 243ee32f-6d62-1a31-da69-a8ba529d21ea@gmail.com
In Reply to: Re: [gentoo-user] Re: How long does "Verifying /usr/portage" take? by Rich Freeman
1 Rich Freeman wrote:
2 > On Fri, Jul 6, 2018 at 4:43 PM Grant Edwards <grant.b.edwards@×××××.com> wrote:
3 >> On 2018-07-06, Grant Edwards <grant.b.edwards@×××××.com> wrote:
4 >>
5 >>> Now that the public key stuff is working again (knock on wood), I'm
6 >>> curious if it's usual for an emerge --sync to take 10-15 minutes
7 >>> longer than it used due to the "Verifying /usr/portage" step.
8 >>>
9 >>> On some systems (with fewer packages installed) it only takes a minute
10 >>> or less. But, on my "main" desktop system it takes 10-15 minutes every
11 >>> time.
12 >> I cleared out /usr/portage/distfiles, and the verify time dropped to
13 >> about 10 seconds. I should probably do that more often...
14 >>
15 > Assuming it is reproducible it is probably a bug.
16 >
17 > That said, I always move distfiles to someplace like /var/cache. I
18 > guess /usr/portage should probably be in there as well, though I would
19 > not mix my distfiles with my repository for a number of reasons. I
20 > think it is just inertia preserving the current situation as I can't
21 > imagine anybody involved in portage/council/etc really would design it
22 > this way today.
23 >
24 > You can tweak this in make.conf with DISTDIR=...
25 >
26
27
28 I set mine up this way and it seems to work OK.  It's sort of along the
29 lines of yours. 
30
31 root@fireball / # ls /var/cache/portage/ -al
32 total 160
33 drwxr-xr-x   5 root    root      4096 Dec 20  2012 .
34 drwxr-xr-x  13 root    root      4096 Jul  4 03:26 ..
35 drwxrwxr-x   3 portage portage 143360 Jul  2 20:42 distfiles
36 drwxr-xr-x 103 portage portage   4096 Jul  3 00:01 packages
37 drwxr-xr-x 171 portage portage   4096 Jul  2 18:22 tree
38 root@fireball / # 
39
40
41 If anyone wants to duplicate this, this is the relevant parts of make.conf:
42
43
44 DISTDIR="/var/cache/portage/distfiles/"
45 PKGDIR="/var/cache/portage/packages"
46 PORTDIR="/var/cache/portage/tree" 
47
48
49 After I did the move, I think someone came up with a better place but to
50 be blunt, I just didn't feel like moving it all again.  It's not like
51 portage really cares where it is anyway. 
52
53 Dale
54
55 :-)  :-)