Bug 45874
Summary: | introspection does not build with g-i 0.9.5 | ||
---|---|---|---|
Product: | WebKit | Reporter: | Götz Waschk <waschk> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | berto, robert.ancell |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | Linux |
Götz Waschk
This is with webkit gtk 1.2.4 on Mandriva Linux with gobject-introspection 0.9.5:
GEN WebKit-1.0.gir
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 45, in <module>
sys.exit(scanner_main(sys.argv))
File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 301, in scanner_main
transformer.register_include(include_obj)
File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 113, in register_include
self._parse_include(filename)
File "/usr/lib/gobject-introspection/giscanner/transformer.py", line 171, in _parse_include
parser.parse(filename)
File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 60, in parse
self.parse_tree(tree)
File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 70, in parse_tree
self._parse_api(tree.getroot())
File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 164, in _parse_api
method(node)
File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 178, in _parse_alias
typeval = self._parse_type(node)
File "/usr/lib/gobject-introspection/giscanner/girparser.py", line 425, in _parse_type
assert False, "Failed to parse toplevel type"
AssertionError: Failed to parse toplevel type
make[1]: *** [WebKit-1.0.gir] Fehler 1
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Robert Ancell
Confirming the same behaviour on Ubuntu 11.04
Robert Ancell
The current JSCore is:
<?xml version="1.0"?>
<repository version="1.1"
xmlns="http://www.gtk.org/introspection/core/1.0"
xmlns:c="http://www.gtk.org/introspection/c/1.0">
<namespace name="JSCore" version="1.0" shared-library="webkit-1.0">
<alias name="GlobalContextRef"
target="none"
c:type="JSGlobalContextRef"/>
<alias name="ObjectRef" target="none" c:type="JSObjectRef"/>
<function name="EvaluateScript" c:identifier="JSEvaluateScript">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>
</return-value>
<parameters>
</parameters>
</function>
</namespace>
</repository>
Debugging shows it is the <alias> tags that is causing the problem. I changed them to the following:
<alias name="GlobalContextRef" c:type="JSGlobalContextRef">
<type name="opaque" c:type="void*"/>
</alias>
<alias name="ObjectRef" c:type="JSObjectRef">
<type name="opaque" c:type="void*">
</alias>
This seems to get past the compilation problem. However I haven't been able to get the .deb to compile with this fix and I'm not an introspection expert - I don't know if this is correct syntax.
Alberto Garcia
This is 3 years old and we now depend on g-i 1.32.0
Please reopen if you think this bug is still relevant. Thanks!