Bug 63456

Summary: 0.19: fails to be introspspected
Product: Spice Reporter: Dominique Leuenberger <dominique-freedesktop.org>
Component: spice-gtkAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Dominique Leuenberger 2013-04-12 08:35:30 UTC
spice-gtk 0.19 has been released, but it fails to be introspected:

[   77s] make[2]: Entering directory `/home/abuild/rpmbuild/BUILD/spice-gtk-0.19/vapi'
[   77s] /usr/bin/vapigen                       \
[   77s]        --metadatadir=.         \
[   77s]        --library spice-client-glib-2.0 \
[   77s]        --pkg gio-2.0                   \
[   77s]        ../gtk/SpiceClientGLib-2.0.gir
[   77s] SpiceClientGLib-2.0.gir:79.11-79.30: error: expected start element of `parameter'
[   77s]           <instance-parameter name="audio" transfer-ownership="none">
[   77s]           ^^^^^^^^^^^^^^^^^^^^
[   77s] SpiceClientGLib-2.0.gir:81.11-81.10: error: expected end element of `parameter'
[   77s]           </instance-parameter>
[   77s]
[   77s] SpiceClientGLib-2.0.gir:181.11-181.34: error: expected start element of `parameter'
[   77s]           <instance-parameter name="channel" transfer-ownership="none">
[   77s]           ^^^^^^^^^^^^^^^^^^^^^^^^
[   77s] SpiceClientGLib-2.0.gir:183.11-183.10: error: expected end element of `parameter'
[   77s]           </instance-parameter>
[   77s]

[...]

[   77s]       <virtual-method name="device_error">
[   77s]       ^^^^^^^^^^^^^^^^^^^^^^^^^
[   77s] SpiceClientGLib-2.0.gir:2779.7-2779.35: warning: Signal `Spice.UsbDeviceManager.device_removed' conflicts with method of the same name
[   77s]       <virtual-method name="device_removed">
[   77s]       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[   77s] Generation failed: 112 error(s), 21 warning(s)
[   77s] make[2]: *** [spice-client-glib-2.0.vapi] Error 1
[   77s] make[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/spice-gtk-0.19/vapi'
[   77s] make[1]: *** [all-recursive] Error 1
[   77s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/spice-gtk-0.19'
[   77s] make: *** [all] Error 2
[   77s] error: Bad exit status from /var/tmp/rpm-tmp.qvlvtJ (%build)
[   77s]
[   77s]
[   77s] RPM build errors:
[   77s]     Bad exit status from /var/tmp/rpm-tmp.qvlvtJ (%build)
Comment 1 Christophe Fergeau 2013-04-12 08:52:15 UTC
Probably related to https://bugzilla.gnome.org/show_bug.cgi?id=693054 , vala 0.20 has the patch, but I don't think this was backported to older valas
Comment 2 Christophe Fergeau 2013-04-12 08:57:52 UTC
SpiceClientGLib-2.0.gir is not part of spice-gtk 0.19 tarball, so this looks like gobject-introspection on your system is too new compared to what vapigen understands.
Comment 3 Dominique Leuenberger 2013-04-12 09:00:27 UTC
(In reply to comment #1)
> Probably related to https://bugzilla.gnome.org/show_bug.cgi?id=693054 , vala
> 0.20 has the patch, but I don't think this was backported to older valas

Thanks... I tried with vala 0.20.1 and that indeed did solve the issue.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.