]> code.ossystems Code Review - openembedded-core.git/commit
reproducible: Don't look for youngest file when no source tarball
authorDouglas Royds <douglas.royds@taitradio.com>
Thu, 22 Nov 2018 20:41:57 +0000 (09:41 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Jan 2019 20:12:01 +0000 (20:12 +0000)
commitcd56795a1588d780ca6a0cb974bf4024ab636be7
tree25237bcee35d5c72293ce2ef7204aa5c95f05b59
parent98b7d22ed563efdf58beba1ba65270b731673103
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>
meta/classes/reproducible_build.bbclass