Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610944 - app-portage/gentoolkit: imlate fails on parcing xml's it shouldn't
Summary: app-portage/gentoolkit: imlate fails on parcing xml's it shouldn't
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2017-02-26 07:33 UTC by Fat-Zer
Modified: 2018-11-11 12:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Fat-Zer 2017-02-26 07:33:31 UTC
the imlate fails with backtrace:

Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/imlate", line 479, in <module>
  File "/usr/lib/python-exec/python2.7/imlate", line 473, in main
    pkgs = get_packages( conf )
  File "/usr/lib/python-exec/python2.7/imlate", line 218, in get_packages
    if not is_herd(conf["HERD"], join(conf["PORTDIR"], cp, "metadata.xml")):
  File "/usr/lib/python-exec/python2.7/imlate", line 180, in is_herd
    data = _get_metadata(metadata, "pkgmetadata", "herd")
  File "/usr/lib/python-exec/python2.7/imlate", line 119, in _get_metadata
    metadatadom = minidom.parse(metadata)
  File "/usr/lib64/python2.7/xml/dom/", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib64/python2.7/xml/dom/", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: u'/var/portage/tree/eclass/ELT-patches/metadata.xml'

The removing of "eclass/ELT-patches" and "eclass/tests" subdirs workarounds this.

I sync tree from "rsync://"; The same as for git tree from github.

Reproducible: Always