<p dir="ltr">On Aug 19, 2014 12:55 PM, "Robert Yang" <<a href="mailto:liezhi.yang@windriver.com">liezhi.yang@windriver.com</a>> wrote:<br>
><br>
> On 08/19/2014 07:42 PM, Paul Barker wrote:<br>
>><br>
>> Looking into the rpcbind package, the useradd commands are performed in a<br>
>> preinst script so I don't think the problem is opkg running the script too<br>
>> early. Do other package managers guarantee that a package's dependencies are<br>
>> installed before the preinst script is ran? If so, I may need to re-order things<br>
><br>
><br>
> For rpm, I think yes ? The "pre" depends on base-passwd:<br>
> $ rpm -qpR -v tmp/deploy/rpm/core2_64/rpcbind-0.2.1-r0.core2_64.rpm | grep base-pass<br>
> manual: base-passwd<br>
> pre: base-passwd<br>
> post: base-passwd<br>
> preun: base-passwd<br>
> postun: base-passwd<br>
><br>
> But I can't find such info in ipk.<br>
></p>
<p dir="ltr">Ok, looking at the opkg code it should satisfy dependencies before running the preinst script. I'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>