Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68672 - PATCH: mirrorselect adds support for local mirrors and uses ._cfg file
Summary: PATCH: mirrorselect adds support for local mirrors and uses ._cfg file
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Colin Kingsley (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-23 19:42 UTC by Kurt Hindenburg
Modified: 2005-06-09 10:24 UTC (History)
0 users

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


Attachments
Patch against mirrorselect-0.86 (mirrorselect.diff,2.91 KB, patch)
2004-10-23 19:42 UTC, Kurt Hindenburg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2004-10-23 19:42:20 UTC
This patches mirrorselect to do the following:
1. Keep user's local mirrors in GENTOO_MIRRORS (example: GENTOO_MIRRORS="/mnt/cdrom http://....)
2. Do not alter /etc/make.conf; instead using /etc/._cfg????.make_conf
3. Do not remove commented out GENTOO_MIRRORS

I haven't testing when using RSYNC instead of GENTOO_MIRRORS.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1 i686)
=================================================================
System uname: 2.6.8.1 i686 AMD Duron(tm) processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.22,sys-kernel/linux-headers-2.4.19-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache clean distlocks sandbox titles userpriv"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://gentoo.ccccom.com ftp://gentoo.ccccom.com"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/part6/portage-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts
cdparanoia cdr crypt cups directfb doc encode esd f77 flac foomaticdb gdbm gif
gstreamer gtk2 imlib jack joystick jpeg kde lcms libg++ libwww mad maildir
mailwrapper mikmod mmx mono mpeg ncurses nls oggvorbis oss pam pdflib perl png
python qt quicktime readline ruby ruby18 sdl slang spell sse ssl svg svga tcpd
tiff truetype x86 xml2 xprint xrandr xv zlib video_cards_savage linguas_fr"
Comment 1 Kurt Hindenburg 2004-10-23 19:42:57 UTC
Created attachment 42471 [details, diff]
Patch against mirrorselect-0.86
Comment 2 Kurt Hindenburg 2004-11-06 09:50:12 UTC
Sample output:

% mirrorselect -a -s5
Downloading a list of mirrors...
Netselect is currently unable to handle ipv6, stripping known ipv6 hosts...
Removing IPV6 Only Servers...
Running netselect to determine mirrors, this might take a moment...
Found 5 Mirrors: ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo ftp://gentoo.mirrors.pair.com/
Including 2 Local Mirrors: /mnt/auto/cdr /mnt/auto/cdrw
Writing new make.conf to /etc/._cfg0001_make.conf

Please use etc-update to finish installing your new mirrors!


% etc-update

Showing differences between /etc/make.conf and /etc/._cfg0001_make.conf
--- /etc/make.conf      2004-11-06 12:47:16.289414768 -0500
+++ /etc/._cfg0001_make.conf    2004-11-06 12:50:12.959556824 -0500
@@ -167,7 +167,7 @@
 # to a nearby mirror by merging and using the 'mirrorselect' tool.
 #GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/
 ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp:/
/mirrors.tds.net/gentoo"
 #GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw http://gentoo.mirrors.pair.com/ f
tp://gentoo.mirrors.pair.com/ ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.ussg.
iu.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo"
-GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw http://gentoo.mirrors.pair.com/ ft
p://gentoo.mirrors.pair.com/ ftp://mirrors1.netvisao.pt/gentoo/ ftp://ftp.ussg.i
u.edu/pub/linux/gentoo ftp://mirrors.tds.net/gentoo"
+GENTOO_MIRRORS="/mnt/auto/cdr /mnt/auto/cdrw ftp://ftp.ussg.iu.edu/pub/linux/ge
ntoo http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://mi
rrors.tds.net/gentoo ftp://gentoo.mirrors.pair.com/"
 #
 # Portage uses PORTAGE_BINHOST to specify mirrors for prebuilt-binary packages.
 # The list is a single extry specifying the full address of the directory
Comment 3 Colin Kingsley (RETIRED) gentoo-dev 2005-06-09 10:24:24 UTC
I'm a little unclear what you are trying request, but I think the functionality
you are looking for can be achieved with /etc/portage/mirrors. There is
documentation for this in the portage man page. If I misunderstood you, feel
free to re-open this bug.