Build changes for 0.61

Daniel P. Berrange dan at berrange.com
Tue Jun 6 08:09:23 PDT 2006


For the session.conf we should let the kernel auto-allocate us a port to
listen on, so that multiple concurrent user sessions can run. We don't need
to know the port ahead of time, since its exposed to clients via the 
DBUS_SESSION_BUS_ADDRESS environment variable anyway.

Regards,
Dan.

On Tue, Jun 06, 2006 at 09:46:28AM -0500, Matt Hoosier wrote:
> Attached.
> 
> On 6/5/06, John (J5) Palmieri <johnp at redhat.com> wrote:
> >On Mon, 2006-06-05 at 20:59 -0500, Matt Hoosier wrote:
> >> I've run into the same problem in a Scratchbox non-x86 environment.
> >> The trouble seems to be an incomplete implementation of UNIX sockets
> >> (the default mode in which the bus fires up) in QEMU (used for CPU
> >> transparency).
> >>
> >> Patching the system bus's service configuration file ("system.xml"
> >> perhaps? I don't have access to the source) to use TCP sockets instead
> >> allowed my build to complete. You can always switch back to UNIX
> >> sockets when deploying the build binaries onto the target system.
> >
> >If that works then I don't see any reason for not patching in a QEMU
> >environment.  It involves patching run-with-tmp-session-bus.conf to
> >change the <listen></listen> tag to point to tcp socket instead of a
> >unix one. I've never used a tcp socket with dbus so I am not sure of the
> >format.  Matt, can you post an example?  Thanks.
> >
> >--
> >John (J5) Palmieri <johnp at redhat.com>
> >
> >

> # Licensed under the same terms as the dbus package
> diff -urN dbus-0.61.orig/bus/session.conf.in dbus-0.61/bus/session.conf.in
> --- dbus-0.61.orig/bus/session.conf.in	2005-08-29 15:19:19.000000000 -0500
> +++ dbus-0.61/bus/session.conf.in	2006-03-20 07:53:12.000000000 -0600
> @@ -8,7 +8,10 @@
>    <!-- Our well-known bus type, don't change this -->
>    <type>session</type>
>  
> -  <listen>unix:tmpdir=@DBUS_SESSION_SOCKET_DIR@</listen>
> +  <!-- Listen on TCP because UNIX sockets are mis-handled in QEMU -->
> +  <!-- <listen>unix:tmpdir=@DBUS_SESSION_SOCKET_DIR@</listen> -->
> +
> +  <listen>tcp:address=127.0.0.1,port=9091</listen>
>  
>    <servicedir>@EXPANDED_DATADIR@/dbus-1/services</servicedir>
>  
> diff -urN dbus-0.61.orig/bus/system.conf.in dbus-0.61/bus/system.conf.in
> --- dbus-0.61.orig/bus/system.conf.in	2005-07-15 12:28:35.000000000 -0500
> +++ dbus-0.61/bus/system.conf.in	2006-03-20 07:54:07.000000000 -0600
> @@ -30,7 +30,11 @@
>         means use abstract namespace, don't really create filesystem 
>         file; only Linux supports this. Use path=/whatever on other 
>         systems.) -->
> -  <listen>@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@</listen>
> +
> +  <!-- Listen on TCP because UNIX sockets are mis-handled in QEMU -->
> +  <!-- <listen>@DBUS_SYSTEM_BUS_DEFAULT_ADDRESS@</listen> -->
> +
> +  <listen>tcp:address=127.0.0.1,port=9090</listen>
>  
>    <policy context="default">
>      <!-- Deny everything then punch holes -->

> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus


-- 
|=-            GPG key: http://www.berrange.com/~dan/gpgkey.txt       -=|
|=-       Perl modules: http://search.cpan.org/~danberr/              -=|
|=-           Projects: http://freshmeat.net/~danielpb/               -=|
|=-   berrange at redhat.com  -  Daniel Berrange  -  dan at berrange.com    -=|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060606/50134620/attachment.pgp


More information about the dbus mailing list