GConf+DBus in jhbuild

View: New views
8 Messages — Rating Filter:   Alert me  

GConf+DBus in jhbuild

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Apparently GConf has switcged to using D-Bus, which explains why I'm
getting errors from applications running in "jhbuild shell".

Is there a simple way to make my jhbuild environment use the D-Bus and
associated service files from my jhbuild-built /opt/gnome prefix? I
imagine that it would be difficult given that old versions of D-Bus (and
GConf) are already running from the regular prefix.

If there's an easy way, we should add it to the sample jhbuild .rc file.

--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Ray Strode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Tue, Jun 24, 2008 at 10:14 AM, Murray Cumming <murrayc@...> wrote:
> Apparently GConf has switcged to using D-Bus, which explains why I'm
> getting errors from applications running in "jhbuild shell".
>
> Is there a simple way to make my jhbuild environment use the D-Bus and
> associated service files from my jhbuild-built /opt/gnome prefix? I
> imagine that it would be difficult given that old versions of D-Bus (and
> GConf) are already running from the regular prefix.
Does your dbus session.conf have

 <standard_session_servicedirs />

in it?  If so, then it should look in $XDG_DATA_DIRS/dbus-1/services.
XDG_DATA_DIRS should already be set up to include /opt/gnome/share

Basically, I'm confused why this isn't working for you out of the box.

--Ray
_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2008-06-25 at 23:55 -0400, Ray Strode wrote:

> Hi,
>
> On Tue, Jun 24, 2008 at 10:14 AM, Murray Cumming <murrayc@...> wrote:
> > Apparently GConf has switcged to using D-Bus, which explains why I'm
> > getting errors from applications running in "jhbuild shell".
> >
> > Is there a simple way to make my jhbuild environment use the D-Bus and
> > associated service files from my jhbuild-built /opt/gnome prefix? I
> > imagine that it would be difficult given that old versions of D-Bus (and
> > GConf) are already running from the regular prefix.
> Does your dbus session.conf have
>
>  <standard_session_servicedirs />

Yes, I have that in both
  /etc/dbus-1/session.conf
and
  /opt/gnome220/etc/dbus-1/session.conf
(actually a gnome2.23 build)

> in it?  If so, then it should look in $XDG_DATA_DIRS/dbus-1/services.
> XDG_DATA_DIRS should already be set up to include /opt/gnome/share

Yes, it seems to be correct in jhbuild:

murrayc@murrayc-desktop:~$ echo $XDG_DATA_DIRS
/usr/local/share/:/usr/share/:/usr/share/gdm/

murrayc@murrayc-desktop:~$ jhbuild shell
murrayc@murrayc-desktop:~$ echo $XDG_DATA_DIRS
/opt/gnome220/share:/usr/local/share/:/usr/share/:/usr/share/gdm/

> Basically, I'm confused why this isn't working for you out of the box.

--
murrayc@...
www.murrayc.com
www.openismus.com

_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Ray Strode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

>> On Tue, Jun 24, 2008 at 10:14 AM, Murray Cumming <murrayc@...> wrote:
>> > Apparently GConf has switcged to using D-Bus, which explains why I'm
>> > getting errors from applications running in "jhbuild shell".
>> >
>> > Is there a simple way to make my jhbuild environment use the D-Bus and
>> > associated service files from my jhbuild-built /opt/gnome prefix? I
>> > imagine that it would be difficult given that old versions of D-Bus (and
>> > GConf) are already running from the regular prefix.
>> Does your dbus session.conf have
>>
>>  <standard_session_servicedirs />
>
> Yes, I have that in both
>   /etc/dbus-1/session.conf
> and
>  /opt/gnome220/etc/dbus-1/session.conf
> (actually a gnome2.23 build)
>
>> in it?  If so, then it should look in $XDG_DATA_DIRS/dbus-1/services.
>> XDG_DATA_DIRS should already be set up to include /opt/gnome/share
>
> Yes, it seems to be correct in jhbuild:
>
> murrayc@murrayc-desktop:~$ echo $XDG_DATA_DIRS
> /usr/local/share/:/usr/share/:/usr/share/gdm/
>
> murrayc@murrayc-desktop:~$ jhbuild shell
> murrayc@murrayc-desktop:~$ echo $XDG_DATA_DIRS
> /opt/gnome220/share:/usr/local/share/:/usr/share/:/usr/share/gdm/

Just so I understand, you are

1) logging in with a gnome 2.22 desktop
2) typing jhbuild shell
3) trying to run gnome 2.24 programs from the shell and getting errors

Is that correct?  What error messages are you getting?

--Ray
_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2008-06-30 at 13:13 -0400, Ray Strode wrote:

> Hi,
>
> >> On Tue, Jun 24, 2008 at 10:14 AM, Murray Cumming <murrayc@...> wrote:
> >> > Apparently GConf has switcged to using D-Bus, which explains why I'm
> >> > getting errors from applications running in "jhbuild shell".
> >> >
> >> > Is there a simple way to make my jhbuild environment use the D-Bus and
> >> > associated service files from my jhbuild-built /opt/gnome prefix? I
> >> > imagine that it would be difficult given that old versions of D-Bus (and
> >> > GConf) are already running from the regular prefix.
> >> Does your dbus session.conf have
> >>
> >>  <standard_session_servicedirs />
> >
> > Yes, I have that in both
> >   /etc/dbus-1/session.conf
> > and
> >  /opt/gnome220/etc/dbus-1/session.conf
> > (actually a gnome2.23 build)
> >
> >> in it?  If so, then it should look in $XDG_DATA_DIRS/dbus-1/services.
> >> XDG_DATA_DIRS should already be set up to include /opt/gnome/share
> >
> > Yes, it seems to be correct in jhbuild:
> >
> > murrayc@murrayc-desktop:~$ echo $XDG_DATA_DIRS
> > /usr/local/share/:/usr/share/:/usr/share/gdm/
> >
> > murrayc@murrayc-desktop:~$ jhbuild shell
> > murrayc@murrayc-desktop:~$ echo $XDG_DATA_DIRS
> > /opt/gnome220/share:/usr/local/share/:/usr/share/:/usr/share/gdm/
>
> Just so I understand, you are
>
> 1) logging in with a gnome 2.22 desktop
Yes. In Ubuntu Hardy.

> 2) typing jhbuild shell

Yes.

> 3) trying to run gnome 2.24 programs from the shell and getting errors
>
> Is that correct?

Yes.

> What error messages are you getting?


For instance, gedit says:

"
An error occurred while loading or saving configuration information for
Text Editor. Some of your configuration settings may not work properly.
"

Pressing the Details button gives me this repeated several times:

"
Failed to contact configuration server; some possible causes are that
you need to enable TCP/IP networking for ORBit, or you have stale NFS
locks due to a system crash. See http://www.gnome.org/projects/gconf/
for information. (Details -  1: Could not send message to gconf daemon:
The name org.gnome.GConf was not provided by any .service files)
"

I now have this on my laptop as well as my desktop PC so I really think
it must be a common problem. My .jhbuildrc (attached) is very standard,
I believe.

ps shows that the jhbuild gconfd-2 is running :

murrayc@murrayc-x61:~$ ps -ef | grep "gconfd"
murrayc   5755     1  0 08:36 ?
00:00:00 /usr/lib/libgconf2-4/gconfd-2 4
murrayc   6962  6482  0 08:43 pts/0    00:00:00 grep gconfd

--
Murray Cumming
murrayc@...
www.murrayc.com
www.openismus.com


# -*- mode: python -*-

# edit this file to match your settings and copy it to ~/.jhbuildrc

# if you have a cvs account, uncomment this line
#repos['gnome.org'] = 'svn+ssh://murrayc@.../svn'
repos['svn.gnome.org'] = 'svn+ssh://murrayc@.../svn/'
repos['svn.gnomemm'] = 'svn+ssh://murrayc@.../svn/gnomemm/'
repos['gstreamer.net'] = ':ext:murrayc@...:/cvsroot/gstreamer'
repos['bakery.sf.net'] = ':ext:murrayc@...:/cvsroot/bakery'
repos['libxmlplusplus.sf.net'] = ':ext:murrayc@...:/cvsroot/libxmlplusplus'
repos['regexxer.sf.net'] = ':ext:murrayc@...:/cvsroot/regexxer'
repos['dbus.freedesktop.org'] = ':ext:murrayc@...:/cvs/dbus'
repos['cairo.freedesktop.org'] = ':ext:murrayc@...:/cvs/cairo'
repos['svn.gna.org'] = 'svn+ssh://murrayc@.../svn/'



# what module set should be used.  The default at the moment is 'gnome26',
# but it can be any of the files in the modulesets directory, or even
# the URL of a module set file on a web server.
moduleset = 'gnome-2.24'

# A list of the modules to build.  Defaults to the Gnome Desktop and
# developer platform.
modules = [ 'meta-gnome-desktop' ]

# what directory should the source be checked out to?
checkoutroot = os.path.join(os.environ['HOME'], 'checkouts', 'gnome224')

# the prefix to configure/install modules to (must have write access)
prefix = '/opt/gnome224'

# if you do not want to use system-installed libraries for your builds, comment
# out the lines below
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'lib', 'pkgconfig'))
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))

# extra arguments to pass to all autogen.sh scripts
# to speed up builds of gnome2, try '--disable-static --disable-gtk-doc'
#autogenargs=''

# On SMP systems you may use something like this to improve compilation time:
# be aware that not all modules compile correctly with make -j2
#make_args = '-j2'

# set CFLAGS:
os.environ['CFLAGS'] = '-g '

# a alternative install program to use.
# The included install-check program won't update timestamps if the
# header hasn't changed
os.environ['INSTALL'] = os.path.expanduser('~/bin/install-check')

#module_autogenargs['howl'] = autogenargs.replace('--disable-static', '')

_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Ray Strode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

> Failed to contact configuration server; some possible causes are that
> you need to enable TCP/IP networking for ORBit, or you have stale NFS
> locks due to a system crash. See http://www.gnome.org/projects/gconf/
> for information. (Details -  1: Could not send message to gconf daemon:
> The name org.gnome.GConf was not provided by any .service files)
> "

I don't know if jhbuild shell ensures a fresh dbus session bus gets
started or not.

If not, that could cause your problem.

What if you do,

jhbuild shell
dbus-launch --exit-with-session bash

and then type your commands?

--Ray
_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Murray Cumming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, 2008-07-10 at 17:15 -0400, Ray Strode wrote:

> Hi,
>
> > Failed to contact configuration server; some possible causes are that
> > you need to enable TCP/IP networking for ORBit, or you have stale NFS
> > locks due to a system crash. See http://www.gnome.org/projects/gconf/
> > for information. (Details -  1: Could not send message to gconf daemon:
> > The name org.gnome.GConf was not provided by any .service files)
> > "
>
> I don't know if jhbuild shell ensures a fresh dbus session bus gets
> started or not.
>
> If not, that could cause your problem.
>
> What if you do,
>
> jhbuild shell
> dbus-launch --exit-with-session bash
>
> and then type your commands?

Yes, that fixes it. Thanks for the useful workaround.

I wonder what would be the appropriate way to fix this properly in
jhbuild. Presumably the regular non-jhbuild stuff needs to use its
regular D-Bus (and regular GConf) processes, and jhbuild should use its
own, without the two being confused.

--
Murray Cumming
murrayc@...
www.murrayc.com
www.openismus.com


_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list

Re: GConf+DBus in jhbuild

by Ray Strode :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
> I wonder what would be the appropriate way to fix this properly in
> jhbuild. Presumably the regular non-jhbuild stuff needs to use its
> regular D-Bus (and regular GConf) processes, and jhbuild should use its
> own, without the two being confused.
I'd say jhbuild shell should probably just do the dbus-launch itself,
and jhbuild run (that's what's used to launch an entire session right?
or am I misremembering?) should rely on the distribution to start a
session bus.

--Ray
_______________________________________________
gconf-list mailing list
gconf-list@...
http://mail.gnome.org/mailman/listinfo/gconf-list