]> code.ossystems Code Review - openembedded-core.git/commit
useradd: Fix build architecture corruption of sstate artefacts
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 May 2019 07:54:00 +0000 (08:54 +0100)
committerArmin Kuster <akuster808@gmail.com>
Mon, 30 Sep 2019 04:38:22 +0000 (21:38 -0700)
commit441a2b8979e69c20e7ed0178cdb210eecdec91e1
tree33e9208ae1f0de410cd6ce0ac618f22202b734cb
parent51730928df4dbecac72b56e9f843885674b4d18a
useradd: Fix build architecture corruption of sstate artefacts

When mixing aarch64 and x86_64 host builds with common sstate, useradd failures
were found. This was due to references to:

/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/aarch64/pseudo-native/usr/bin/pseudo
or
/home/pokybuild/yocto-worker/qemuarm/build/build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo

on the wrong architecture within the useradd postinst files.

Instead of using COMPONENTS_DIR as the FIXME, use PSEUDO_SYSROOT which contains
the arch component as well to avoid this.

Add extra comments to cause the relavent sstate to be rebuilt.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0384622f72a6c0bd8225cf06f692340fdef67d4a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/staging.bbclass
meta/classes/useradd.bbclass