package/python3: add patch to fix highly parallel builds
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 2 Aug 2021 21:10:39 +0000 (23:10 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 4 Aug 2021 20:04:37 +0000 (22:04 +0200)
commite17946b409c84afd15c7de47df2c8ad4dd648fae
tree1b21c2ac5fdc7c2f7253a1ea40f50126c2875f21
parentf23129ee1e3ceb2cdbe751efed9faedbfae67d56
package/python3: add patch to fix highly parallel builds

Highly parallel host-python3 builds sometimes fail with:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/tmp/instance-3/output-1/host/lib/python3.9/threading.py", line 973, in _bootstrap_inner
    self.run()
  File "/tmp/instance-3/output-1/host/lib/python3.9/concurrent/futures/process.py", line 317, in run
    result_item, is_broken, cause = self.wait_result_broken_or_wakeup()
  File "/tmp/instance-3/output-1/host/lib/python3.9/concurrent/futures/process.py", line 376, in wait_result_broken_or_wakeup
    worker_sentinels = [p.sentinel for p in self.processes.values()]
  File "/tmp/instance-3/output-1/host/lib/python3.9/concurrent/futures/process.py", line 376, in <listcomp>
    worker_sentinels = [p.sentinel for p in self.processes.values()]
RuntimeError: dictionary changed size during iteration

During the compile_all.py step of host-python3. This issue is reported
upstream at https://bugs.python.org/issue43498, and while not yet
fixed upstream, a PR was proposed with a possible fix for it. Seems
the PR seems reasonable, let's give it a chance and see if it improves
the situation.

Hopefully Fixes:

  http://autobuild.buildroot.net/results/ae6c4ab292589a4e4442dfb0a1286349a9bf4d29/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/python3/0036-Fix-dictionary-iteration-error-in-_ExecutorManagerTh.patch [new file with mode: 0644]