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 698890 - warning: Folks doesn't set GIR namespace or version annotation
warning: Folks doesn't set GIR namespace or version annotation
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: libfolks
git master
Other Linux
: Normal minor
: Unset
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2013-04-25 19:20 UTC by Travis Reitter
Modified: 2013-06-24 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set the GIR version in the namespace (which appears in folks.vapi) (1.71 KB, patch)
2013-06-18 05:46 UTC, Travis Reitter
accepted-commit_now Details | Review

Description Travis Reitter 2013-04-25 19:20:11 UTC
I'm not sure how I haven't noticed this earlier, but I just got this build warning:

    folks.vapi:3.1-3.15: warning: Namespace Folks does not have a GIR namespace and version annotation
    namespace Folks {
    ^^^^^^^^^^^^^^^

This should be fixable by just setting the various *_gir_NAMESPACE, *_gir_VERSION, etc. magic constants in folks/Makefile.am. See how it's done in telepathy-glib/introspection.am
Comment 1 Philip Withnall 2013-06-16 22:19:55 UTC
I can’t reproduce this. What GIR and Vala versions are you using? (I’m using GIR 3ec52d61 and Vala e5608074.)
Comment 2 Travis Reitter 2013-06-18 05:44:17 UTC
g-ir: 1.37.1
vala: 0.20.1.30-1b1d
Comment 3 Travis Reitter 2013-06-18 05:46:04 UTC
Created attachment 247086 [details] [review]
Set the GIR version in the namespace (which appears in folks.vapi)

This is apparently how this is supposed to be set (and how Gee does it).

I didn't notice at the time - the warning happens when building a /client/ of Folks, not Folks itself.
Comment 4 Philip Withnall 2013-06-20 16:46:09 UTC
Review of attachment 247086 [details] [review]:

Looks good to me. I’d be fine with this being committed once you’ve added a comment. Don’t forget to add it to NEWS.

::: folks/folks-namespace.vala
@@ +19,3 @@
+ */
+
+[CCode (gir_namespace = "Folks", gir_version = "0.6")]

Might want to add a comment explaining what the purpose of the file is.
Comment 5 Travis Reitter 2013-06-24 16:14:55 UTC
    Include GIR version number in folks.vapi
    
    The fact that this was missing was causing build warnings for all clients
    
    Bug: https://bugzilla.gnome.org/show_bug.cgi?id=698890

 NEWS                       |  1 +
 folks/Makefile.am          |  1 +
 folks/folks-namespace.vala | 29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+)