<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 12 January 2017 at 09:08, David Vincent <span dir="ltr"><<a href="mailto:freesilicon@gmail.com" target="_blank">freesilicon@gmail.com</a>></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>
'/var/lib/rpm', the final image did not contain any of the database<br>
files in the expected location. This commit takes into account the<br>
'rpmlibdir' variable set into 'rootfs_rpm.bbclass'.<br></span></blockquote></div><br>Something changed and this is now breaking rootfs generation for me:</div><div class="gmail_extra"><br></div>File: 'exec_python_func() autogenerated', lineno: 2, function: <module><br> 0001:<br> *** 0002:license_create_manifest(d)<br> 0003:<br>File: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/meta/classes/license.bbclass', 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('PKGDATA_DIR'),<br> 0047: 'runtime-reverse', 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 "LICENSE" in pkg_dic[pkg_name].keys():<br> 0052: pkg_lic_name = "LICENSE_" + pkg_name<br>Exception: FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-x86-64/build/build/tmp/sysroots/qemux86-64/pkgdata/runtime-reverse/error:'<br><br><div>Note how pkg is set to "error:".</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>