gconf schema installation, $DESTDIR
David Hampton
hampton-gnucash at rainbolthampton.net
Sat Mar 4 11:36:12 EST 2006
On Sat, 2006-03-04 at 08:16 -0500, Josh Sled wrote:
> David, I'm a bit unclear on how this should work, but I'm hoping we can
> find a solution before 1.9.2. With respect to the schema installation
> done in the Makefiles, it seems like we should make the gconftool-2
> calls conditional on GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL, and insteadd
> call them in the package-management's "post" hook. Or does gconftool-2
> check for the value of GCONF_DISABLE[...]?
Apparently gconftool-2 does check. The install step when building an
rpm does:
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
(fancy make install command here)
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
This results in only the schema files being installed, without the
default key/value pairs also being created.
> Also, we should make the mkdir calls prefix'ed with DESTDIR, as in:
>
> -mkdir -p $(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY)
Sounds reasonable.
> Also, what's the policy for uninstalling schema? Is just removing the
> schema file enough? I don't see any --makefile-uninstall-rule in
> gconftool-2.
You should remove both the schema and the default keys/value pairs
installed by the makefile-install-rule. The makefile-uninstall-rule
does exist and does this.
David
More information about the gnucash-devel
mailing list