Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287356 - stabilize app-portage/mirrorselect-2.0.0
Summary: stabilize app-portage/mirrorselect-2.0.0
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks: 290598
  Show dependency tree
 
Reported: 2009-10-02 14:16 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2009-10-26 19:25 UTC (History)
2 users (show)

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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-02 14:16:54 UTC
Hello,
I don't see any bugs with mirrorselect-2.0.0. If it is ready for stabilization, please consider doing so. This version uses mirrors3.xml instead of mirrors.xml. mirrors.xml is just another file that the mirror-admins have to edit. I (we) would like to eliminate that and soon forget about mirrors.xml because mirrors3.xml is more maintained and easier to use.

Thanks.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-02 14:18:13 UTC
Sebastian might have some input. :)
Comment 2 Sebastian Pipping gentoo-dev 2009-10-02 17:46:17 UTC
(In reply to comment #1)
> Sebastian might have some input. :)

Thanks for CC'ing me.  I believe the changes we made were fairly trivial and had more than 2 eyes on them.  My vote for stabilization.

On editing: is it all scripted already or does any mirrors*.xml required manual edits besides mirrors3.xml?



Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-10-02 18:43:23 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Sebastian might have some input. :)
> 
> Thanks for CC'ing me.  I believe the changes we made were fairly trivial and
> had more than 2 eyes on them.  My vote for stabilization.
> 
> On editing: is it all scripted already or does any mirrors*.xml required manual
> edits besides mirrors3.xml?
> 

We have to manually add them to mirrors{,3}.xml. I'd be interested in testing some tool out if you are so inclined..We can talk about it outside of this bug.
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2009-10-05 19:32:52 UTC
Yeah mirrorselect-2.0.0 should be ready :)
So please stabilize.
Comment 5 Markus Meier gentoo-dev 2009-10-05 21:39:58 UTC
amd64/arm/x86 stable
Comment 6 Tiago Cunha (RETIRED) gentoo-dev 2009-10-05 23:33:21 UTC
sparc stable
Comment 7 Tobias Klausmann (RETIRED) gentoo-dev 2009-10-11 16:57:26 UTC
Doesn work correctly on alpha:

# mirrorselect  -s3 -b10 -o
* Downloading a list of mirrors...Traceback (most recent call last):
  File "/usr/sbin/mirrorselect", line 898, in <module>
    main(sys.argv)
  File "/usr/sbin/mirrorselect", line 885, in main
    hosts = Extractor(MIRRORS_3_XML, options).hosts
  File "/usr/sbin/mirrorselect", line 164, in __init__
    hosts = self.getlist(parser, list_url)
  File "/usr/sbin/mirrorselect", line 207, in getlist
    parser.parse(urllib.urlopen(url).read())
  File "/usr/lib/python2.6/site-packages/mirrorselect/mirrorparser3.py", line 36, in parse
    for mirrorgroup in ET.XML(text):
  File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 962, in XML
    parser = XMLTreeBuilder()
  File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 1126, in __init__
    parser.DefaultHandlerExpand = self._default
TypeError: 'pyexpat.xmlparser' object has only read-only attributes (assign to .DefaultHandlerExpand)
Segmentation fault
# 
Comment 8 Christian Ruppert (idl0r) gentoo-dev 2009-10-11 20:10:16 UTC
(In reply to comment #7)
> Doesn work correctly on alpha:
> 
> # mirrorselect  -s3 -b10 -o
> * Downloading a list of mirrors...Traceback (most recent call last):
>   File "/usr/sbin/mirrorselect", line 898, in <module>
>     main(sys.argv)
>   File "/usr/sbin/mirrorselect", line 885, in main
>     hosts = Extractor(MIRRORS_3_XML, options).hosts
>   File "/usr/sbin/mirrorselect", line 164, in __init__
>     hosts = self.getlist(parser, list_url)
>   File "/usr/sbin/mirrorselect", line 207, in getlist
>     parser.parse(urllib.urlopen(url).read())
>   File "/usr/lib/python2.6/site-packages/mirrorselect/mirrorparser3.py", line
> 36, in parse
>     for mirrorgroup in ET.XML(text):
>   File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 962, in XML
>     parser = XMLTreeBuilder()
>   File "/usr/lib/python2.6/xml/etree/ElementTree.py", line 1126, in __init__
>     parser.DefaultHandlerExpand = self._default
> TypeError: 'pyexpat.xmlparser' object has only read-only attributes (assign to
> .DefaultHandlerExpand)
> Segmentation fault
> # 
> 

Hm, I can't reproduce it here (AMD64 hardened and normal, X86 hardened).
Could you try to rebuild expat/python?
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2009-10-16 14:43:37 UTC
Stable for HPPA.
Comment 10 Tobias Klausmann (RETIRED) gentoo-dev 2009-10-18 15:11:39 UTC
Rebuilding python and expat did not help. So I remerged pyxml and libxml2 - and voilá, mirrorselect works. 

Stable on alpha.
Comment 11 Raúl Porcel (RETIRED) gentoo-dev 2009-10-21 15:59:26 UTC
ia64/m68k/s390/sh stable, mips doesn't do stable keywords
Comment 12 nixnut (RETIRED) gentoo-dev 2009-10-24 12:53:38 UTC
ppc stable
Comment 13 Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2009-10-26 19:25:53 UTC
ppc64 stable