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 <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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Awais Belal 2025-03-12 23:31:33 +05:00 committed by Khem Raj
parent 77888be72e
commit 1ee9d57cac
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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"