<div>Hi Paul,</div><div> </div><div>just another clarification.</div><div> </div><div>> If you aren't including packaging data in the resulting image (i.e.<br>> IMAGE_FEATURES does not contain "package-management"), </div>
<div> </div><div>Adding the package-management I saw target rpm is set to be built.</div><div>So I can think I'll have the rpm inside the target fs I'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"><<a href="mailto:giuseppe.condorelli@gmail.com" target="_blank">giuseppe.condorelli@gmail.com</a>></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"><<a href="mailto:paul.eggleton@linux.intel.com" target="_blank">paul.eggleton@linux.intel.com</a>></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>
> What I'm not understanding is how I can invoke my shell function. Do you<br>
> mean I have to invoke it as append function of populate_rootfs one?<br>
<br>
</div>If you aren't including packaging data in the resulting image (i.e.<br>
IMAGE_FEATURES does not contain "package-management"), 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>
> What I really need is a way to query the rpm database<br>
> out from the build system, as we normally do with host packages.<br>
> I tried to have a standalone run of the rpm command the<br>
> list_installed_packages invokes but (obviously) I got a long series of<br>
> errors.<br>
<br>
</div>Below is what I meant - you could put this into some bbclass that you could<br>
add using INHERIT += "someclass.bbclass" in local.conf:<br>
<br>
------------- snip --------------<br>
ROOTFS_POSTPROCESS_COMMAND += "do_some_packaging_stuff ; "<br>
<br>
do_some_packaging_stuff() {<br>
list_installed_packages > /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'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'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'm currently managing (a distribution totally rpm based) and</div><div>what I'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'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>