<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 28, 2013 at 10:36 PM, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">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 class="im">On Wed, Aug 28, 2013 at 05:05:38PM -0700, Chris Larson wrote:<br>
&gt; On Wed, Aug 28, 2013 at 4:13 PM, Saul Wold &lt;<a href="mailto:sgw@linux.intel.com">sgw@linux.intel.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On 08/28/2013 09:12 AM, Christopher Larson wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; From: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Currently we don&#39;t enable any immodules for gtk+3, yet we unconditionally<br>
&gt; &gt;&gt; call<br>
&gt; &gt;&gt; do_split_packages on a nonexistent path. This results in a return value of<br>
&gt; &gt;&gt; None, which it then tries to join, resulting in a TypeError. Only split<br>
&gt; &gt;&gt; the<br>
&gt; &gt;&gt; modules if we have any modules to split.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Signed-off-by: Christopher Larson &lt;<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>&gt;<br>
&gt; &gt;&gt; ---<br>
</div>&gt; &gt;&gt;   meta/recipes-gnome/gtk+/gtk+3.**inc | 3 ++-<br>
<div class="im">&gt; &gt;&gt;   1 file changed, 2 insertions(+), 1 deletion(-)<br>
&gt; &gt;&gt;<br>
</div>&gt; &gt;&gt; diff --git a/meta/recipes-gnome/gtk+/gtk+**3.inc<br>
&gt; &gt;&gt; b/meta/recipes-gnome/gtk+/gtk+**3.inc<br>
&gt; &gt;&gt; index f4d5254..204a425 100644<br>
&gt; &gt;&gt; --- a/meta/recipes-gnome/gtk+/gtk+**3.inc<br>
&gt; &gt;&gt; +++ b/meta/recipes-gnome/gtk+/gtk+**3.inc<br>
<div class="im">&gt; &gt;&gt; @@ -94,7 +94,8 @@ python populate_packages_prepend () {<br>
&gt; &gt;&gt;       immodules_root = os.path.join(gtk_libdir, &#39;immodules&#39;)<br>
&gt; &gt;&gt;       printmodules_root = os.path.join(gtk_libdir, &#39;printbackends&#39;);<br>
&gt; &gt;&gt;<br>
</div>&gt; &gt;&gt; -    d.setVar(&#39;GTKIMMODULES_**PACKAGES&#39;, &#39; &#39;.join(do_split_packages(d,<br>
<div class="im">&gt; &gt;&gt; immodules_root, &#39;^im-(.*)\.so$&#39;, &#39;gtk3-immodule-%s&#39;, &#39;GTK input module for<br>
&gt; &gt;&gt; %s&#39;)))<br>
</div>&gt; &gt;&gt; +    if os.path.exists(os.path.join(d.**getVar(&#39;D&#39;, True),<br>
&gt; &gt;&gt; immodules_root)):<br>
&gt; &gt;&gt; +        d.setVar(&#39;GTKIMMODULES_**PACKAGES&#39;, &#39;<br>
<div class="im">&gt; &gt;&gt; &#39;.join(do_split_packages(d, immodules_root, &#39;^im-(.*)\.so$&#39;,<br>
&gt; &gt;&gt; &#39;gtk3-immodule-%s&#39;, &#39;GTK input module for %s&#39;)))<br>
&gt; &gt;&gt;       do_split_packages(d, printmodules_root,<br>
&gt; &gt;&gt; &#39;^libprintbackend-(.*)\.so$&#39;, &#39;gtk3-printbackend-%s&#39;, &#39;GTK printbackend<br>
&gt; &gt;&gt; module for %s&#39;)<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;       if (d.getVar(&#39;DEBIAN_NAMES&#39;, 1)):<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt; This seems to give me the following QA error:<br>
&gt; &gt;<br>
&gt; &gt;  ERROR: QA Issue: gtk+3: Files/directories were installed but not shipped<br>
</div>&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-viqr.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-am-et.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-xim.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-multipress.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-cedilla.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-ti-et.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-ipa.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-inuktitut.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-ti-er.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-thai.so<br>
&gt; &gt;&gt;   /usr/lib/gtk-3.0/3.0.0/**immodules/im-cyrillic-**translit.so<br>
<div class="im">&gt; &gt;&gt; ERROR: QA run found fatal errors. Please consider fixing them.<br>
&gt; &gt;&gt; ERROR: Function failed: do_package_qa<br>
</div>&gt; &gt;&gt; ERROR: Logfile of failure stored in: /srv/hdd/builds/world/tmp/**<br>
&gt; &gt;&gt; work/x86_64-poky-linux/gtk+3/**3.8.2-r0/temp/log.do_package.**17386<br>
&gt; &gt;&gt; ERROR: Task 6017 (/srv/hdd/poky/meta/recipes-**gnome/gtk+/gtk+<a href="http://3_3.8.2.bb" target="_blank">3_3.8.2.bb</a>,<br>
<div class="im">&gt; &gt;&gt; do_package) failed with exit code &#39;1&#39;<br>
&gt; &gt;&gt; NOTE: Tasks Summary: Attempted 6199 tasks of which 6190 didn&#39;t need to be<br>
&gt; &gt;&gt; rerun and 1 failed.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; Huh, interesting, on this box it doesn&#39;t build any modules at all, hence<br>
&gt; the need for this.. oh, I see what I did wrong, I used os.path.join(), so<br>
&gt; gtk_libdir squished ${D} down to nothing. I&#39;ll send a v2 using the<br>
&gt; oe.path.join, and also try to determine why it builds modules for you but<br>
&gt; not me :) I expect we should be passing an explicit autoconf argument to<br>
&gt; enable all modules, or not.<br>
<br>
</div>Why not use return value from do_split_packages to decide whether to set<br>
GTKIMMODULES_**PACKAGES or not? At least that&#39;s what&#39;s already used in<br>
some places.</blockquote></div><br>Sent a new short series of 2 patches to do just that as well as fix the real root cause of the issue I was hitting. Thanks for the review.<br>-- <br>Christopher Larson<br>clarson at kergoth dot com<br>

Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>