Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25996 - mirrorselect claims ftp6.uni-erlangen.de is an unkown host due to ipv6
Summary: mirrorselect claims ftp6.uni-erlangen.de is an unkown host due to ipv6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-05 16:09 UTC by Markus Nigbur (RETIRED)
Modified: 2003-08-08 13:42 UTC (History)
1 user (show)

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


Attachments
make IPv6 mirrors optional (mirrorselect-ipv6.diff,1.06 KB, patch)
2003-08-08 07:32 UTC, Nicolas Kaiser
Details | Diff
added support for interactive mode (mirrorselect-ipv6.diff,1.50 KB, patch)
2003-08-08 08:12 UTC, Nicolas Kaiser
Details | Diff
files/mirror-ipv6.patch for changing default behaviour (mirror-ipv6.patch,1.79 KB, patch)
2003-08-08 09:43 UTC, Nicolas Kaiser
Details | Diff
changes to mirrorselect-0.7-r1.ebuild for USE="ipv6" (mirrorselect-ipv6-use-ebuild.diff,822 bytes, patch)
2003-08-08 09:46 UTC, Nicolas Kaiser
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Nigbur (RETIRED) gentoo-dev 2003-08-05 16:09:21 UTC
ftp6.uni-erlangen.de is an ipv6 only server, so netselect will fail on it with ipv4.

# mirrorselect -a -s3
Downloading a list of mirrors...
Running netselect to determine mirrors, this might take a moment...
netselect: unknown host ftp6.uni-erlangen.de
netselect: unknown host ftp6.uni-erlangen.de
..

mirrorselect should check this before calling netselect.
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2003-08-07 01:48:54 UTC
gerk no longer has anything to do with mirrorselect.
please assign mirrorselect bugs to me, as i re-write it some time ago :)
thanks
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2003-08-07 02:19:57 UTC
Markus, do you know of a way to check this kind of thing before netselect is called?
I dont think this is possible.
It also doesnt effect usage, as its purely cosmetic.

If you have a solution, ill be happy to include it
Comment 3 Markus Nigbur (RETIRED) gentoo-dev 2003-08-07 05:56:26 UTC
Even if it's not possible to check whether a host is an ipv4 or ipv6 one, we could at least suppress the message, because it may annoy people who aren't aware of the actual problem.

I'll check it.
Comment 4 Nicolas Kaiser 2003-08-08 07:32:12 UTC
Created attachment 15751 [details, diff]
make IPv6 mirrors optional

I wrote a small patch to make IPv6 mirrors optional. How do you like it?
Comment 5 Nicolas Kaiser 2003-08-08 08:12:27 UTC
Created attachment 15754 [details, diff]
added support for interactive mode
Comment 6 Nicolas Kaiser 2003-08-08 08:13:54 UTC
updated patch
Comment 7 Markus Nigbur (RETIRED) gentoo-dev 2003-08-08 08:50:35 UTC
yeah, that's most likely the best solution.
even so it would be nice to link it with the ipv6 useflag.
Comment 8 Nicolas Kaiser 2003-08-08 09:43:29 UTC
Created attachment 15762 [details, diff]
files/mirror-ipv6.patch for changing default behaviour

Something along these lines? USE="ipv6" would change default behaviour to allow
ipv6.
I'll attach changes to the ebuild seperately.
Comment 9 Nicolas Kaiser 2003-08-08 09:46:17 UTC
Created attachment 15763 [details, diff]
changes to mirrorselect-0.7-r1.ebuild for USE="ipv6"
Comment 10 Nicolas Kaiser 2003-08-08 09:48:49 UTC
(Patch 15754 goes into files/mirrorselect-ipv6.diff for now with the ebuild)
Comment 11 John Mylchreest (RETIRED) gentoo-dev 2003-08-08 12:38:32 UTC
Added IPv6 checking to the mirrorselect logic.
You gave me some ideas and ive come up with a nice tidy way to do it :)

thanks
Comment 12 Markus Nigbur (RETIRED) gentoo-dev 2003-08-08 13:42:13 UTC
yeah that's it, really nice!
keep up this good work.

Regards,

Markus