<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2261</bug_id>
          
          <creation_ts>2012-04-08 16:04:44 +0000</creation_ts>
          <short_desc>dbus-launch should be included in main dbus package</short_desc>
          <delta_ts>2012-09-25 11:29:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f8d40ab395ffb8ed12731e318354fb3d30447e84</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="tf">tf+bugs.yocto</reporter>
          <assigned_to name="Radu Moisan">radu.moisan</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20040</commentid>
    <comment_count>0</comment_count>
    <who name="tf">tf+bugs.yocto</who>
    <bug_when>2012-04-08 16:04:44 +0000</bug_when>
    <thetext>The dbus recipe packages the dbus-launch into a dbus-x11 package, which is only created if the distro feature &apos;x11&apos; is selected. I think this is left over from some older version of dbus, AFAICT, in 1.4 dbus-launch does not require x11, only its autolaunch feature does, which is not enabled when building without x11 (and can be explicitly disabled with --disable-x11-autolaunch ).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20256</commentid>
    <comment_count>1</comment_count>
    <who name="Shane Wang">shane.wang</who>
    <bug_when>2012-04-12 17:29:51 +0000</bug_when>
    <thetext>Saul, can you have another guy to help to look at this? Many many thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20437</commentid>
    <comment_count>2</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-04-16 08:33:55 +0000</bug_when>
    <thetext>We did have a commit 8dc48993f33a3f656a8f980f5c0c048b47bce9cf that splits dbus-launch from the main dbus package.

In current dbus configuration, we don&apos;t add the parameter &quot;--disable-x11-autolaunch&quot;, therefore dbus-launch should still depends on X, right?

If this is correct, we couldn&apos;t make the dbus package RDEPENDS on libx11 package, otherwise, dbus will be un-usable in Non-X environment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20446</commentid>
    <comment_count>3</comment_count>
    <who name="tf">tf+bugs.yocto</who>
    <bug_when>2012-04-16 14:39:50 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; In current dbus configuration, we don&apos;t add the parameter
&gt; &quot;--disable-x11-autolaunch&quot;, therefore dbus-launch should still depends on X,
&gt; right?

I do not think this is necessary; AFAIK, the x11-autolaunch feature of dbus-launch is configured automatically (by the configure script) based on whether X is available or not.

&gt; If this is correct, we couldn&apos;t make the dbus package RDEPENDS on libx11
&gt; package, otherwise, dbus will be un-usable in Non-X environment.

With dbus-launch in dbux-x11, dbus is not very usable on non-X image either, because you can&apos;t start a dbus session without dbus-launch. If it is not feasible to include dbus-launch in the main package, then perhaps there needs to be dbus-nox package that includes dbus-launch built without the X dependency?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20449</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-04-16 15:22:33 +0000</bug_when>
    <thetext>Here&apos;s my suggestion:

1) remove the --with-x/--without-x configure arguments. If you want to force no-discovery for native builds the correct argument is --disable-x11-autolaunch.  This ensures that DBus looks at the build environment to determine whether to enable X11 bus discovery or not.

2) make the virtual/libx11 DEPENDS conditional based on the x11 distro feature.  This makes the build dependencies reflect the feature list.

3) remove dbus-x11, meaning that dbus-launch with its potential X11 dependency is now back in dbus where is belongs.

4) Potentially make dbus provide dbus-x11, for compatibility.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20615</commentid>
    <comment_count>5</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-04-18 05:42:48 +0000</bug_when>
    <thetext>What about moving this bug to 1.3 cycle? I think it doesn&apos;t impact current functionality severely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23486</commentid>
    <comment_count>6</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-07-25 13:52:43 +0000</bug_when>
    <thetext>submitted patch, waiting for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24001</commentid>
    <comment_count>7</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2012-08-14 06:10:21 +0000</bug_when>
    <thetext>merged into master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25612</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-09-24 15:55:07 +0000</bug_when>
    <thetext>     Bitbaked a core-image-base on latest master commit (e1c1ee19e04eca1ffd09b49104a7b49e89c74d12); dbus-launch is present and seems to work, showing DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID when executed from shell with no argument. 

     As described, this is a non-x11 build. Does this test suffice in order to set this ti Verified?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25613</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-09-24 16:00:43 +0000</bug_when>
    <thetext>The test case for this is that the binary &quot;dbus-launch&quot; is in the dbus package, and not the dbus-x11 package.

(the huge debate around when and how to enable/disable x11 was a side-issue)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25673</commentid>
    <comment_count>10</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-09-25 11:29:10 +0000</bug_when>
    <thetext>      I see the required changes made to the dbus recipe: 

OLDPKGNAME = &quot;dbus-x11&quot;
RPROVIDES_${PN} = &quot;${OLDPKGNAME}&quot;
RREPLACES_${PN} += &quot;${OLDPKGNAME}&quot;

FILES_${PN} = &quot;${bindir}/dbus-daemon* \
               ${bindir}/dbus-uuidgen \
               ${bindir}/dbus-cleanup-sockets \
               ${bindir}/dbus-send \
               ${bindir}/dbus-monitor \
               ${bindir}/dbus-launch \
               ${libexecdir}/dbus* \
               ${sysconfdir} \
               ${localstatedir} \
               ${datadir}/dbus-1/services \
               ${datadir}/dbus-1/system-services&quot;
FILES_${PN}-lib = &quot;${libdir}/lib*.so.*&quot;

EXTRA_OECONF_X = &quot;${@base_contains(&apos;DISTRO_FEATURES&apos;, &apos;x11&apos;, &apos;--with-x&apos;, &apos;--without-x&apos;, d)}&quot;
EXTRA_OECONF_X_virtclass-native = &quot;--disable-x11-autolaunch&quot;

     I also built a core-image-base and dbus-launch is present and working. 
     I am setting this to verified on:

commit e1c1ee19e04eca1ffd09b49104a7b49e89c74d12
Date:   Mon Sep 24 08:37:09 2012 +0000</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>