Bug 78512 - Introspection issues
Summary: Introspection issues
Status: RESOLVED INVALID
Alias: None
Product: accountsservice
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-10 01:36 UTC by Robert Roth
Modified: 2017-12-20 19:45 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Robert Roth 2014-05-10 01:36:21 UTC
I tried to use accountsservice from vala, but got an error "error: Package `accountsservice' not found in specified Vala API directories or GObject-Introspection GIR directories"

After checking, found the commit  [1] removing the VAPI file as it's not needed.

Asking around on #vala I got some help on how to generate a VAPI file for accountsservice, as 'vapigen --library accountsservice AccountsService-1.0.gir' didn't work because of the following error:

Virtual method `G.Resolver.lookup_service_async' conflicts with method of the same name
      <virtual-method name="lookup_service_async">
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Gio-2.0.gir:58270.7-58270.31: warning: Signal `G.Settings.change_event' conflicts with method of the same name
      <virtual-method name="change_event">
      ^^^^^^^^^^^^^^^^^^^^^^^^^
Gio-2.0.gir:77083.7-77087.24: error: `UnixSocketAddress' already contains a definition for `abstract'
Gio-2.0.gir:76929.7-76931.21: note: previous definition of `abstract' was here
Generation failed: 1 error(s), 2 warning(s)

The person helping me in the vala channel, suggested adding --pkg gio-2.0 to vapigen, and that did help to generate the VAPI. He also mentioned that this probably shouldn't be required, and the gir file seems broken, as it should contain a <package name="gio-2.0" /> element.

[1] http://cgit.freedesktop.org/accountsservice/commit/?id=17af4612e877c3a5c6bff67064d648f0eb2ea0cc
Comment 1 Robert Ancell 2017-12-20 19:45:28 UTC
Closing assuming this is out of date, please re-open if you're still using it like that.


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.