Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367743 - app-text/xmldiff: Prepare to use xml.use_pyxml()
Summary: app-text/xmldiff: 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
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: xml.use_pyxml
  Show dependency tree
 
Reported: 2011-05-17 17:12 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2018-04-21 07:53 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:12:42 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 07:01:19 UTC
Apparently the only use of PyXML happens when you call input.py from site-packages directly.  I think we can ignore that for now, and forget about it after the bump (bug #653660).
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-21 07:01:40 UTC
Oh wait, there's the matter of the meaningless dependency.
Comment 3 Larry the Git Cow gentoo-dev 2018-04-21 07:53:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c139c2c388d0f41821830c54d8e9ed1cce66e44

commit 9c139c2c388d0f41821830c54d8e9ed1cce66e44
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-04-21 07:03:52 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-04-21 07:53:04 +0000

    app-text/xmldiff: Remove obsolete dep on dev-python/pyxml
    
    Closes: https://bugs.gentoo.org/367743

 .../xmldiff/{xmldiff-0.6.10-r1.ebuild => xmldiff-0.6.10-r2.ebuild}     | 3 ---
 1 file changed, 3 deletions(-)