GNOME Bugzilla – Bug 744250
libnm: do not use deprecated Gtk-Doc tags for GObject introspection
Last modified: 2018-03-26 12:28:02 UTC
Top level Gtk-Doc tags are deprecated. Use identifier specific annotations instead. https://mail.gnome.org/archives/commits-list/2013-October/msg03220.html https://wiki.gnome.org/action/show/Projects/GObjectIntrospection/Annotations
See branch jk/libnm-annotation-fix
I tried this at one point, but the problem is that older versions of gobject-introspection will error out if they see the new-style annotations. So we can't switch to the new style until we no longer support the old g-i. (IIRC, GNOME 3.10 vs GNOME 3.12 is when the switch happened. Not sure of the corresponding gobject-introspection versions.) Possibly the best fix is to get g-i to add an option to not warn... (Actually, we could just disable g-i warnings entirely in normal builds, and add a note to the release process wiki page reminding you to re-enable them and read through them before releasing a new tarball.)
Hmm, according to [1] the new annotations are in place for quite some time. "virtual" since v0.6.3 "type" since v0.6.2 When I check e.g. koji for Fedora builds, even Fedora 13 from 2009 has 0.6.7 (gobject-introspection-0.6.7-1.fc13 mclasen 2009-12-22) [1] https://wiki.gnome.org/action/show/Projects/GObjectIntrospection/Annotations
It's not the specific tags, it's the syntax; older gobject-introspection will error out if you use those tags in the header line with g-i syntax, rather than at the bottom with gtk-doc syntax. (At least, it did when I tried...)
Ok, I tried Fedora 18 and it doesn't parse the new syntax. So I dug further and found the commit [1] and a bug where the discussion took place [2]. The commit is from 2013-07-25 and it is in gi from v1.39. Unfortunately, v1.39 is only present in Fedora 21. [1] https://git.gnome.org/browse/gobject-introspection/commit/?id=b6954536f32352c0c29fe5a9a73de1018559a9c5 [2] https://bugzilla.gnome.org/show_bug.cgi?id=676133
seems like this is on hold until we bump the requirements. Let's attach the patches to this BZ (for later reference) and unblock nm-review/nm-patch.
Created attachment 296995 [details] [review] [patch] fix deprecated annotations Attaching the patches from jk/libnm-annotation-fix.
fixed: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=fc813d1c9e40ead0d0ae723bb3393b6af094ea9c