when genone hooked me up with his basic portage docs which i turned into the portage(5) manpage, i learned something ... you can define a 'local' mirror in /etc/portage/mirrors ... basically, this mirror will be checked before any other mirror (GENTOO_MIRRORS, SRC_URI) ... in his original docs, he said that this can be used even if a package has RESTRICT=fetch ... i thought, thats awesome, i hate mirroring fetch restricted files out to multiple boxes come to find out, he made a mistake in his docs which he fixed in the portage manpage for me ... http://www.gentoo.org/cgi-bin/viewcvs.cgi/portage/man/portage.5.diff?r1=1.1&r2=1.2&cvsroot=gentoo-src basically, i want to see that feature added ... i have a server which i use as a local mirror for the rest of my boxes and when having to update say bitkeeper or some jdk or something, i HATE having to move the file to EACH box ... i wish it would just grab it from my local mirror and then fail otherwise
+1. http-replicator and similar distfiles caching proxies (which have the potential to be huge bandwidth savers for public Gentoo mirrors) are defeated by RESTRICT="fetch". I would much rather stuff the latest 35MB Sun JDK file into one cache directory than manually scp it around to N local distfiles directories. Why does fetch need to work differently than nomirror, anyway?
Created attachment 65578 [details, diff] A really bad patch so far ;) This should work but still has some errors in it...there is a lot of code that validates fetching, even from a local mirror and I don't want to duplicate it, so it's basically a hack at trying to convince the rest of the fetching code that we can only use local mirrors.
Actually just looking at the patch it isn't that bad, but I haven't checked where in fetch() it triggers (I try to avoid that function if possible ;).
(In reply to comment #3) > Actually just looking at the patch it isn't that bad, but I haven't checked > where in fetch() it triggers (I try to avoid that function if possible ;). > Trust me, it's no fun :/
This is a feature that I despereatly need to be included into portage. I am currently trying to plan a large scale installation of (hopefully) gentoo and this feature would be one step towards solving the list of problems. (please see http://forums.gentoo.org/viewtopic-t-477283.html and http://forums.gentoo.org/viewtopic-p-3473345.html#3473345). Is there any chance of this functionality being integrated into portage? It would be a boost to those of use that are proud of gentoo and trying to encourage large scale installations.
(In reply to comment #5) > This is a feature that I despereatly need to be included into portage. I am > currently trying to plan a large scale installation I agree. This feature will definitely be needed for enterprise scale deployment which is what I'm looking into professionally, too, currently. For now, this problems remains a major blocker.
I'm putting this on my todo list.
This is fixed in svn r4027 and r4028.
Thank you, greatly appreciated!
This has been released in 2.1.1_pre4.