]> code.ossystems Code Review - openembedded-core.git/commit
useradd: Ensure preinst data is expanded correctly in pkgdata
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Sep 2021 21:42:03 +0000 (22:42 +0100)
committerSteve Sakoman <steve@sakoman.com>
Fri, 24 Sep 2021 14:27:46 +0000 (04:27 -1000)
commitfbd5a1f877d805d810562985c7a5dac4a5761263
treea5a922c3ee880ef63fe60dd69cf97b2ee1c19f4a
parentad080aadbc409c99511d602e0531952b96c06bbf
useradd: Ensure preinst data is expanded correctly in pkgdata

The preinst data in pkgdata will not expand out the ${XXX_PARAM} variables
since they don't use a package suffix. It happens that the final expansion
used for the packages is corrected by a second trip through the datastore.

The first version is used for calculation of the task output hash and
recent improvements in hash reuse showed this data wasn't using included
in the hashes, meaning for example builds with dynamic IDs were mixing
sstate with builds using static IDs. The result was a mess.

Fix this by expanding the data in the preinst correctly to use the
package specific _PARAM values.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 375430f249e7e0b6622e566e2478b40ba7e606ab)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/useradd.bbclass