diff mbox series

[meta-oe,meta-python,2/2] python3-cheetah: fixup native RDEPENDS

Message ID 20250312183133.3403868-2-awais.belal@gmail.com
State Under Review
Headers show
Series [meta-oe,meta-python,1/2] python3-legacy-cgi: introduce recipe | expand

Commit Message

Awais Belal March 12, 2025, 6:31 p.m. UTC
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 <module>
> | 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 <awais.belal@gmail.com>
---
 .../recipes-devtools/python/python3-cheetah_3.2.6.post1.bb      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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"