]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
python3: Fix sysroot reproducibility
authorJoshua Watt <JPEWhacker@gmail.com>
Thu, 30 Sep 2021 20:41:59 +0000 (15:41 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Oct 2021 13:51:23 +0000 (14:51 +0100)
commit2def2c145c303f27d93ba73876d4c6b214f18166
tree331c4f8caba65c6f727e48a16ab5eaf069b70831
parentbca3d163d9ed804b4c734ac8fe4fa96e1d05906d
python3: Fix sysroot reproducibility

Fixes the reformatting of the sysconfigdata to be reproducible in the
sysroot as well as in the package. During this a bug was uncovered in
the way that the data was reformatted where it appears that python
cannot parse a single line of code over 40000 characters. To work around
this, pass a maximum with of "1" to pprint instead of sys.maxsize which
will cause it to wrap as often as possible and should keep it
reproducible.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3/reformat_sysconfig.py
meta/recipes-devtools/python/python3_3.9.6.bb