GConf-2.28.1

Introduction to GConf

The GConf package contains a configuration database system.

This package is known to build and work properly using an LFS-6.5 platform.

Package Information

Additional Downloads

GConf Dependencies

Required

ORBit2-2.14.19 and polkit-0.102

Recommended

Optional

OpenLDAP-2.4.23 and GTK-Doc-1.18

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/gconf

Installation of GConf

Install GConf by running the following commands:

patch -Np1 -i ../GConf-2.28.1-sysconfdir-1.patch &&
./configure --prefix=$(pkg-config --variable=prefix ORBit-2.0) \
            --sysconfdir=/etc/gnome/2.30.2 \
            --libexecdir=$(pkg-config \
                --variable=prefix ORBit-2.0)/lib/GConf \
            --mandir=$(pkg-config \
                --variable=prefix ORBit-2.0)/share/man &&
make

This package does not come with a test suite.

Now, as the root user:

make install &&
install -v -m755 -d /etc/gnome/2.30.2/gconf/gconf.xml.system

Still as the root user, configure D-Bus so that it can search for GNOME installed .conf files (This is assuming that /etc/dbus-1/system-local.conf does not exist yet. If it does, then you will need to merge in the changes). If $GNOME_PREFIX is not /usr, you should uncomment the “servicedir” line:

cat > /etc/dbus-1/system-local.conf << "EOF"
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Search for .conf files in /etc/gnome/2.30.2/dbus-1/system.d -->
  <includedir>/etc/gnome/2.30.2/dbus-1/system.d</includedir>

  <!-- Search for .service files in $GNOME_PREFIX/share/dbus-1/system-services -->
  <!-- <servicedir>$GNOME_PREFIX/share/dbus-1/system-services</servicedir> -->

</busconfig>
EOF

If $GNOME_PREFIX is not /usr, you also need to configure D-Bus so that it can search for GNOME installed “session.service files (This is assuming that /etc/dbus-1/session-local.conf does not exist yet. If it does, then you will need to merge in the changes). Additionally, if polkit is installed, create a symbolic link in /usr/share/polkit-1/actions to the “action” file installed by GConf. Issue the following commands as the root user:

cat > /etc/dbus-1/session-local.conf << "EOF"
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- Search for .service files in $GNOME_PREFIX/share/dbus-1/session-services -->
  <servicedir>$GNOME_PREFIX/share/dbus-1/session-services</servicedir>

</busconfig>
EOF

ln -s -v $GNOME_PREFIX/share/polkit-1/actions/org.gnome.gconf.defaults.policy \
         /usr/share/polkit-1/actions

Command Explanations

--prefix=$(pkg-config --variable=prefix ORBit-2.0): Setting the prefix using this parameter instead of with $GNOME_PREFIX will ensure that the prefix is consistent with the installation environment and the package will be installed in the correct location.

--sysconfdir=/etc/gnome/2.30.2: This parameter causes the GConf-2 configuration database to be built in /etc/gnome/2.30.2 instead of $GNOME_PREFIX/etc. This installation controls all future installations of GConf-2 schemas. If you change the location (which includes eliminating this parameter), it must be consistent for every subsequent package installation that updates the GConf-2 configuration database.

--libexecdir=$(pkg-config --variable=prefix ORBit-2.0)/lib/GConf: This parameter causes the libexec files to be installed in the preferred location of $GNOME_PREFIX/lib/GConf instead of $GNOME_PREFIX/libexec.

--mandir=$(pkg-config --variable=prefix ORBit-2.0)/share/man: This parameter causes the man.(X) files to be installed in $GNOME_PREFIX/share/man/man(X) instead of $GNOME_PREFIX/man/man(X).

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.

install -v -m755 -d /etc/gnome/2.30.2/gconf/gconf.xml.system: Creates a missing directory. Without this directory, gconf-sanity-check-2 will fail during GDM startup and login.

Contents

Installed Programs: gconf-merge-tree, gconftool-2, gconf-defaults-mechanism, gconf-sanity-check-2, and gconfd-2
Installed Libraries: libgconf-2.{so,a}, libgconfbackend-xml.{so,a}, and libgconfbackend-oldxml.{so,a}
Installed Directories: /etc/gnome/2.30.2/gconf/{2,gconf.xml.defaults,gconf.xml.mandatory, gconf.xml.system}, $GNOME_PREFIX/{include/gconf/2/gconf, lib/GConf/2,share/{gtk-doc/html/gconf,sgml/gconf}}

Short Descriptions

gconf-merge-tree

merges an xml filesystem hierarchy.

gconftool-2

is a command line tool for manipulating the GConf database.

libgconf-2.{so,a}

provide the functions necessary to maintain the configuration database.

Last updated on 2011-06-11 02:36:38 +0000