From 1ee9d57cace7c79d2a69bea96e8a6ccc5137464f Mon Sep 17 00:00:00 2001 From: Awais Belal Date: Wed, 12 Mar 2025 23:31:33 +0500 Subject: python3-cheetah: fixup native RDEPENDS cheetah-native is used while building mongodb and a build failure for mongodb identifies that the current version of cheetah templates requires the cgi module. The following is seen > | from Cheetah.Template import Template > | File > "/srv/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/mongodb/4.4.29/recipe-sysroot-native/usr/lib/python3.13/site-packages/Cheetah/Template.py", > line 24, in > | import cgi # Used by .webInput() if the template is a CGI script. > | ^^^^^^^^^^ > | ModuleNotFoundError: No module named 'cgi' This is fixed by utilizing the legacy-cgi module. Signed-off-by: Awais Belal Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-cheetah_3.2.6.post1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-cheetah_3.2.6.post1.bb b/meta-python/recipes-devtools/python/python3-cheetah_3.2.6.post1.bb index 6cba6b3adf..e7b404cd8f 100644 --- a/meta-python/recipes-devtools/python/python3-cheetah_3.2.6.post1.bb +++ b/meta-python/recipes-devtools/python/python3-cheetah_3.2.6.post1.bb @@ -9,7 +9,7 @@ UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" inherit pypi setuptools3 RDEPENDS:${PN} = "python3-pickle python3-pprint" -RDEPENDS:${PN}:class-native = "" +RDEPENDS:${PN}:class-native = "python3-legacy-cgi-native" BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf