Bug in GARNOME 0.13.1 GConf Makefile (was Gconf won't let GNOME run!)



In "Gconf won't let GNOME run!", I wrote:

> > When I try to start GNOME, I get a little error
> > dialog
> > about xml:readonly:/etc/gconf/gconf.xml.mandatory
> > and
> > /opt/garnome/etc/gconf/2/path--and nothing else. I
> > close the dialog, and X logs out. 
[snip]
> I figured it out. If I had scrolled down the file
> /opt/garnome/etc/gconf/2/path, I would have found 
> the following lines:
> 
> xml:readonly:/etc/gconf/gconf.xml.mandatory
> xml:readonly:/etc/gconf/gconf.xml.defaults
> 
> Neither /etc/gconf/gconf.xml.mandatory nor
> /etc/gconf/gconf.xml.defaults exist on my machine,
> which is what gconf-sanity-check-2 was complaining
> about.

Maybe I didn't make this clear, but the problems I
mentioned above are due to a bug in GARNOME itself,
specifically the Makefile for GConf. The problem seems
to be in the following lines.

post-install:
        @echo " ==> Configuring cross-prefix GARNOME
compatibility..."
        @$(prefix)/bin/gconftool-2
--get-default-source >
$(sysconfdir)/gconf/schema-install-source
        @if test -f /etc/gconf/1/path ; then \
                grep gconf.xml /etc/gconf/1/path >>
$(sysconfdir)/gconf/2/path ; \
        else \
                echo
"xml:readonly:/etc/gconf/gconf.xml.mandatory" >>
$(sysconfdir)/gconf/2/path ; \
                echo
"xml:readonly:/etc/gconf/gconf.xml.defaults" >>
$(sysconfdir)/gconf/2/path ; \
        fi

I don't have /etc/gconf/1/path on my machine, so the
lines "xml:readonly:/etc/gconf/gconf.xml.mandatory"
and "xml:readonly:/etc/gconf/gconf.xml.defaults" get
appended to $(sysconfdir)/gconf/2/path, where for me
$sysconfdir is /opt/garnome/etc.

It occurs to me that the correct solution is *not* to
replace "xml:readonly:/etc/gconf/" with
"xml:readonly:$(sysconfig)/etc/gconf/", since the
lines
"xml:readonly:/opt/garnome/etc/gconf/gconf.xml.mandatory"
and
"xml:readonly:/opt/garnome/etc/gconf/gconf.xml.defaults"
were already in $(sysconfdir)/gconf/2/path. Replacing
"xml:readonly:/etc/gconf/" with
"xml:readonly:$(sysconfig)/etc/gconf/" would only put
those lines in $(sysconfdir)/gconf/2/path twice. The
entire "if" statement in the post-install can probably
be removed.

Anyhow, I'd say a GARNOME 0.13.1a release is due. The
above bug that I encountered is both easy to fix *and*
frustrating, since it flat out can keep GNOME from
even running.


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]