]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
gcc-shared-source: Fix source date epoch handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Nov 2022 17:31:17 +0000 (17:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Nov 2022 21:56:33 +0000 (21:56 +0000)
commitb996293b4c8ab7ff3ed852045d17290df29205df
treea366feaa19be29f1fcd6411ed0b1ff66d072a498
parent88d30848981db2cb7b1f2021ba07e40976cd789f
gcc-shared-source: Fix source date epoch handling

The source date epoch for gcc isn't being transferred from the shared
workdir to the current WORKDIR for the specific recipe. This results in
the clamping code within sstate.bbclass using a value from 2011 which
changes the timestamps of many files. Since this happens part way
through the build, if pieces of gcc haven't built, or build/rebuild
later, we see things rebuilding when they should not and for generated
files, races are possible.

Fix this by copying the SDE from the shared workdir into the recipe
workdir.

[YOCTO #14953]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/gcc/gcc-shared-source.inc