]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: improve reproducibility
authorJuro Bystricky <juro.bystricky@intel.com>
Wed, 5 Apr 2017 21:51:31 +0000 (14:51 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:06 +0000 (22:48 +0100)
commit007ebc84979b1bc8b7520097793c7ab6d646c243
treee7d680b0287fab1e0ec7f0fcf8e6506a1ca611ae
parentccd2faca99331e010badbb78d42b0ee644ca1a0a
license.bbclass: improve reproducibility

Two identical builds can end up having deploy/licenses folders
that differ. This is observed in cases where there are several
different license files of the same name in different folders,
i.e. "COPYING". In those case we have to differentiate the files
somehow and we do it via file expensions such as COPYING.0, COPYING.1.
However, which file will get which extension is presently random.
This means, for example, that COPYING.0 in one build is the same
as COPYING.1 in the other (and vice versa).
Although there is mothing wrong with this, for the sake of binary
reproducibility it is preferable to have a deterministic outcome.

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license.bbclass