Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99591 - mirrorselect-0.89 calls netselect unsuccessfully and then fails
Summary: mirrorselect-0.89 calls netselect unsuccessfully and then fails
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 16:15 UTC by JoeSixpack
Modified: 2005-07-19 22:51 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 JoeSixpack 2005-07-19 16:15:33 UTC
mirrorselect fails.  Its output includes the "Usage:" lines from netselect as
though netselect was given invalid parameters.

Reproducible: Always
Steps to Reproduce:
1. # su
2. # mirrorselect -a -s3 -b10 -o >> /etc/make.conf
Actual Results:  
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...
Splitting into blocks of 10.
Please note that the smaller the block size the longer this takes...
Preparing to select fastest servers...
Usage: netselect [-v] [-vv] [-t min_tries] [-m max_ttl] host [host...]
No mirrors have been selected. Exiting.

Expected Results:  
Three mirrors should have been selected and added to /etc/make.conf.

This is an old bug from 2004 that has popped up again.  It was probably fixed
before, but that fix seems to have broken.

This bug is identical to bug 52205 except that that was on x86 whereas I am
using amd64.

Bug 52205 was closed because it was supposedly a duplicate of bug 56721.  Please
notice that bug 52205 was NOT a duplicate of bug 56721.  The original poster of
bug 52205 had the problem that mirrorselect uses netselect incorrectly.  The
second poster's problem was with host, not with netselect.  The second poster
should not have posted his problem in that bug because it was a duplicate of bug
56721 and because it was not the same problem the original poster was having.  I
believe Marius Mauch closed bug 52205 in error because the second poster had
changed the topic.

I am using:
mirrorselect-0.89
netselect-0.3-r1

Please forgive me if I'm stepping on any toes.  This is my first bug report.

# cat /etc/make.conf | grep USE
USE="alsa cdr dvd -gtk -gnome kde mozilla mp3 oggvorbis opengl oss qt"

# emerge info
Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0,
2.6.11-gentoo-r11 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts avi berkdb bitmap-fonts cdr crypt cups curl dvd encode
fam flac foomaticdb fortran gdbm gif gpm gtk2 imagemagick imlib ipv6 java jpeg
kde lzw lzw-tiff mad motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis
opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell ssl
tcltk tcpd tiff truetype-fonts type1-fonts usb userlocales vorbis xine xml2 xmms
xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 JoeSixpack 2005-07-19 16:45:27 UTC
Oops!  Here is the correct `emerge --info` and also my /etc/make.conf.

# emerge --info
!!! Invalid token (not "=")
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/
!!! ParseError: Invalid token (not '='): //etc/make.conf: line 37 in //etc/make.conf
!!! Incorrect multiline literals can cause this. Do not use them.

# cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example

CFLAGS="-march=athlon64 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

# Original USE flags were: (actually, alsa might have been added later)
USE="alsa cdr dvd -gtk -gnome kde mozilla mp3 oggvorbis opengl oss qt"

ALSA_CARDS="ymfpci intel8x0"

# Uncomment to allow portage to overwrite config files
#CONFIG_PROTECT="-*"
ftp://cs.ubishops.ca/pub/gentoo
ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/
ftp://darkstar.ist.utl.pt/pub/gentoo/
ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/
...

I have snipped about a hundred URLs from the end of the file.
Comment 2 JoeSixpack 2005-07-19 16:59:15 UTC
Disregard the output of `emerge --info` in my second post.  The ftp URLs at the
end of my make.conf had borked emerge altogether.  I removed the URLs and now my
`emerge --info` looks like it did in my first post.
Comment 3 Colin Kingsley (RETIRED) gentoo-dev 2005-07-19 22:51:33 UTC
This should not be an issue in mirrorslect after version 1.0. Currently all such
versions are in ~arch, so test at your own risk. If the problem persists in the
new versions, please feel free to open a new bug.