Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Local portage git mirror
Date: Mon, 04 Jun 2018 17:14:59
Message-Id: 2241596.6ee0Daf6aY@peak
1 Hello list,
2
3 I have a small LAN, on which one box has little to do so I've set it up as a
4 local git mirror. I use this box - the one I'm writing on now - as a compile
5 server for a coule of other boxes, including the new git server, in which the
6 clients export their portage tree over NFS v3 to this box.
7
8 On those client boxes I've had to "chown -R portage:portage /usr/portage" to
9 get the exporting via git to work; otherwise I get a read permission failure
10 on .git/FETCH_HEAD.
11
12 This is what I see on the compile host:
13 $ ls -l /usr/portage/.git
14 total 15M
15 -rw-r--r-- 1 root root 267 May 7 10:59 config
16 -rw-r--r-- 1 root root 73 May 7 10:49 description
17 -rw-r--r-- 1 root root 104 Jun 4 09:49 FETCH_HEAD
18 [...]
19
20 But on the client boxes I now have this:
21 $ ls -l /usr/portage/.git
22 total 15M
23 -rw-r--r-- 1 portage portage 277 May 7 11:33 config
24 -rw-r--r-- 1 portage portage 73 May 7 11:31 description
25 -rw-r--r-- 1 portage portage 104 Jun 4 10:24 FETCH_HEAD
26 [...]
27
28 I did try chowning to root:portage first, but I still got the permission
29 error.
30
31 Have I done something daft here?
32
33 --
34 Regards,
35 Peter.