GNOME Bugzilla – Bug 599110
GConf fails to build without PolicyKit
Last modified: 2018-08-17 13:56:47 UTC
If PolicyKit (polkit-gobject-1 pkg-config package) is not available configure succeeds but the build then fails in defaults/ directory. The configure code HAVE_POLKIT=no AC_ARG_ENABLE(defaults_service, AS_HELP_STRING([--enable-defaults-service], [build the defaults DBus service @<:@default=auto@:>@]), , enable_defaults_service=auto) if test "x$enable_defaults_service" != "xno" ; then PKG_CHECK_MODULES(DEFAULTS, glib-2.0 gobject-2.0 dbus-1 dbus-glib-1 polkit-gobject-1, HAVE_POLKIT=yes, HAVE_POLKIT=no) if test "x$HAVE_POLKIT" = "xno"; then if test "x$enable_defaults_service" = "xyes" ; then AC_MSG_ERROR([[*** Could not find PolicyKit.]]) fi else enable_defaults_service=yes fi fi if test "x$enable_defaults_service" != "xno" ; then AC_DEFINE(ENABLE_DEFAULTS_SERVICE, 1, [enable defaults DBus service]) fi decides it should ENABLE_DEFAULTS_SERVICES even in the absence of polkit-gobject-devel. The reason is as follows: enable_defaults_service=auto # the default from AC_ARG_ENABLE PKG_CHECK_MODULES(DEFAULTS, ...) # fails due to missing polkit-gobject-1 HAVE_POLKIT=no # set as result test "x$HAVE_POLKIT" = "xno" # suceeds ### here still enable_defaults_services=auto test "x$enable_defaults_service" = "xyes" # fails, so no error printed test "x$enable_defaults_service" != "xno" # succeds, so we build in defaults/ The fix is to make sure enable_defaults_service is either "yes" or "no" after the PKG_CHECK_MODULES() check, not "auto".
Also see bug 596137.
*** Bug 596137 has been marked as a duplicate of this bug. ***
GConf has been deprecated since 2011. GConf is not under active development anymore. Its codebase has been archived: https://gitlab.gnome.org/Archive/gconf/commits/master dconf and gsettings are its successors. See https://developer.gnome.org/gio/stable/ch34.html and https://developer.gnome.org/GSettings/ for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of dconf/gsettings. Thanks!