]> code.ossystems Code Review - openembedded-core.git/commit
python2.7: improve reproducibility
authorJuro Bystricky <juro.bystricky@intel.com>
Sat, 19 Aug 2017 17:21:57 +0000 (10:21 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Aug 2017 07:47:05 +0000 (08:47 +0100)
commit2a044f1e4f5c63e11e631b31f741c7aabfa6f601
treee7dc0b86ceff13924f0e0ca45a5b2e10aa378b59
parent6cfd520ea050aa449f0ac7ee0b2c647d14d588ad
python2.7: improve reproducibility

The compiled .pyc files contain time stamp corresponding to the compile time.
This prevents binary reproducibility. This patch allows to achieve binary
reproducibility by overriding the build time stamp by the value
exported via SOURCE_DATE_EPOCH.

Patch by Bernhard M. Wiedemann, backported from https://github.com/python/cpython/pull/296

[YOCTO#11241]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python/support_SOURCE_DATE_EPOCH_in_py_compile_2.7.patch [new file with mode: 0644]
meta/recipes-devtools/python/python_2.7.13.bb