* [ptxdist] [PATCH] ptxd_make_world_install_pack: fix system-python3/lib64 race
@ 2026-07-09 7:32 Bruno Thomsen
2026-07-15 10:01 ` [ptxdist] [APPLIED] " Michael Olbrich
0 siblings, 1 reply; 2+ messages in thread
From: Bruno Thomsen @ 2026-07-09 7:32 UTC (permalink / raw)
To: ptxdist; +Cc: Bruno Thomsen, Lars Alex Pedersen
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [APPLIED] ptxd_make_world_install_pack: fix system-python3/lib64 race
2026-07-09 7:32 [ptxdist] [PATCH] ptxd_make_world_install_pack: fix system-python3/lib64 race Bruno Thomsen
@ 2026-07-15 10:01 ` Michael Olbrich
0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2026-07-15 10:01 UTC (permalink / raw)
To: ptxdist; +Cc: Bruno Thomsen
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}"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-15 10:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-09 7:32 [ptxdist] [PATCH] ptxd_make_world_install_pack: fix system-python3/lib64 race Bruno Thomsen
2026-07-15 10:01 ` [ptxdist] [APPLIED] " Michael Olbrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox