<br><div class="gmail_quote">On Fri, Sep 30, 2011 at 12:52 PM, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com">martin.jansa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Fri, Sep 30, 2011 at 10:17:25AM +0100, Richard Purdie wrote:<br>
&gt; On Fri, 2011-09-30 at 09:27 +0200, Martin Jansa wrote:<br>
&gt; &gt; * /etc/X11/Xusername handling should be moved to x11-common so the same<br>
&gt; &gt;   username and logic is used from initscript and when user starts it<br>
&gt; &gt;   from terminal<br>
&gt; &gt;<br>
&gt; &gt; Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<br>
&gt; &gt; ---<br>
&gt; &gt;  .../x11-common/xserver-nodm-init/xserver-nodm      |   30 ++++++--------------<br>
&gt; &gt;  1 files changed, 9 insertions(+), 21 deletions(-)<br>
&gt; &gt;<br>
&gt; &gt; diff --git a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm<br>
&gt; &gt; index c707a4b..9cd7904 100755<br>
&gt; &gt; --- a/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm<br>
&gt; &gt; +++ b/meta/recipes-graphics/x11-common/xserver-nodm-init/xserver-nodm<br>
&gt; &gt; @@ -8,10 +8,7 @@<br>
&gt; &gt;  # Default-Stop:      0 1 6<br>
&gt; &gt;  ### END INIT INFO<br>
&gt; &gt;<br>
&gt; &gt; -killproc() {            # kill the named process(es)<br>
&gt; &gt; -        pid=`/bin/pidof $1`<br>
&gt; &gt; -        [ &quot;$pid&quot; != &quot;&quot; ] &amp;&amp; kill $pid<br>
&gt; &gt; -}<br>
&gt; &gt; +. /etc/init.d/functions<br>
&gt; &gt;<br>
&gt; &gt;  read CMDLINE &lt; /proc/cmdline<br>
&gt; &gt;  for x in $CMDLINE; do<br>
&gt; &gt; @@ -25,25 +22,16 @@ done<br>
&gt; &gt;<br>
&gt; &gt;  case &quot;$1&quot; in<br>
&gt; &gt;    start)<br>
&gt; &gt; +    # We don&#39;t want this script to block the rest of the boot process<br>
&gt; &gt; +    if [ &quot;$2&quot; != &quot;background&quot; ]; then<br>
&gt; &gt; +      $0 $1 background &amp;<br>
&gt; &gt; +    else<br>
&gt; &gt;         . /etc/profile<br>
&gt; &gt; -       username=root<br>
&gt; &gt; +<br>
&gt; &gt;         echo &quot;Starting Xserver&quot;<br>
&gt; &gt; -       if [ -f /etc/X11/Xusername ]; then<br>
&gt; &gt; -           username=`cat /etc/X11/Xusername`<br>
&gt; &gt; -           # setting for rootless X<br>
&gt; &gt; -           chmod o+w /var/log<br>
&gt; &gt; -           chmod g+r /dev/tty[0-3]<br>
&gt; &gt; -           chmod o+rw /dev/input/*<br>
&gt; &gt; -           # hidraw device is probably needed<br>
&gt; &gt; -           if [ -e /dev/hidraw0 ]; then<br>
&gt; &gt; -               chmod o+rw /dev/hidraw*<br>
&gt; &gt; -           fi<br>
&gt; &gt; -       fi<br>
&gt; &gt; -       # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211]<br>
&gt; &gt; -       su -l -c &#39;/etc/X11/Xserver&amp;&#39; $username<br>
&gt; &gt; -       # Wait for the desktop to say its finished loading<br>
&gt; &gt; -       # before loading the rest of the system<br>
&gt; &gt; -       # dbus-wait org.matchbox_project.desktop Loaded<br>
&gt; &gt; +       . /etc/X11/xserver-common<br>
&gt; &gt; +       xinit /etc/X11/Xsession -- `which $XSERVER` $ARGS &gt;/var/log/Xsession.log 2&gt;&amp;1<br>
&gt; &gt; +    fi<br>
&gt; &gt;    ;;<br>
]&gt; &gt;<br>
&gt; &gt;    stop)<br>
&gt;<br>
&gt; This is not &quot;merge some changes from meta-oe&quot;, this is &quot;overwrite<br>
&gt; whatever is in oe-core with meta-oe&quot; :(.<br>
&gt;<br>
&gt; The above wipes out rootless X support.<br>
<br>
</div></div>Sorry about that and please ignore this patch..<br>
<br>
I&#39;ve started moving rootless X support from not only xserver-nodm-init<br>
to unified x11-common/xserver-common, but because I didn&#39;t finish it<br>
I&#39;ve removed xserver-common from this patchset and sent it here for<br>
review (ie because ant asked me to).<br>
<div class="im"><br></div></blockquote><div><br>Yes, I&#39;m to blame for that :)<br>Thanks again JaMa for your work.<br><br>The point is we are trying to reduce the delta between oe-core and meta-oe.<br>This has to be done asap, before drifting too much.<br>
I have atm three cases of recipes present in both layers whitout any reason (there are more, I know):<br><br>- udev<br>- xserver<br>- tzdata/tzcode<br><br>I hope the oe-core maintainers will give a look at meta-oe when updating their recipes.<br>
<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
&gt; I&#39;ve noticed this theme in several of the patches where for example a<br>
&gt; decent long DESCRIPTION and a separate short SUMMARY are replaced with a<br>
&gt; single one line SUMMARY.<br>
<br>
</div>I&#39;ll recheck this, but I was really trying to keep whatever was better<br>
in orginal recipes, so if it&#39;s the case somewhere I&#39;ll fix it and send<br>
updated patch, sorry about that.<br>
<div class="im"><br>
&gt; The fact you&#39;ve done this means I&#39;m going to have to go over every line<br>
&gt; of changes in this and double check what is happening. Some of the<br>
&gt; patches look ok but some like this are not.<br>
<br>
</div>BTW: meta-oe patchset wasn&#39;t sent because git was offline..<br>
<br></blockquote><div>Bad luck. Please insist!<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Regards,<br>
<font color="#888888"><br>
--<br>
Martin &#39;JaMa&#39; Jansa     jabber: <a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a><br>
</font><br>_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core" target="_blank">http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core</a><br>
<br></blockquote></div><br>Regards<br><br>Andrea<br>