summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2024-02-08 18:18:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-10 14:13:24 +0000
commit21be9d1a4b1506d80c7d96b3801a91387c7ac617 (patch)
tree5e3a67d80691b878590f934dae8d049c73ad8621 /meta
parent0010d9fbd25c343ecb18014cbe5d0dd036edb651 (diff)
downloadpoky-21be9d1a4b1506d80c7d96b3801a91387c7ac617.tar.gz
python3-pyyaml: add PACKAGECONFIG for libyaml
For some time now, we have probably been susceptible to host contamination or at least non-deterministic behavior when libyaml was available in the build environment. The symptom is: ERROR: python3-pyyaml-6.0-r0 do_package_qa: QA Issue: /usr/lib/python3.11/site-packages/yaml/_yaml.cpython-311-aarch64-linux-gnu.so contained in package python3-pyyaml requires libyaml-0.so.2()(64bit), but no providers found in RDEPENDS:python3-pyyaml? [file-rdeps] >From the documentation: """ By default, the setup.py script checks whether LibYAML is installed and if so, builds and installs LibYAML bindings. To skip the check and force installation of LibYAML bindings, use the option --with-libyaml: python setup.py --with-libyaml install To disable the check and skip building and installing LibYAML bindings, use --without-libyaml: python setup.py --without-libyaml install """ Instead of leaving this to chance, add PACKAGECONFIG and by default build with the faster libyaml bindings. (From OE-Core rev: dfde9526f9183907b2bc47fde4f59ab3a5848d90) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb
index 61f7cbc6b3..102e2f2498 100644
--- a/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb
+++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb
@@ -12,6 +12,9 @@ inherit pypi python_setuptools_build_meta
12SRC_URI += "file://0001-Fix-builds-with-Cython-3.patch" 12SRC_URI += "file://0001-Fix-builds-with-Cython-3.patch"
13SRC_URI[sha256sum] = "bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43" 13SRC_URI[sha256sum] = "bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"
14 14
15PACKAGECONFIG ?= "libyaml"
16PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml"
17
15RDEPENDS:${PN} += "\ 18RDEPENDS:${PN} += "\
16 ${PYTHON_PN}-datetime \ 19 ${PYTHON_PN}-datetime \
17 ${PYTHON_PN}-netclient \ 20 ${PYTHON_PN}-netclient \