mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>,
	Lars Alex Pedersen <lapeddk@gmail.com>
Subject: [ptxdist] [PATCH] ptxd_make_world_install_pack: fix system-python3/lib64 race
Date: Thu,  9 Jul 2026 09:32:46 +0200	[thread overview]
Message-ID: <20260709073246.23988-1-bruno.thomsen@gmail.com> (raw)

Our pipeline random failed a few minutes into the build when
building chardet, defusedxml, boolean-py or markupsafe python3
packages. The errors all relates to setuptools but can look a
little different. It was traced down to a race condition in
system-python3/lib64 link handling, so extend existing
handling in ptxd_make_world_install_pack function.

Short errors:

ModuleNotFoundError: No module named 'distutils'
ModuleNotFoundError: No Module named 'setuptools.errors'
FileNotFoundError: ...site-packages/setuptools/logging.py

Long error:

finished target host-system-python3-defusedxml.install.post
----------------------------------------------
target: host-system-python3-markupsafe.install
----------------------------------------------
Traceback (most recent call last):
  File "/builds/emperor/ptxdist/platform-emperor/build-host/system-MarkupSafe-3.0.3/setup.py", line 5, in <module>
    from setuptools import Extension
  File "/builds/emperor/ptxdist/platform-emperor/sysroot-host/usr/lib/system-python3/lib64/python3.14/site-packages/setuptools/__init__.py", line 26, in <module>
    from .dist import Distribution
  File "/builds/emperor/ptxdist/platform-emperor/sysroot-host/usr/lib/system-python3/lib64/python3.14/site-packages/setuptools/dist.py", line 20, in <module>
    from . import (
    ...<4 lines>...
    )
  File "/builds/emperor/ptxdist/platform-emperor/sysroot-host/usr/lib/system-python3/lib64/python3.14/site-packages/setuptools/_entry_points.py", line 11, in <module>
    from .errors import OptionError
ModuleNotFoundError: No module named 'setuptools.errors'
make: *** [/usr/local/lib/ptxdist-2026.07.0/rules/post/ptxd_make_world_install.make:40: /builds/emperor/ptxdist/platform-emperor/state/host-system-python3-markupsafe.install] Error 1
make: *** Waiting for unfinished jobs....

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
Co-developed-by: Lars Alex Pedersen <lapeddk@gmail.com>
---
 scripts/lib/ptxd_make_world_install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index b661036fd..ab8f442a2 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -257,7 +257,7 @@ ptxd_make_world_install_pack() {
 
     # remove usr-merge and lib64 symlinks. They exist in sysroot anyways,
     # so avoid races when they are overwritten
-    for link in bin sbin lib lib64 usr/lib64; do
+    for link in bin sbin lib lib64 usr/lib64 usr/lib/system-python3/lib64; do
 	link="${pkg_pkg_dir}/${link}"
 	if [ -h "${link}" ]; then
 	    rm "${link}"

base-commit: ad8c2c3283df6fc624b7dfeb83a0449e2f4b92ed
-- 
2.55.0




             reply	other threads:[~2026-07-09  7:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09  7:32 Bruno Thomsen [this message]
2026-07-15 10:01 ` [ptxdist] [APPLIED] " Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260709073246.23988-1-bruno.thomsen@gmail.com \
    --to=bruno.thomsen@gmail.com \
    --cc=lapeddk@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox