Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37455 - RESTRICT=fetch should be overridden by non FS-based local mirrors
Summary: RESTRICT=fetch should be overridden by non FS-based local mirrors
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244
  Show dependency tree
 
Reported: 2004-01-06 21:28 UTC by SpanKY
Modified: 2006-07-28 11:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A really bad patch so far ;) (portage-local-mirror.patch,996 bytes, patch)
2005-08-09 22:10 UTC, Alec Warner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2004-01-06 21:28:28 UTC
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
Comment 1 David Ripton 2004-07-19 08:41:06 UTC
+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?
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-09 22:10:24 UTC
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.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2005-12-04 09:35:13 UTC
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 ;).
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-12-07 21:05:51 UTC
(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 :/
Comment 5 Russell Knighton 2006-07-26 03:15:09 UTC
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.
Comment 6 Wulf Krueger (RETIRED) gentoo-dev 2006-07-26 03:47:13 UTC
(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.
Comment 7 Zac Medico gentoo-dev 2006-07-26 06:10:57 UTC
I'm putting this on my todo list.
Comment 8 Zac Medico gentoo-dev 2006-07-27 01:03:25 UTC
This is fixed in svn r4027 and r4028.
Comment 9 Wulf Krueger (RETIRED) gentoo-dev 2006-07-27 09:48:17 UTC
Thank you, greatly appreciated! 
Comment 10 Zac Medico gentoo-dev 2006-07-28 11:11:13 UTC
This has been released in 2.1.1_pre4.