Bug 49637

Summary: build failure: TelepathyGLib-0.12.gir:: error: too few type arguments GLib.List GList
Product: Telepathy Reporter: Craig Keogh <cskeogh>
Component: tp-glibAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: cskeogh
Version: git master   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Craig Keogh 2012-05-08 05:43:37 UTC
I am building telepathy-glib git master via JHBuild on Fedora 16. The build fails with:

Making all in vala
make[2]: Entering directory `/home/oxyde/gnome/build/telepathy-glib/vala'
/opt/gnome/bin/vapigen \
	--library telepathy-glib \
	--pkg gio-2.0 \
	../telepathy-glib/TelepathyGLib-0.12.gir \
	
TelepathyGLib-0.12.gir:20.37-20.37: error: too few type arguments
      <type name="GLib.List" c:type="GList"/>
                                    ^
TelepathyGLib-0.12.gir:23.37-23.37: error: too few type arguments
      <type name="GLib.List" c:type="GList"/>
                                    ^
Generation failed: 2 error(s), 0 warning(s)
make[2]: *** [telepathy-glib.vapi] Error 1
make[2]: Leaving directory `/home/oxyde/gnome/build/telepathy-glib/vala'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/oxyde/gnome/build/telepathy-glib'
make: *** [all] Error 2
Comment 1 Simon McVittie 2012-05-09 10:08:52 UTC
(In reply to comment #0)
> I am building telepathy-glib git master via JHBuild on Fedora 16.

What version of vapigen is that? (/opt/gnome/bin/vapigen --version)

With telepathy-glib master (close to 0.19.0) on Debian, and vapigen 0.14.2, I get a different error:

TelepathyGLib-0.12.gir:27672.34-27672.34: error: The type name `GLib.Bytes' could not be found
            <type name="GLib.Bytes"/>
                                 ^

although my /usr/share/gir-1.0/GLib-2.0.gir does indeed have

    <record name="Bytes"
            c:type="GBytes"
            version="2.32"
            glib:type-name="GBytes"
            glib:get-type="g_bytes_get_type"
            c:symbol-prefix="bytes">
Comment 2 Craig Keogh 2012-05-10 05:13:52 UTC
(In reply to comment #1)
> What version of vapigen is that? (/opt/gnome/bin/vapigen --version)

Vala from git.
# /opt/gnome/bin/vapigen --version
Vala API Generator 0.17.0.11-1ac3a
Comment 3 Simon McVittie 2012-05-11 07:52:35 UTC
Fixed in git for 0.19.1 via a patch from Ray Strode.

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.