mirror of
git://git.yoctoproject.org/poky.git
synced 2025-08-22 00:42:05 +02:00

The environment variable SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT allows to override the subprocess timeout. The default is 40 seconds and should work for most needs.[1] However, it was not enough while using git shallow tarball and starting multiple Yocto world builds in one host. | File "tmp/work/x86_64-linux/python3-scancode-native/32.1.0/recipe-sysroot- native/usr/lib/python3.13/subprocess.py", line 1263, in _check_timeout | raise TimeoutExpired( | ...<2 lines>... | stderr=b''.join(stderr_seq) if stderr_seq else None) | subprocess.TimeoutExpired: Command '['git', '--git-dir', 'tmp/work/x86_64- linux/python3-scancode-native/32.1.0/git/.git', 'status', '--porcelain', '--untracked-files=no']' timed out after 40 seconds Explicitly set variable SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT to 600s in bbclass, and we could override it in local.conf [1] https://github.com/pypa/setuptools-scm/blob/main/docs/overrides.md (From OE-Core rev: a3a2edbf7139b7f8c665c2b0b13e094a334e4441) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
#
|
|
# Copyright OpenEmbedded Contributors
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
DEPENDS:append:class-target = " python3-native python3"
|
|
DEPENDS:append:class-nativesdk = " python3-native python3"
|
|
RDEPENDS:${PN}:append:class-target = " python3-core"
|
|
|
|
export STAGING_INCDIR
|
|
export STAGING_LIBDIR
|
|
|
|
# LDSHARED is the ld *command* used to create shared library
|
|
export LDSHARED = "${CCLD} -shared"
|
|
# LDXXSHARED is the ld *command* used to create shared library of C++
|
|
# objects
|
|
export LDCXXSHARED = "${CXX} -shared"
|
|
# CCSHARED are the C *flags* used to create objects to go into a shared
|
|
# library (module)
|
|
export CCSHARED = "-fPIC -DPIC"
|
|
# LINKFORSHARED are the flags passed to the $(CC) command that links
|
|
# the python executable
|
|
export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
|
|
|
|
# The environment variable SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT allows
|
|
# to override the subprocess timeout.
|
|
export SETUPTOOLS_SCM_SUBPROCESS_TIMEOUT ??= "600"
|
|
|
|
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
|
|
FILES:${PN}-staticdev += "${PYTHON_SITEPACKAGES_DIR}/*.a"
|
|
FILES:${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
|
|
|
|
inherit python3native python3targetconfig
|