diff options
author | Douglas Royds <douglas.royds@taitradio.com> | 2018-11-23 09:41:57 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-08 20:14:42 +0000 |
commit | c90a56ed6d427396cc65f163d2f1559794fe6336 (patch) | |
tree | 5ccd5b5eb2b49cd91f4f7abbe1afd7cc3c7ea9cb /meta/classes/reproducible_build_simple.bbclass | |
parent | e2a2f8cd895245a7f126afb125e094a0b8bbce33 (diff) | |
download | poky-c90a56ed6d427396cc65f163d2f1559794fe6336.tar.gz |
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)
(From OE-Core rev: cd56795a1588d780ca6a0cb974bf4024ab636be7)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/reproducible_build_simple.bbclass')
0 files changed, 0 insertions, 0 deletions