<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 9 June 2017 at 08:43, Ismo Puustinen <span dir="ltr"><<a href="mailto:ismo.puustinen@intel.com" target="_blank">ismo.puustinen@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":30t" class="a3s aXjCH m15c8bd0877d3e66c">+# If readline is not there, don't create <span class="il">python3</span>-readline package and<br>
+# also do not depend on it. Same goes for gdbm.<br>
+PACKAGES_remove = " \<br>
+ ${@bb.utils.contains('<wbr>PACKAGECONFIG', 'readline', '', '${PN}-readline', d)} \<br>
+ ${@bb.utils.contains('<wbr>PACKAGECONFIG', 'gdbm', '', '${PN}-gdbm', d)} \<br>
+"<br>
+PROVIDES_remove = " \<br>
+ ${@bb.utils.contains('<wbr>PACKAGECONFIG', 'readline', '', '${PN}-readline', d)} \<br>
+ ${@bb.utils.contains('<wbr>PACKAGECONFIG', 'gdbm', '', '${PN}-gdbm', d)} \<br>
+"<br>
+RDEPENDS_${PN}-modules_remove = " \<br>
+ ${@bb.utils.contains('<wbr>PACKAGECONFIG', 'readline', '', '${PN}-readline', d)} \<br>
+ ${@bb.utils.contains('<wbr>PACKAGECONFIG', 'gdbm', '', '${PN}-gdbm', d)} \<br>
+"</div></blockquote></div><br>Just looked at what happens to the packaging without these lines.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If gdbm isn't present then the gdbm package isn't generated at all, which is as expected. python3-readline just contains the rlcompleter package which is basically an implementation detail and could arguably be deleted in a do_install_append that checks the PACKAGECONFIG.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The provides/depends will be needed still though, unless we teach the manifest generator that some packages depend on PACKAGECONFIG flags.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>