<div class="gmail_quote">On Thu, Jul 23, 2009 at 12:08 PM, Nigel Metheringham <span dir="ltr">&lt;<a href="mailto:nigel.metheringham@dev.intechnology.co.uk">nigel.metheringham@dev.intechnology.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">At the point when you run the %post the files are *not* in $RPM_BUILD_ROOT but instead under root (/).<br>

<br>
Plus you should not be running another rpm transaction within an rpm transaction - it might work (depending on the version of rpm), or it might fail with locking issues, or it might completely corrupt your rpm database.<br>

</blockquote><div><br>It is an opinion. Not eveyone agreed with this. <br>Just for example<br><br>rpm --showc | <br> rpmlib(ConcurrentAccess) = 4.1-1<br>        package scriptlets may access the rpm database while installing.<br>
<br>Search yum-pull-update in your favorite search engine for something i do for using yum as pull agent (e.g software distribution) and not only the usual pull. Sure every ten years could be problem for glibc NTPL update or similar problem in using a rpm package bundle. <br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
You should do this with dependancies and a proper package management tool (ie yum etc) rather than abusing raw rpm.<br>
</blockquote><div><br>Not is always possible. In fact the rpm-package-bundle try to overcame situation - rare as can be - as this. The goal is to install other rpm via rpm, in order to establish an order<br>of installation and deinstall not determinable by the usual forms<br>
of dependence provided by rpm.  This might happen, for example,<br>for political reasons or in the presence of proprietary package who require<br>a form of non-interactive EULA or have wrong dependency anyway and i want to you <br>
a depsolver - yum, zypper, urpmi, smart ... - for installing this package.<br> <br>But YMMV, as everyone else.<br><br>Regards<br></div></div><br>