error during install with 2.0.2

Rauch Christian info at rauch-webdesign.de
Mon Oct 9 09:22:30 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> None that i know of, but this doesn't have to say anything ;)
> I'll ask on opensuse-packaging if there is a (preferred?) way
> to do this.

This is the answer I got on opensuse-packaging from Stanislav Brabec
<sbrabec at suse.cz>

Stanislav Brabec schrieb:
> Rauch Christian wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hello List,
>> today I packaged the newly released Gnucash 2.0.2, but it failed this
>> time, whereas 2.0.1 worked just fine.
>>
>> The following error caused the build (or better make install) to stop:
>>
>>> mkdir -p /var/tmp/gnucash-compiler/etc/gconf/gconf.xml.defaults
>>> GCONF_CONFIG_SOURCE=xml::/etc/gconf/gconf.xml.defaults
>>> /opt/gnome/bin/gconftool-2 --makefile-install-rule
>>> apps_gnucash_history.schemas
>>> Failed to load source "xml::/etc/gconf/gconf.xml.defaults": Failed:
>>> Could not make directory `/etc/gconf/gconf.xml.defaults': No such file
>>> or directory
>> After asking back on gnucash-devel, this issue could be resolved by
>> adding the following line just before
>> "%__make install DESTDIR=%{buildroot}"
>>
>>> export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
>
> Or better configure with --disable-schemas-install
>
>> According to http://www.gnome.org/projects/gconf/ (Section Application
>> developer information), this is known and they tell a workaround there.
>>
>> Is this the established way to workaround this or is there a "suse way"
>> to do this?
>
> Yes:
>
> 1)
> Never install gconf database to build root. Use
> --disable-schemas-install or GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1.
>
> 2) Use %post
>
> %post
> export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2
- --get-default-source`
> opt/gnome/bin/gconftool-2 --makefile-install-rule
etc/opt/gnome/gconf/schemas/foo.schemas >/dev/null
> (one line per each schemas file)
>
> 3) Don't use %postun. RPM cannot do it correctly:
> http://bugzilla.gnome.org/show_bug.cgi?id=306924
>
> 4) In file list, never use *.schemas
> /etc/opt/gnome/gconf/schemas/foo.schemas
> (one line per each schemas file)
> It is cosmetic, but prevents upgrading with missing lines in %post.

I'll now package the new version according to these instructions and
upload them. so packages for Gnucash 2.0.2 should be available by
tomorrow on ftp.gwdg.de.

Thanks a lot for all the help and thanks for all the work you all are
doing here!

Rauch Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD4DBQFFKk0WayhvFxrDZlkRAlyAAJ9JgigWiQw/zGSFBlOvc3eQMYk6LACWOsVX
auOXnxTweGyKv7vIBZGOSg==
=XnDG
-----END PGP SIGNATURE-----


More information about the gnucash-devel mailing list