<div dir="ltr"><div dir="ltr">On Tue, 14 Jan 2020 at 19:37, Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
The autobuilder failed with this again, I went in and the first bit of<br>
debugging I added was to say which file its failing on. Answer was:<br>
<br>
WARNING: python3-3.8.1-r0 do_package: ./package/usr/libx32/python3.8/__pycache__/_bootlocale.cpython-38.opt-2.pyc<br>
<br>
so for some reason the ownership of the pyc file (or files) is suspect.<br>
<br>
I did a quick inspection of the pseudo database and its only this one<br>
file. That leads me to suspect its a race in how its being<br>
generated/owned...<br>
</blockquote><div><br></div><div>I started looking into this - the likely culprit is this commit</div><div><a href="https://github.com/python/cpython/commit/1a2dd82f56bd813aacc570e172cefe55a8a41504">https://github.com/python/cpython/commit/1a2dd82f56bd813aacc570e172cefe55a8a41504</a></div><div>which introduces parallel .pyc compilation. Previously (in 3.7) the bootlocale.py file was compiled only once, and now I am seeing this in log.do_install:</div><div><br></div>/home/alexander/development/poky/build-x86-64/tmp/hosttools/install -c -m 644 ../Python-3.8.1/Lib/_bootlocale.py /usr/lib/python3.8<br>Compiling '/home/alexander/development/poky/build-x86-64/tmp/work/core2-64-poky-linux/python3/3.8.1-r0/image/usr/lib/python3.8/_bootlocale.py'...<br>Compiling '/home/alexander/development/poky/build-x86-64/tmp/work/core2-64-poky-linux/python3/3.8.1-r0/image/usr/lib/python3.8/_bootlocale.py'...<br>Compiling '/home/alexander/development/poky/build-x86-64/tmp/work/core2-64-poky-linux/python3/3.8.1-r0/image/usr/lib/python3.8/_bootlocale.py'...</div><div class="gmail_quote"><br><div>I don't yet know how this file ends up being compiled several times, or whether they indeed race.<br></div><div><br></div><div>Also I am still unsure how it ends up with the wrong ownership. Hints?<br></div><div><br></div><div>Alex<br></div></div></div>