Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367733 - app-dicts/opendict: Prepare to use xml.use_pyxml()
Summary: app-dicts/opendict: 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: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xml.use_pyxml
  Show dependency tree
 
Reported: 2011-05-17 17:06 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2013-02-05 02:13 UTC (History)
0 users

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:06:19 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 Rafał Mużyło 2011-05-18 14:58:26 UTC
Not 100% sure, but it seems in this case we could get it done by a similar patch as in javatoolkit, as it seems only PrettyPrint gets used.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2011-06-25 04:28:54 UTC
patches welcome.
Comment 3 Pacho Ramos gentoo-dev 2012-04-22 10:31:09 UTC
This debian patch should drop that dependency:
http://patch-tracker.debian.org/patch/series/view/opendict/0.6.3-3.1/004_remove_pyxml.diff
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2013-02-05 02:13:58 UTC
Fixed.