<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 12 January 2017 at 09:08, David Vincent <span dir="ltr">&lt;<a href="mailto:freesilicon@gmail.com" target="_blank">freesilicon@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="gmail-">When using a custom RPM data directory instead of the default dir<br>
&#39;/var/lib/rpm&#39;, the final image did not contain any of the database<br>
files in the expected location. This commit takes into account the<br>
&#39;rpmlibdir&#39; variable set into &#39;rootfs_rpm.bbclass&#39;.<br></span></blockquote></div><br>Something changed and this is now breaking rootfs generation for me:</div><div class="gmail_extra"><br></div>File: &#39;exec_python_func() autogenerated&#39;, lineno: 2, function: &lt;module&gt;<br>     0001:<br> *** 0002:license_create_manifest(d)<br>     0003:<br>File: &#39;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/classes/license.bbclass&#39;, lineno: 48, function: license_create_manifest<br>     0044:    pkg_dic = {}<br>     0045:    for pkg in sorted(image_list_installed_packages(d)):<br>     0046:        pkg_info = os.path.join(d.getVar(&#39;PKGDATA_DIR&#39;),<br>     0047:                                &#39;runtime-reverse&#39;, pkg)<br> *** 0048:        pkg_name = os.path.basename(os.readlink(pkg_info))<br>     0049:<br>     0050:        pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)<br>     0051:        if not &quot;LICENSE&quot; in pkg_dic[pkg_name].keys():<br>     0052:            pkg_lic_name = &quot;LICENSE_&quot; + pkg_name<br>Exception: FileNotFoundError: [Errno 2] No such file or directory: &#39;/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/build/tmp/sysroots/qemux86-64/pkgdata/runtime-reverse/error:&#39;<br><br><div>Note how pkg is set to &quot;error:&quot;.</div><div><br></div><div>Clearly the error handling in image_list_installed_packages() needs work, but I can make this problem appear/disappear by adding/removing this patch.</div><div><br></div><div>Ross</div></div>