Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 47528

Summary: metabug: glsa-check / python-2.2 / pyxml problems
Product: Portage Development Reporter: Josh Glover (RETIRED) <jmglov>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: major CC: guerrilla_thought, srcshelton
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Adds >=dev-python/pyxml-0.8.1 dependency

Description Josh Glover (RETIRED) gentoo-dev 2004-04-11 11:12:41 UTC
Running 'glsa-check --list' when one does not have dev-python/pyxml emerged will result in no GLSAs being displayed. glsa-check does not report an error, and exits with a return value of 0 (success).

Furthermore, with dev-python/PyXML-0.7.1, 'glsa-check --list' bombs out with this error message:

File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", line 232, in reset
self._parser = expat.ParserCreate(None, " ", intern = self._interning)
TypeError: 'intern' is an invalid keyword argument for this function

I was able to resolve this by upgrading to dev-python/pyxml-0.8.3, and later tested dev-python/pyxml-0.8.1 and found that it worked, as well.

Therefore, I recommend the following patch to app-portage/gentoolkit-0.2.0_pre8.ebuild.
Comment 1 Josh Glover (RETIRED) gentoo-dev 2004-04-11 11:22:23 UTC
Created attachment 29096 [details, diff]
Adds >=dev-python/pyxml-0.8.1 dependency
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-04-12 00:20:23 UTC
Any chance you could try to update python to 2.3 ? glsa-check should work just as fine without pyxml. I've seen one other report about strange things with glsa-check and python-2.2, so maybe the xml code has changed in subtle ways between 2.2 and 2.3.
Comment 3 Josh Glover (RETIRED) gentoo-dev 2004-04-12 05:26:57 UTC
I unmerged PyXML, emerged dev-lang/python-2.3.3, ran /usr/sbin/python-updater, then unmerged Python 2.2.

'glsa-check -l' works properly.

That just leaves us with the question of what exactly the dependencies of gentoolkit should be.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2004-04-12 13:30:13 UTC
well, I'm not so much worried about gentoolkit deps as about future portage deps as glsa-check will disappear in a few weeks and glsa.py will move to portage.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 11:55:33 UTC
*** Bug 48756 has been marked as a duplicate of this bug. ***
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 11:55:51 UTC
*** Bug 48593 has been marked as a duplicate of this bug. ***
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-12-08 03:39:47 UTC
added a check for python-2.3 in glsa.py and made gentoolkit-0.2.0_rc1 depending on that version, problems caused by pyxml are supposed to go away by remerging it.