public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Local portage git mirror
@ 2017-01-17 10:03 Peter Humphrey
  2017-01-17 12:51 ` Bill Kenworthy
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Humphrey @ 2017-01-17 10:03 UTC (permalink / raw
  To: gentoo-user

Hello list,

Does anyone have some pointers to setting up a local portage mirror for git 
to serve? I'm looking at http://www.funtoo.org/Portage_Git_Mirror but some 
details are obscure to me. I hope I'm not going to have to roll my sleeves 
up and learn the whole of git; I just want to cut down the time my boxes 
take to sync via git - some of them have their portage trees nfs-mounted in 
chroots on my workstation and take anything up to 20 minutes to sync.

One question comes up straight away: should the git-served repository be the 
host's own /usr/portage tree? And what cron task should I run to refresh the 
mirror?

Any help would be gratefully received.

(I can still read e-mails via web-mail even when KMail is playing up.)

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 4+ messages in thread
* [gentoo-user] Local portage git mirror
@ 2018-06-04 17:14 Peter Humphrey
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Humphrey @ 2018-06-04 17:14 UTC (permalink / raw
  To: gentoo-user

Hello list,

I have a small LAN, on which one box has little to do so I've set it up as a 
local git mirror. I use this box - the one I'm writing on now - as a compile 
server for a coule of other boxes, including the new git server, in which the 
clients export their portage tree over NFS v3 to this box.

On those client boxes I've had to "chown -R portage:portage /usr/portage" to 
get the exporting via git to work; otherwise I get a read permission failure 
on .git/FETCH_HEAD.

This is what I see on the compile host:
$ ls -l /usr/portage/.git
total 15M
-rw-r--r--   1 root root  267 May  7 10:59 config
-rw-r--r--   1 root root   73 May  7 10:49 description
-rw-r--r--   1 root root  104 Jun  4 09:49 FETCH_HEAD
[...]

But on the client boxes I now have this:
$ ls -l /usr/portage/.git
total 15M
-rw-r--r--   1 portage portage  277 May  7 11:33 config
-rw-r--r--   1 portage portage   73 May  7 11:31 description
-rw-r--r--   1 portage portage  104 Jun  4 10:24 FETCH_HEAD
[...]

I did try chowning to root:portage first, but I still got the permission 
error.

Have I done something daft here?

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-04 17:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-17 10:03 [gentoo-user] Local portage git mirror Peter Humphrey
2017-01-17 12:51 ` Bill Kenworthy
2017-01-17 13:58   ` Peter Humphrey
  -- strict thread matches above, loose matches on Subject: below --
2018-06-04 17:14 Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox