Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61496 - Deeptest broken in app-portage/mirrorselect-0.85
Summary: Deeptest broken in app-portage/mirrorselect-0.85
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: John Mylchreest (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-24 04:46 UTC by Philipp Kern
Modified: 2004-10-11 11:45 UTC (History)
3 users (show)

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


Attachments
Proposed patch (mirrorselect.diff,1013 bytes, patch)
2004-08-28 06:21 UTC, Laurence Withers
Details | Diff
Revised patch for mirrorselect (mirrorselect.diff,1.15 KB, patch)
2004-08-28 15:50 UTC, Laurence Withers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Kern 2004-08-24 04:46:29 UTC
Justification for major: IPv6 users depend on the deep test.

/usr/sbin/mirrorselect line 188:
wget -t 1 -C off -T 25 -O - ${i}/distfiles/mirrorselect-test 2>/dev/null

This results in the file passed to stdout. A console full of garbage isn't quite what I expected. ;o)
I need the deep test because of IPv6 connectivity.

You either wanted to write ``>/dev/null'' or -o - -O /dev/null.

I fixed it by replacing the line with:
wget -t 1 -C off -T 25 -o /dev/null -O /dev/null ${i}/distfiles/mirrorselect-test

-o /dev/null : Suppreses the log output
-O /dev/null : Discards the downloaded data.
Comment 1 teedog 2004-08-26 12:13:59 UTC
I confirm that when doing deep tests with mirrorselect, I get lots of garbage output in stdout.
Comment 2 Laurence Withers 2004-08-28 06:21:02 UTC
Created attachment 38386 [details, diff]
Proposed patch

This is a proposed patch that I hope will fix the problem.
Comment 3 Philipp Kern 2004-08-28 06:25:34 UTC
#2 won't fix the problem. All it did was adding a second temporary file which is then used to the data about the mirrors.
The problem is wget putting the data to stdout specified by ``-O -''. It would be quite easy to fix and to restore the old behaviour.
Comment 4 Laurence Withers 2004-08-28 15:48:29 UTC
Good catch. That "-O -" needs to be changed to "-O ${TMPFILE}", of course.
Comment 5 Laurence Withers 2004-08-28 15:50:02 UTC
Created attachment 38403 [details, diff]
Revised patch for mirrorselect
Comment 6 Selecter 2004-08-29 09:05:29 UTC
0.84 throws a lot of garbage too
Comment 7 John Mylchreest (RETIRED) gentoo-dev 2004-09-05 10:02:56 UTC
should be fixed in 0.86 - regards.
Comment 8 Andre Hinrichs 2004-10-11 11:45:36 UTC
confirmed
when will it become stable?