]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
base/reproducible: Change Source Date Epoch generation methods
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Jul 2022 09:39:26 +0000 (10:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 23 Jul 2022 12:55:13 +0000 (13:55 +0100)
commit32dda0ad91a9e7946351c897578b4c97ae142341
treedb09aabe660b52616e652c7b19499b56cdbcfbc3
parentfdb16e1a78c2abcc8ac89678b1b250ca4fa9c0d9
base/reproducible: Change Source Date Epoch generation methods

In bc, we found that there are files newer than Changelog (e.g. scan.l)
which means after install runs, the timestamp is clamped to SDE which means
"bitbake bc -C compile" would then try and regenerate generated files and
complain flex was missing.

Rather than assuming Changelog/NEWS are magic for dates, drop that scan
method and scan all unpacked files. This shouldn't be that slow as they'd
be in the disk cache already after an unpack.

For bc, this changes SDE by about two minutes and avoids the problems
rebuilding.

Add a version comment to the task definition as changes in python library
code won't trigger a rebuild and we need one here.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass
meta/lib/oe/reproducible.py