summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/filemap.py
diff options
context:
space:
mode:
authorDouglas Royds <douglas.royds@taitradio.com>2018-11-23 09:41:57 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 20:12:01 +0000
commitcd56795a1588d780ca6a0cb974bf4024ab636be7 (patch)
tree25237bcee35d5c72293ce2ef7204aa5c95f05b59 /scripts/lib/wic/filemap.py
parent98b7d22ed563efdf58beba1ba65270b731673103 (diff)
downloadopenembedded-core-cd56795a1588d780ca6a0cb974bf4024ab636be7.tar.gz
openembedded-core-cd56795a1588d780ca6a0cb974bf4024ab636be7.tar.bz2
openembedded-core-cd56795a1588d780ca6a0cb974bf4024ab636be7.zip
reproducible: Don't look for youngest file when no source tarball
Some packages (eg. init-ifupdown) take their source files entirely from openembedded-core, that is, they download no source tarball. These recipes either don't use S at all (ie. it is empty at unpack time), or they set S = WORKDIR (as in init-ifupdown). Looking at the file timestamps in the WORKDIR causes a non-reproducible SOURCE_DATE_EPOCH, as files taken from file:// URIs do not have reproducible timestamps. If S == WORKDIR, we are better to assume that there is no source tarball, and to fall back to a fixed timestamp for the SOURCE_DATE_EPOCH. This makes the init-ifupdown build reproducible. (From OE-Core rev: d395bad0179037eb5d0fa4d921985c87ae13f3a4) Signed-off-by: Douglas Royds <douglas.royds@taitradio.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'scripts/lib/wic/filemap.py')
0 files changed, 0 insertions, 0 deletions