run-postinst: Ensure that the postinsts are ordered
authorMark Hatle <mark.hatle@windriver.com>
Fri, 4 Oct 2013 15:48:19 +0000 (15:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Oct 2013 08:37:32 +0000 (09:37 +0100)
commitf15053cfdbd132ce81c0218b67c0e2984638944b
tree9dac9c1906ab785f85a09abf7c1ec390096d609f
parent6eddb7931d87c1fa559a6990b80bb18198c55b11
run-postinst: Ensure that the postinsts are ordered

The postinst files were being generated using purely the name of the package,
this unfortunately meant the run order would be based on the name of the
package and not the order in which it was installed on the filesystem.

If package A requires package Z to be fully installed, this causes a problem.

Note:

rpm - as the rpm based install proceeds the order is defined and captured.
      so the problem is resolved there.

ipk - this unfortunately does not appear to solve the problem for ipk, as
      the status file is not ordered in any appreciable way.  This does not
      cause any regressions however and sets the stage for a proper fix.

deb - this -may- fix the deb install.  Early testing indicates at least some
      ordering to the status file.  But it's unclear if it completely resolves
      the issue.

(From OE-Core rev: b5bafccb89f45d7cdd515b4ba45e0152ca7922de)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass
meta/classes/rootfs_deb.bbclass
meta/classes/rootfs_ipk.bbclass