GNOME Bugzilla – Bug 615603
liboobs includes a dbus header, but does not require dbus-1 in liboobs-1.pc
Last modified: 2010-04-13 16:07:39 UTC
oobls-object.h includes <dbus/dbus.h>, but the pkg-config file doesn't specify that dbus-1 is required. AFAICT the external API doesn't actually require the dbus header to be present, so the best solution would probably be to remove it.
Good catch, but we really require libdbus. The public API doesn't need it, so we can remove it from oobs-object.h, but we use it internally, so it should be marked as required in the pkg-config file.
Created attachment 158590 [details] [review] Require D-Bus and don't include it in headers We don't expose D-Bus in public API, so don't include dbus.h in our public headers. Add dbus-1 to our pkg-config file, since it's absolutely needed to build liboobs.
I think dbus-1 should be in Requires.private, not Requires.
Created attachment 158618 [details] [review] Bug 615603 - Require libdbus-1 and don't include dbus.h We don't expose D-Bus in public API, so don't include dbus.h in our public headers. Add dbus-1 to our pkg-config file as a private dependency, since it's absolutely needed to build liboobs.
Correct. I've pushed a fix as 0aeeeb9. Thanks for the report!