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 750099 - Remove unnecessary dependencies from client libs
Remove unnecessary dependencies from client libs
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: build
git master
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2015-05-29 11:59 UTC by Ondrej Holy
Modified: 2015-06-03 11:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
metadata: Get tree from udev via dbus (12.81 KB, patch)
2015-05-29 12:03 UTC, Ondrej Holy
none Details | Review
metadata: Get tree from udev via dbus (13.63 KB, patch)
2015-06-02 11:47 UTC, Ondrej Holy
committed Details | Review

Description Ondrej Holy 2015-05-29 11:59:51 UTC
GVfs has a lot of low-level dependencies. We want to split gvfs package on client and daemon part due to app sandboxing:
https://wiki.gnome.org/Projects/SandboxedApps

We want to have only the client part of GVfs in the runtime and we don't want unnecessary dependencies there. Thus we need to remove e.g. libbluray and libudev dependencies from libgvfsdbus.
Comment 1 Ondrej Holy 2015-05-29 12:00:23 UTC
I've already removed libbluray dependency by the commit 95bf384.
Comment 2 Ondrej Holy 2015-05-29 12:03:24 UTC
Created attachment 304241 [details] [review]
metadata: Get tree from udev via dbus
Comment 3 Alexander Larsson 2015-05-29 12:26:55 UTC
Review of attachment 304241 [details] [review]:

Looks good otherwise

::: metadata/dbus-interface.xml
@@ +41,3 @@
       <arg type='ay' name='dest_path' direction='in'/>
     </method>
+    <method name="GetTreeFromUdev">

Don't use Udev in the name (its an implementation detail).
GetTreeFromDevice.

::: metadata/metatree.c
@@ +169,3 @@
+  GVfsMetadata *proxy;
+
+  G_LOCK (metadata_proxy);

I think this should be a g_once_init() thing.
If we fail to create a proxy we should never try again, as it will be a slow sync call.
Comment 4 Ondrej Holy 2015-06-02 11:47:03 UTC
Created attachment 304425 [details] [review]
metadata: Get tree from udev via dbus

So g_once is used in meta_tree_get_metadata_proxy now, method name is changed and it is also fixed the case, when the result is NULL.
Comment 5 Alexander Larsson 2015-06-02 14:25:06 UTC
Review of attachment 304425 [details] [review]:

lgtm
Comment 6 Ondrej Holy 2015-06-02 14:43:34 UTC
Comment on attachment 304425 [details] [review]
metadata: Get tree from udev via dbus

commit b78cc85d2dda10e5488cf23cb63008ca339836dc