Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mickledore] [pyyaml] QA issue: python3-pyyaml uses *yaml.so, is not mentioned in RDEPENDS #1100

Open
jdiez17 opened this issue Feb 8, 2024 · 0 comments
Assignees

Comments

@jdiez17
Copy link
Contributor

jdiez17 commented Feb 8, 2024

Describe the bug
After adding ros-core to my image, python3-pyyaml got pulled in as a dependency and built.
I got a QA error saying that the package uses libyaml.so, but it is not mentioned in the RDEPENDS.

This patch solves the issue:

diff --git a/meta/recipes-devtools/python/python3-pyyaml_6.0.bb b/meta/recipes-devtools/python/python3-pyyaml_6.0.bb
index d142a0fc3e2..246963b728a 100644
--- a/meta/recipes-devtools/python/python3-pyyaml_6.0.bb
+++ b/meta/recipes-devtools/python/python3-pyyaml_6.0.bb
@@ -16,4 +16,7 @@ RDEPENDS:${PN} += "\
     ${PYTHON_PN}-netclient \
 "

+PACKAGECONFIG ??= "libyaml"
+PACKAGECONFIG[libyaml] = "--with-libyaml,--without-libyaml,libyaml"
+

To Reproduce

BB_VERSION           = "2.4.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "phyboard-pollux-imx8mp-3"
DISTRO               = "raccoon"
DISTRO_VERSION       = "0.3"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU           = ""
DISTRO_NAME          = "RACCOON OS"
ROS_DISTRO           = "humble"
ROS_VERSION          = "2"
ROS_PYTHON_VERSION   = "3"

(distro based on Poky Mickledore)

Unfortunately I don't have the original compilation error anymore.
I am building the image inside a crops/poky:ubuntu-22.04 container.

@robwoolley robwoolley self-assigned this Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants