mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Bruno Thomsen <bruno.thomsen@gmail.com>
Subject: Re: [ptxdist] [APPLIED] ptxd_make_world_install_pack: fix system-python3/lib64 race
Date: Wed, 15 Jul 2026 12:01:58 +0200	[thread overview]
Message-ID: <20260715100158.1255738-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20260709073246.23988-1-bruno.thomsen@gmail.com>

Thanks, applied as 111ae94e6720c08d227120aedf5b983e9834aab2.

Michael

[sent from post-receive hook]

On Wed, 15 Jul 2026 12:01:58 +0200, Bruno Thomsen <bruno.thomsen@gmail.com> wrote:
> 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>
> Message-Id: <20260709073246.23988-1-bruno.thomsen@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
> index b661036fd7cc..ab8f442a21a9 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}"



      reply	other threads:[~2026-07-15 10:02 UTC|newest]

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

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=20260715100158.1255738-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=bruno.thomsen@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