<p dir="ltr">On Aug 19, 2014 12:55 PM, &quot;Robert Yang&quot; &lt;<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>&gt; wrote:<br>
&gt;<br>
&gt; On 08/19/2014 07:42 PM, Paul Barker wrote:<br>
&gt;&gt;<br>
&gt;&gt; Looking into the rpcbind package, the useradd commands are performed in a<br>
&gt;&gt; preinst script so I don&#39;t think the problem is opkg running the script too<br>
&gt;&gt; early. Do other package managers guarantee that a package&#39;s dependencies are<br>
&gt;&gt; installed before the preinst script is ran? If so, I may need to re-order things<br>
&gt;<br>
&gt;<br>
&gt; For rpm, I think yes ? The &quot;pre&quot; depends on base-passwd:<br>
&gt; $ rpm -qpR -v tmp/deploy/rpm/core2_64/rpcbind-0.2.1-r0.core2_64.rpm | grep base-pass<br>
&gt; manual: base-passwd<br>
&gt; pre: base-passwd<br>
&gt; post: base-passwd<br>
&gt; preun: base-passwd<br>
&gt; postun: base-passwd<br>
&gt;<br>
&gt; But I can&#39;t find such info in ipk.<br>
&gt;</p>
<p dir="ltr">Ok, looking at the opkg code it should satisfy dependencies before running the preinst script. I&#39;ll have to look into this further later and find out exactly what is going wrong.</p>
<p dir="ltr">-- <br>
(Sent from mobile)</p>
<p dir="ltr">Paul Barker</p>
<p dir="ltr">Email: <a href="mailto:paul@paulbarker.me.uk">paul@paulbarker.me.uk</a><br>
<a href="http://www.paulbarker.me.uk">http://www.paulbarker.me.uk</a></p>