Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98783 - incomplete "man portage"
Summary: incomplete "man portage"
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Portage Manual (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 08:33 UTC by Linux Blues
Modified: 2005-07-12 15:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linux Blues 2005-07-12 08:33:14 UTC
man portage doesn't specify the requirements to use /etc/portage/mirrors

Reproducible: Always
Steps to Reproduce:
1. I've created an /etc/portage/mirrors according to the mirrors located on my city.
2. The file is completely ignored if you have on /etc/make.conf a commented or
uncommented out GENTOO_MIRRORS


Actual Results:  
1. it tries to download the files from packages.gentoo.org anyway

Expected Results:  
obey to the list of mirrors on /etc/portage/mirrors as the man says its the default.

Adding on /etc/make.conf the (undocumented) variable

GENTOO_MIRRORS=/etc/portage/mirrors

the problem is solved.
Comment 1 SpanKY gentoo-dev 2005-07-12 11:20:34 UTC
the mirrors file is to let you override /usr/portage/profiles/thirdpartymirrors

GENTOO_MIRRORS is documented in `man make.conf`
Comment 2 Linux Blues 2005-07-12 12:11:35 UTC
do you think 

" GENTOO_MIRRORS = [URLs] Insert  your  space-seperated  list  of  local mirrors
here. These locations are used to download files before the ones listed in the
ebuild scripts. Merging 'mirrorselect' can help."

is enough?

I really don't think so.
Comment 3 SpanKY gentoo-dev 2005-07-12 15:06:41 UTC
yes, i do think it's just fine the way it is
Comment 4 Linux Blues 2005-07-12 15:29:49 UTC
well, forget it, it's easy to guess (I don't think so though) you need to add on
/etc/make.conf the variable PORTAGE_MIRRORS=/etc/portage/mirrors  to use the file.

I hope this bug explains what ALL the mans don't explain, It was a bug I was
solving it by myself, but if you don't want to modify the mans, it's only a
lazyness issue, nothing more, nothing else.
Comment 5 SpanKY gentoo-dev 2005-07-12 15:38:48 UTC
you do not need to set any variable in make.conf to make /etc/portage/mirrors work

root@vapier 0 ~ # grep mirrors /etc/make.conf

root@vapier 0 ~ # cat /etc/portage/mirrors
gnu asdf ftp://ftp.gnu.org/gnu ftp://mirrors.kernel.org/gnu

root@vapier 0 ~ # portageq envvar GENTOO_MIRRORS
http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo

root@vapier 0 ~ # emerge -pf automake
http://distfiles.gentoo.org/distfiles/automake-1.9.6.tar.bz2
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/automake-1.9.6.tar.bz2
asdf/automake/automake-1.9.6.tar.bz2
ftp://ftp.gnu.org/gnu/automake/automake-1.9.6.tar.bz2
ftp://mirrors.kernel.org/gnu/automake/automake-1.9.6.tar.bz2
ftp://ftp.de.uu.net/pub/gnu/automake/automake-1.9.6.tar.bz2
http://ftp.gnu.org/gnu/automake/automake-1.9.6.tar.bz2
...

as you can see, the first two hits are from my GENTOO_MIRRORS, the next 3 are
from my /etc/portage/mirrors, and the rest are from
/usr/portage/profiles/thirdpartymirrors