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 779878 - Make telepathy integration optional
Make telepathy integration optional
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 773438 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-03-10 22:06 UTC by Florian Müllner
Modified: 2017-03-13 16:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lookingGlass: Don't include telepathy import by default (1.11 KB, patch)
2017-03-10 22:06 UTC, Florian Müllner
committed Details | Review
telepathyClient: Gracefully handle missing telepathy deps (3.92 KB, patch)
2017-03-10 22:06 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2017-03-10 22:06:09 UTC
After bug 771721 removed our build time dependency, it's relatively easy to isolate the remaining usage and just disable chat integration when telepathy isn't available at runtime.
(There are some ugly bits in the patch, but I preferred keeping the handling in the telepathy component itself rather than making the components manager catch import errors and risk missing errors in non-optional components)
Comment 1 Florian Müllner 2017-03-10 22:06:18 UTC
Created attachment 347671 [details] [review]
lookingGlass: Don't include telepathy import by default

It's hardly a common include nowadays, and removing it keeps all
telepathy usage contained in the telepathyClient component.
Comment 2 Florian Müllner 2017-03-10 22:06:26 UTC
Created attachment 347672 [details] [review]
telepathyClient: Gracefully handle missing telepathy deps

Telepathy's role has been diminishing continuously over the last
couple of years, so while chat integration is a nice feature for
those who use it, it is hard to justify keeping it as a hard
dependency. To address this, split out the component from the
client so we can handle missing typelibs gracefully by not
providing any chat integration.
Comment 3 Rui Matos 2017-03-13 12:53:21 UTC
Review of attachment 347671 [details] [review]:

++
Comment 4 Rui Matos 2017-03-13 13:04:48 UTC
Review of attachment 347672 [details] [review]:

the ?: usage surprised me for a minute there but I think it's ok
Comment 5 Florian Müllner 2017-03-13 15:28:37 UTC
Attachment 347671 [details] pushed as 9a38011 - lookingGlass: Don't include telepathy import by default
Attachment 347672 [details] pushed as b4df747 - telepathyClient: Gracefully handle missing telepathy deps
Comment 6 Hussam Al-Tayeb 2017-03-13 16:22:03 UTC
*** Bug 773438 has been marked as a duplicate of this bug. ***