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 677428 - Zeitgeist isn't truly a soft dependency of Folks
Zeitgeist isn't truly a soft dependency of Folks
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: Telepathy backend
git master
Other Linux
: Normal major
: Unset
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-05 04:21 UTC by Travis Reitter
Modified: 2012-06-15 12:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to make libzeitgeist a hard dependency of folks. (3.02 KB, patch)
2012-06-12 19:00 UTC, Jeremy Whiting
needs-work Details | Review

Description Travis Reitter 2012-06-05 04:21:22 UTC
As a follow-up to bug #672709 (which I thought didn't need another re-opening), we didn't quite make Zeitgeist a soft dependency.

The "if HAVE_ZEITGEIST ... endif" construct we use in Tpf.PersonaStore ends up rolling Zeitgeist symbols into the generated C files, which we include in the release tarball by way of autotools' Vala integration (which forces generated C files bundling). So if you build the release tarball with --disable-zeitgeist, building fails on the missing zeitgeist.h header. I tried adding a dummy one to compile against, but of course it needs to contain the symbols referenced in our generated C code. Copying the header from Zeitgeist is just a recipe for disaster.

I tried making Vala a hard dependency for our releases, but there's no option short of removing the autotools integration. That may be our only option, actually. We would have to add a lot of valac and cc rules to our Makefile.am files.

If anyone can suggest a simpler option, I'd be very happy to hear it. But we can't ship another Folks release until we fix this.
Comment 1 Guillaume Desmottes 2012-06-05 07:04:45 UTC
Humm if it's *that* much of a problem, can't we just make Zeitgeist a hard dep? It's just a lib (not the datasource daemon) and I'd rather do that than hacking our build system to death.
Comment 2 Philip Withnall 2012-06-11 13:26:01 UTC
(In reply to comment #1)
> Humm if it's *that* much of a problem, can't we just make Zeitgeist a hard dep?
> It's just a lib (not the datasource daemon) and I'd rather do that than hacking
> our build system to death.

Agreed.
Comment 3 Jeremy Whiting 2012-06-12 19:00:18 UTC
Created attachment 216226 [details] [review]
patch to make libzeitgeist a hard dependency of folks.
Comment 4 Jeremy Whiting 2012-06-12 19:01:28 UTC
Philip, Guillaume,

Could one of you take a look at that patch?  It builds fine here, just would like a second set of eyes to make sure I didn't do something silly.  I'll commit it and finish the 0.7.1 release after I get a review.
Comment 5 Seif Lotfy 2012-06-12 20:19:27 UTC
(In reply to comment #4)
> Philip, Guillaume,
> 
> Could one of you take a look at that patch?  It builds fine here, just would
> like a second set of eyes to make sure I didn't do something silly.  I'll
> commit it and finish the 0.7.1 release after I get a review.


Looks good to me, but I am not a maintainer and also not the best reference for autofoo stuff :)
But for me it looks really good. Thanks
Comment 6 Travis Reitter 2012-06-12 20:59:24 UTC
Review of attachment 216226 [details] [review]:

Without actually testing, this looks fine to me.
Comment 7 Philip Withnall 2012-06-13 01:44:28 UTC
Review of attachment 216226 [details] [review]:

::: backends/telepathy/lib/Makefile.am
@@ +149,2 @@
 libfolks_telepathy_la_VALAFLAGS += --pkg zeitgeist-1.0
 libfolks_telepathy_la_VALAFLAGS += --define=HAVE_ZEITGEIST

This line can be removed and the “#if HAVE_ZEITGEIST” lines removed from tpf-persona.vala and tpf-persona-store.vala.
Comment 8 Jeremy Whiting 2012-06-13 17:32:34 UTC
Ok, after I do that it builds fine here.  However if I add --enable-docs doc generation fails with: http://pastebin.ca/2160907  It's like vala knows about Zeitgeist, but valadoc doesn't.
Comment 9 Jeremy Whiting 2012-06-13 17:57:21 UTC
nevermind, apparently I needed to add it to docs/Makefile.am also.
Comment 10 Jeremy Whiting 2012-06-14 20:00:49 UTC
Pushed to master, and will be part of the 0.7.1 release.