meta-openembedded/meta-python/recipes-devtools/python/python3-systemd_235.bb
Chen Qi 9e825eccc9
python3-systemd: fix build failure caused by race condition
For now, building python3-systemd sometimes reports error:

  pyutil.o not found

This is because its setup.py is not written in a way to handle
race condition. Multiple modules are using the same .c file,
resulting in the corresponding .o file generated multiple times.

The latest release of python3-systemd is 235, and the latest codes
have switched away from setup.py. So we'd better not patch setup.py.
Instead, we handle this issue by making its modules compile one by
one. It only has 5 modules, so there should be little impact on
building time.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-04 23:14:25 -08:00

21 lines
704 B
BlitzBasic

SUMMARY = "Python interface for libsystemd"
HOMEPAGE = "https://github.com/systemd/python-systemd"
LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4fbd65380cdd255951079008b364516c"
PYPI_PACKAGE = "systemd-python"
SRC_URI:append:libc-musl = " file://0001-Provide-implementation-of-strndupa-for-musl.patch"
SRC_URI[sha256sum] = "4e57f39797fd5d9e2d22b8806a252d7c0106c936039d1e71c8c6b8008e695c0a"
DEPENDS += "systemd (<=235)"
inherit pypi features_check pkgconfig setuptools3
REQUIRED_DISTRO_FEATURES = "systemd"
RDEPENDS:${PN} += "systemd python3-syslog python3-logging python3-syslog"
# v235's setup.py is not written in a way to avoid race condition
PARALLEL_MAKE = "-j 1"