<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 18, 2016 at 6:38 PM Paul Eggleton &lt;<a href="mailto:paul.eggleton@linux.intel.com">paul.eggleton@linux.intel.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 18 Apr 2016 21:01:27 Denys Dmytriyenko wrote:<br>
&gt; On Tue, Apr 19, 2016 at 10:35:29AM +1200, Paul Eggleton wrote:<br>
&gt; &gt; Hi Denys,<br>
&gt; &gt; On Mon, 18 Apr 2016 18:14:55 Denys Dmytriyenko wrote:<br>
&gt; &gt; &gt; I&#39;m still using the old-style SDK (meta-toolchain) for our products due<br>
&gt; &gt; &gt; to some code customizations in it and some of our use cases rely on the<br>
&gt; &gt; &gt; opkg package management database being present in sysroots, so packages<br>
&gt; &gt; &gt; can be manipulated in SDK with opkg command. It appears that<br>
&gt; &gt; &gt; /var/lib/opkg is now empty and the package database is no longer<br>
&gt; &gt; &gt; supplied with the SDK.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I know about the new-style populate_sdk and the even newer Extensible<br>
&gt; &gt; &gt; SDK, but not yet ready to convert our old use cases to that. Since there<br>
&gt; &gt; &gt; were lots of changes around the way SDKs work in OE-Core in the past<br>
&gt; &gt; &gt; couple releases, I&#39;m failing to find the change that causes opkg DB to<br>
&gt; &gt; &gt; be missing from the old style SDK. I&#39;ll appreciate any pointers in<br>
&gt; &gt; &gt; helping me debug and/or fix this issue with my SDKs. Thanks.<br>
&gt; &gt;<br>
&gt; &gt; As far as ipk is concerned I think it was this commit:<br>
&gt; &gt;   <a href="http://cgit.openembedded.org/openembedded-core/commit/?id=c8e0ec2da9ad4c" rel="noreferrer" target="_blank">http://cgit.openembedded.org/openembedded-core/commit/?id=c8e0ec2da9ad4c</a><br>
&gt; &gt;   e1c103966906a85f68c15400dd&gt;<br>
&gt; &gt; Unfortunately it wasn&#39;t made optional.<br>
&gt;<br>
&gt; Thanks, Paul!<br>
&gt;<br>
&gt; Unfortunately, the change is in the library, which is quite difficult to<br>
&gt; override in another layer...<br></blockquote><div><br></div><div><br></div><div>Actually, overriding a library is trivial given the way we do our python package. Copy meta/lib/oe/__init__.py into &lt;your layer&gt;/lib/oe/, copy meta/lib/oe/sdk.py to &lt;your layer&gt;/lib/oe/ and modify, and make sure your layer is prioritized correctly, and your forked version will be used in preference.</div><div><br></div><div>It&#39;s not ideal, for the same reasons it&#39;s not ideal to override a class -- you&#39;re stuck keeping it in sync, so for that reason I&#39;d not recommend it, but it&#39;s not difficult to do the override :)</div></div></div>