After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 669852 - Folks master not building
Folks master not building
Status: RESOLVED DUPLICATE of bug 668415
Product: folks
Classification: Platform
Component: Key file backend
git master
Other Linux
: Normal normal
: Unset
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2012-02-11 01:08 UTC by Chandni Verma
Modified: 2012-02-11 12:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chandni Verma 2012-02-11 01:08:12 UTC
Compilation fails with:
make[3]: Entering directory `/home/chandni/src/GIT/gnome/folks/backends/key-file'
  VALAC  key_file_la_vala.stamp
kf-persona-store.vala:453.51-453.63: error: Argument 1: Cannot convert from `string' to `uint8[]'
          yield this.file.replace_contents_async (key_file_data,
                                                  ^^^^^^^^^^^^^
Compilation failed: 1 error(s), 0 warning(s)


I see that glib's vapi defines replace_contents_async as :

public async bool replace_contents_async ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string new_etag) throws GLib.Error;

though the function's definition describes "contents" as const char *

So, does that mean this is unresolvable until vapi is corrected or can this be solved at folks level?
Comment 1 Philip Withnall 2012-02-11 12:07:19 UTC
Looks like you’re building folks with Vala 0.15/master, but folks only supports Vala 0.14 at the moment.

You need to either downgrade Vala to its 0.14 branch, or apply Travis’ branch from bug #668415 to port folks to Vala 0.15.

*** This bug has been marked as a duplicate of bug 668415 ***