Opened 2 years ago

Closed 2 years ago

#65240 closed defect (fixed)

gobject-introspection 1.72.0 +universal failure: xml.etree.ElementTree.ParseError: not well-formed (invalid token)

Reported by: barracuda156 Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: powerpc, leopard Cc:
Port: gobject-introspection

Description (last modified by barracuda156)

Original ticket title was: harfbuzz fails to upgrade to @4.3.0 on Leopard. However turns out the failure is caused by gobject-introspection and not harfbuzz: https://github.com/macports/macports-ports/pull/14909

Example with harfbuzz:

Traceback (most recent call last):
  File "/opt/local/bin/g-ir-scanner", line 99, in <module>
    sys.exit(scanner_main(sys.argv))
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 590, in scanner_main
    transformer = create_transformer(namespace, options)
  File "/opt/local/lib/gobject-introspection/giscanner/scannermain.py", line 409, in create_transformer
    transformer.register_include(include_obj)
  File "/opt/local/lib/gobject-introspection/giscanner/transformer.py", line 140, in register_include
    self._parse_include(filename)
  File "/opt/local/lib/gobject-introspection/giscanner/transformer.py", line 223, in _parse_include
    parser.parse(filename)
  File "/opt/local/lib/gobject-introspection/giscanner/girparser.py", line 59, in parse
    tree = parse(filename)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/xml/etree/ElementTree.py", line 1229, in parse
    tree.parse(source, parser)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/xml/etree/ElementTree.py", line 580, in parse
    self._root = parser._parse_whole(source)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 231, column 0
make[4]: *** [HarfBuzz-0.0.gir] Error 1
make[4]: *** Waiting for unfinished jobs....

Another example is pango (see the PR).

Attachments (2)

config.log (71.1 KB) - added by barracuda156 2 years ago.
main.log (141.1 KB) - added by barracuda156 2 years ago.

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by barracuda156

Attachment: config.log added

Changed 2 years ago by barracuda156

Attachment: main.log added

comment:1 Changed 2 years ago by barracuda156

Description: modified (diff)
Port: gobject-introspection added; harfbuzz removed
Summary: harfbuzz fails to upgrade to @4.3.0 on Leopardgobject-introspection 1.72.0 +universal failure: xml.etree.ElementTree.ParseError: not well-formed (invalid token)

comment:2 Changed 2 years ago by barracuda156

Owner: changed from ryandesign to MarcusCalhoun-Lopez

comment:3 Changed 2 years ago by barracuda156

Description: modified (diff)

comment:4 Changed 2 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 359672971ee3c6800d8992288b5058a54bbd7c2f/macports-ports (master):

muniversal PG: add support for merging gir files

Fixes #65240

Note: See TracTickets for help on using tickets.