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 599110 - GConf fails to build without PolicyKit
GConf fails to build without PolicyKit
Status: RESOLVED WONTFIX
Product: GConf
Classification: Deprecated
Component: gconf
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: GConf Maintainers
GConf Maintainers
gnome[unmaintained]
: 596137 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-10-20 20:27 UTC by Yeti
Modified: 2018-08-17 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Yeti 2009-10-20 20:27:34 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".
Comment 1 André Klapper 2010-03-27 20:18:28 UTC
Also see bug 596137.
Comment 2 André Klapper 2012-08-27 10:32:18 UTC
*** Bug 596137 has been marked as a duplicate of this bug. ***
Comment 3 André Klapper 2018-08-17 13:56:47 UTC
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!