diff mbox series

[meta-python] python3-legacy-cgi: upgrade 2.6.2 -> 2.6.4

Message ID 20260408040331.22227-1-liuyd.fnst@fujitsu.com
State New
Headers show
Series [meta-python] python3-legacy-cgi: upgrade 2.6.2 -> 2.6.4 | expand

Commit Message

Liu Yiding April 8, 2026, 4:03 a.m. UTC
Add do_install function to resolve following issue.
  python3-legacy-cgi-2.6.4-r0 do_package_qa: QA Issue: /usr/lib/python3.14/site-packages/.pc/0001-cgi.py-fixup-interpreter-according-to-OE.patch/cgi.py contained in package python3-legacy-cgi requires /usr/local/bin/python, but no providers found in RDEPENDS:python3-legacy-cgi? [file-rdeps]

Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
---
 ...3-legacy-cgi_2.6.2.bb => python3-legacy-cgi_2.6.4.bb} | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-legacy-cgi_2.6.2.bb => python3-legacy-cgi_2.6.4.bb} (65%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb b/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.4.bb
similarity index 65%
rename from meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb
rename to meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.4.bb
index 2b2840ae14..85328ed951 100644
--- a/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.2.bb
+++ b/meta-python/recipes-devtools/python/python3-legacy-cgi_2.6.4.bb
@@ -5,7 +5,7 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=4b8801e752a2c70ac41a5f9aa243f766"
 
 PYPI_PACKAGE = "legacy_cgi"
 
-inherit python_poetry_core pypi
+inherit python_poetry_core pypi python_hatchling
 
 SRC_URI += "\
     file://0001-cgi.py-fixup-interpreter-according-to-OE.patch \
@@ -15,8 +15,13 @@  DEPENDS += "\
     ${PYTHON_PN}-setuptools-scm-native \
 "
 
+# Add this function to solve package QA Issue
+do_install:append() {
+        rm ${D}${PYTHON_SITEPACKAGES_DIR}/.pc -rf
+}
+
 #RDEPENDS:${PN} = "python3-core"
 
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "9952471ceb304043b104c22d00b4f333cac27a6abe446d8a528fc437cf13c85f"
+SRC_URI[sha256sum] = "abb9dfc7835772f7c9317977c63253fd22a7484b5c9bbcdca60a29dcce97c577"