<div>Hi Paul,</div><div> </div><div>just another clarification.</div><div> </div><div>&gt; If you aren&#39;t including packaging data in the resulting image (i.e.<br>&gt; IMAGE_FEATURES does not contain &quot;package-management&quot;), </div>
<div> </div><div>Adding the package-management I saw target rpm is set to be built.</div><div>So I can think I&#39;ll have the rpm inside the target fs I&#39;ll install via oe system.</div><div>How can it help me if I query installed packages from host?</div>
<div> </div><div>Cheers,</div><div>Giuseppe<br><br></div><div class="gmail_quote">2012/5/29 Giuseppe Condorelli <span dir="ltr">&lt;<a href="mailto:giuseppe.condorelli@gmail.com" target="_blank">giuseppe.condorelli@gmail.com</a>&gt;</span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="gmail_quote"><div class="im">2012/5/29 Paul Eggleton <span dir="ltr">&lt;<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>&gt;</span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div>On Tuesday 29 May 2012 15:20:14 Giuseppe Condorelli wrote:<br>
&gt; What I&#39;m not understanding is how I can invoke my shell function. Do you<br>
&gt; mean I have to invoke it as append function of populate_rootfs one?<br>
<br>
</div>If you aren&#39;t including packaging data in the resulting image (i.e.<br>
IMAGE_FEATURES does not contain &quot;package-management&quot;), you need to do your rpm<br>
calls from a function called via ROOTFS_POSTPROCESS_COMMAND because afterwards<br>
the data will be removed and rpm will not be usable.<br>
<div><br>
&gt; What I really need is a way to query the rpm database<br>
&gt; out from the build system, as we normally do with host packages.<br>
&gt; I tried to have a standalone run of  the rpm command the<br>
&gt; list_installed_packages invokes but (obviously) I got a long series of<br>
&gt; errors.<br>
<br>
</div>Below is what I meant - you could put this into some bbclass that you could<br>
add using INHERIT += &quot;someclass.bbclass&quot; in local.conf:<br>
<br>
------------- snip --------------<br>
ROOTFS_POSTPROCESS_COMMAND += &quot;do_some_packaging_stuff ; &quot;<br>
<br>
do_some_packaging_stuff() {<br>
        list_installed_packages &gt; /path/to/output/file<br>
}<br>
------------- snip --------------<br>
<br>
Substitute list_installed_packages for a similar rpm query command to the one<br>
list_installed_packages uses.<br></blockquote></div><div>Yes!!!! Very very simple solution (that obviously I didn&#39;t though... :| ).<br> </div><div class="im"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


<br>
Out of interest, what information are you querying from the packaging system?<br></blockquote></div><div>What I&#39;m trying to obtain is a way to install and to query rpm packages out from build system.</div><div>I mean, I would like to have the rpms built via bitbake/oe-core repository and than to install them</div>

<div>into a specific root path without the build system support. Also, after having installed them (or part of</div><div>them) I need to query the rpm database in case of debug.</div><div>So I started asking my questions to understand if (internally) there was a way for querying (and it was!).</div>

<div>This for backword compatibility with what I&#39;m currently managing (a distribution totally rpm based) and</div><div>what I&#39;m thinking to implement in next future (a distribution oe based). For a while I would like both scenarios</div>

<div>will exist in parallel.</div><div>If you have other suggestions, or if you think my way to proceed is going to a black scenario, please don&#39;t</div><div>hesitate to correct me.</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


<br>
Cheers,<br>
Paul<br></blockquote><div>Cheers,</div><div>Giuseppe </div><div class="im"><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">


<div><div><br>
--<br>
<br>
Paul Eggleton<br>
Intel Open Source Technology Centre<br>
</div></div></blockquote></div></div><br>
</blockquote></div><br>