Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367741 - app-portage/pfl: Prepare to use xml.use_pyxml()
Summary: app-portage/pfl: Prepare to use xml.use_pyxml()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xml.use_pyxml
  Show dependency tree
 
Reported: 2011-05-17 17:11 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2011-05-18 19:22 UTC (History)
1 user (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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-17 17:11:34 UTC
This package specifies dependency on dev-python/pyxml.

Please test this package with dev-lang/python-2.7.1-r2:2.7 or >=dev-lang/python-2.7.2_pre20110515:2.7, which require explicit calling of xml.use_pyxml() before using PyXML.

If this package actually needs PyXML, then modify all modules/scripts of this package, which import xml module. The following code should be added before first import of anything from xml module:

import xml
if hasattr(xml, "use_pyxml"):
    xml.use_pyxml()

This code works with previous versions of Python, so no changes in dependencies are needed.
Comment 1 bugs 2011-05-17 19:57:03 UTC
http://files.portagefilelist.de/pfl-2.2

Importing of "xml.dom.ext" was not necessary. So PFL is not using pyxml anymore.

cheers
Daniel
Comment 2 Daniel Pielmeier gentoo-dev 2011-05-18 19:22:16 UTC
+  18 May 2011; Daniel Pielmeier <billie@gentoo.org> -pfl-2.1-r1.ebuild,
+  +pfl-2.2.ebuild:
+  Version bump. Fixes bug #367741. Thanks to Arfrever Frehtes Taifersar
+  Arahesis for the report and Daniel for the upstream fix. Remove old.