Bug 30111 - update for g-ir-scanner 0.9.5
Summary: update for g-ir-scanner 0.9.5
Status: RESOLVED FIXED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: tp-glib (show other bugs)
Version: git master
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: Telepathy bugs list
URL: http://git.collabora.co.uk/?p=user/sm...
Whiteboard:
Keywords: patch
: 30133 (view as bug list)
Depends on:
Blocks: 30161
  Show dependency treegraph
 
Reported: 2010-09-09 23:00 UTC by Danielle Madeley
Modified: 2010-09-13 03:51 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Danielle Madeley 2010-09-09 23:00:21 UTC
g-ir-scanner has been changed. Some small updates are needed to tp-glib.
Comment 1 Danielle Madeley 2010-09-09 23:03:12 UTC
http://git.collabora.co.uk/?p=user/danni/telepathy-glib.git;a=shortlog;h=refs/heads/g-i-fixes

g-ir-scanner can now give warnings. The second patch fixes up some of these warnings.
Comment 2 Simon McVittie 2010-09-10 03:40:37 UTC
> -       _gen/telepathy-interfaces.h

Why?

> +       $(srcdir)/connection-handles.c $(srcdir)/connection-contact-info.c \

Have you checked that everything in connection-contact-info.c has appropriate g-i?

Other than that, looks good.
Comment 3 Simon McVittie 2010-09-10 03:50:25 UTC
> +GOBJECT_INTROSPECTION_CHECK([0.9.5])

I hope this is excessive: no distribution tracked by whohas(1), including Ubuntu and Fedora, has newer than 0.9.3 at the moment (and Debian 6 will have 0.6.14).

Given that g-i appears to be a hard dependency, I'm unhappy about bumping the version to one considerably newer than what's in distributions.

It would be ideal if we could keep compatibility with both 0.6.14 and 0.9.5 (if the only difference is that you pass different command-line options, that doesn't look like an insurmountable problem).

If we really can't be compatible with 0.6.14 at all, we should make g-i optional.
Comment 4 Danielle Madeley 2010-09-12 21:48:21 UTC
(In reply to comment #2)
> > -       _gen/telepathy-interfaces.h
> 
> Why?

It's being included by interfaces.h and seems to break the new scanner to have the file scanned twice. It's worth noting that the new scanner seems to ignore string #defines at the moment.

> > +       $(srcdir)/connection-handles.c $(srcdir)/connection-contact-info.c \
> 
> Have you checked that everything in connection-contact-info.c has appropriate
> g-i?

Yeah, it looks annotated, but it was left out of the scan.
Comment 5 Danielle Madeley 2010-09-13 00:28:36 UTC
(In reply to comment #3)
> > +GOBJECT_INTROSPECTION_CHECK([0.9.5])
> 
> I hope this is excessive: no distribution tracked by whohas(1), including
> Ubuntu and Fedora, has newer than 0.9.3 at the moment (and Debian 6 will have
> 0.6.14).

It probably is excessive. I'm having trouble working out what the precise version required is. They don't believe in release tagging :-(

> Given that g-i appears to be a hard dependency, I'm unhappy about bumping the
> version to one considerably newer than what's in distributions.

Should we perhaps be using GOBJECT_INTROSPECTION_REQUIRE() then?

> It would be ideal if we could keep compatibility with both 0.6.14 and 0.9.5 (if
> the only difference is that you pass different command-line options, that
> doesn't look like an insurmountable problem).

This seemed easy enough. I have added an (untested on 0.6.14) patch that should allow us to use either version, that we can drop at some point in the future.
Comment 6 Simon McVittie 2010-09-13 02:36:03 UTC
*** Bug 30133 has been marked as a duplicate of this bug. ***
Comment 7 Simon McVittie 2010-09-13 02:51:28 UTC
Stable branch blocker, since it causes FTBFS with newer g-i.
Comment 8 Tomeu Vizoso 2010-09-13 02:55:17 UTC
Note that --strip-prefix has been forward-ported for compatibility reasons:

http://git.gnome.org/browse/gobject-introspection/commit/?id=920512de3fb9bfefffadb454308d66eca9c9ebd4
Comment 9 Simon McVittie 2010-09-13 03:43:27 UTC
Stealing this to make sure it's in 0.12; see my g-i-fixes branch.

(In reply to comment #5)
> > Given that g-i appears to be a hard dependency

On closer inspection, it isn't, leading to Bug #30134 (which my branch also fixes). 

> I have added an (untested on 0.6.14) patch

Works for me (I'm running 0.6.14 on Debian).

I'd prefer it if you combined the command-line arguments for the two cases as much as possible, though; my branch does so.
Comment 10 Simon McVittie 2010-09-13 03:51:06 UTC
Fixed in git for 0.11.15


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.