[Buildroot] [PATCH v4 13/18] python2: generate reproducible .pyc

Jérôme Pouiller jezz at sysmic.org
Sat Nov 26 16:00:03 UTC 2016


Hello Thomas,

On Thursday 24 November 2016 20:06:55 Arnout Vandecappelle wrote:
[...]
> >>  	$(HOST_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR) \
> >> -		support/scripts/pycompile.py \
> >> +		support/scripts/pycompile.py $(if $(BR2_REPRODUCIBLE),--force) \
> > 
> > Why do we need to force?
Pycompile rely on .py modification times to know if a file need to be
recompiled. Since reproducible builds tweak modification time, it is
safer to force recompilation of all source files.

(I will add this explanation to commit log)

-- 
Jérôme Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr



More information about the buildroot mailing list