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 770670 - udisks2 backend requires gudev so configure should check for that
udisks2 backend requires gudev so configure should check for that
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: udisks2 volume monitor
git master
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
: 707046 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-08-31 19:25 UTC by Michael Biebl
Modified: 2016-10-19 11:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] Disable udisks2 volume monitor if gudev is not available (928 bytes, patch)
2016-08-31 19:25 UTC, Michael Biebl
none Details | Review
Disable udisks2 volume monitor if gudev is not available v2 (2.78 KB, patch)
2016-09-01 13:56 UTC, Michael Biebl
committed Details | Review

Description Michael Biebl 2016-08-31 19:25:12 UTC
Currently it is possible run configure like this
./configure --enable-udisks2 --disable-gudev

This will enable the udisks2 backend and disable gudev support. As the udisks2 backend requires gudev, the resulting build will fail later.
./configure should disable the udisks2 backend if gudev support is not enabled.

Patch attached.
Comment 1 Michael Biebl 2016-08-31 19:25:51 UTC
Created attachment 334550 [details] [review]
[PATCH] Disable udisks2 volume monitor if gudev is not available
Comment 2 Ondrej Holy 2016-09-01 13:31:09 UTC
Review of attachment 334550 [details] [review]:

Thanks for the patch!

::: configure.ac
@@ +248,3 @@
 UDISKS2_REQUIRED=1.97
 
+if test "x$enable_udisks2" != "xno" -a "x$msg_gudev" = "xyes"; then

It not possible to enable udisks2 at all with your patch, because msg_gudev is not set at this point. You have to move the whole udisks2 section under the gudev section to be sure msg_gudev is set correctly in all cases :-)
Comment 3 Ondrej Holy 2016-09-01 13:33:01 UTC
*** Bug 707046 has been marked as a duplicate of this bug. ***
Comment 4 Michael Biebl 2016-09-01 13:56:04 UTC
Created attachment 334607 [details] [review]
Disable udisks2 volume monitor if gudev is not available v2
Comment 5 Michael Biebl 2016-09-01 13:56:36 UTC
Thanks for the review. I've moved the gudev check up, below the libudev check.
Comment 6 Ondrej Holy 2016-09-01 14:53:13 UTC
Review of attachment 334607 [details] [review]:

Thanks, it looks good though it is not applicable without the patch from Bug 770671...
Comment 7 Ondrej Holy 2016-10-19 11:20:12 UTC
Comment on attachment 334607 [details] [review]
Disable udisks2 volume monitor if gudev is not available v2

commit 4c4740f605edac7b55a417e244b7c1a7253ef6a2