Skip to contentSkip to conversation

python3-pillow: Add missing rdep on py3-compile for ptests

PATCH New Khem Raj 1 participant 4 messages Sep 15, 2024

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/4 python3-pillow: Add missing rdep on py3-compile for ptests

---
 meta-python/recipes-devtools/python/python3-pillow_10.4.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pillow_10.4.0.bb +2 -1
index 2a9d9217f6..a9cb903ac1 100644
@@ -41,12 +41,13 @@ RDEPENDS:${PN} += " \
     python3-numbers \
     ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb', '', d)} \
 "
-
+# python3-compile for filecmp module
 RDEPENDS:${PN}-ptest += " \
     bash \
     ghostscript \
     jpeg-tools \
     libwebp \
+    python3-compile \
     python3-core \
     python3-image \
     python3-mmap \
author
#1 lore raw

PATCH 2/4 python-ujson: Use python_setuptools_build_meta

Drop the patch to disable strip instead set the env variable. set UJSON_BUILD_NO_STRIP=1 and get rid of one pending patch

---
 ...up.py-Do-not-strip-debugging-symbols.patch | 37 -------------------
 .../python/python3-ujson_5.10.0.bb            | 10 +++--
 2 files changed, 6 insertions(+), 41 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-ujson/0001-setup.py-Do-not-strip-debugging-symbols.patch
meta-python/recipes-devtools/python/python3-ujson/0001-setup.py-Do-not-strip-debugging-symbols.patch deleted +0 -37
deleted file mode 100644
index 8ba8ada556..0000000000
@@ -1,37 +0,0 @@
-From aec3b64b0aaea0178b44ea65a204d76696e6a45e Mon Sep 17 00:00:00 2001
-From: Leon Anavi <[email protected]>
-Date: Mon, 10 Jan 2022 14:04:28 +0200
-Subject: [PATCH] setup.py: Do not strip debugging symbols
-
-Do not strip debugging symbols from Linux binaries to avoid
-bitbake build errors related to already-stripped.
-
-Signed-off-by: Leon Anavi <[email protected]>
----
-Upstream-Status: Pending
-
- setup.py | 8 +-------
- 1 file changed, 1 insertion(+), 7 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index b98963b..d42f07a 100644
---- a/setup.py
-+++ b/setup.py
-@@ -19,13 +19,7 @@ if not dconv_libs:
-     dconv_source_files.extend(glob("./deps/double-conversion/double-conversion/*.cc"))
- dconv_source_files.append("./lib/dconv_wrapper.cc")
- 
--if platform.system() == "Linux" and environ.get("UJSON_BUILD_NO_STRIP", "0") not in (
--    "1",
--    "True",
--):
--    strip_flags = ["-Wl,--strip-all"]
--else:
--    strip_flags = []
-+strip_flags = []
- 
- module1 = Extension(
-     "ujson",
--- 
-2.25.1
-
meta-python/recipes-devtools/python/python3-ujson_5.10.0.bb +6 -4
index c64c800626..80b5e6207c 100644
@@ -6,15 +6,17 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e0039a83d8a99726b5
 
 SRC_URI[sha256sum] = "b3cd8f3c5d8c7738257f1018880444f7b7d9b66232c64649f562d7ba86ad4bc1"
 
-inherit pypi ptest setuptools3
+inherit pypi ptest python_setuptools_build_meta
+
+# let OE do the strip operation
+export UJSON_BUILD_NO_STRIP = "1"
+
+DEPENDS += "python3-setuptools-scm-native"  
 
 SRC_URI += " \
     file://run-ptest \
-    file://0001-setup.py-Do-not-strip-debugging-symbols.patch \
 "
 
-DEPENDS += "python3-setuptools-scm-native"
-
 RDEPENDS:${PN} += "\
     python3-datetime \
     python3-numbers \
author
#2 lore raw

PATCH 3/4 python3-pylint: Add missing ptest rdep on python3-misc

In reply to Khem Raj
---
 meta-python/recipes-devtools/python/python3-pylint_3.2.2.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-pylint_3.2.2.bb +2 -1
index 0de1576af4..eae30dfbff 100644
@@ -25,10 +25,11 @@ RDEPENDS:${PN} += "\
     python3-shell \
     python3-tomlkit \
     "
-
+# python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += " \
     python3-core \
     python3-git \
+    python3-misc \
     python3-py \
     python3-pytest \
     python3-pytest-benchmark \
author
#3 lore raw

PATCH 4/4 python3-fastjsonschema: Add missing rdeps for ptests

In reply to Khem Raj

Allocated 5G RAM to qemu when running the ptest to avoid OOMs

---
 meta-python/recipes-core/images/meta-python-image-ptest.bb     | 3 ++-
 .../recipes-devtools/python/python3-fastjsonschema_2.20.0.bb   | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-core/images/meta-python-image-ptest.bb +2 -1
index 002bd7a39e..794b9d1e4d 100644
@@ -29,7 +29,8 @@ QB_MEM = "-m 1024"
 #QB_MEM:virtclass-mcextend-<pn> = "-m 4096"
 # python3-scrypt ptests run into OOMs on RISCV64 qemu
 QB_MEM:virtclass-mcextend-python3-scrypt = "-m 2048"
-QB_MEM:virtclass-mcextend-python3-fastjsonschema = "-m 2048"
+# Needs atleast 5G to avoid OOMs
+QB_MEM:virtclass-mcextend-python3-fastjsonschema = "-m 5120"
 QB_MEM:virtclass-mcextend-python3-pillow = "-m 2048"
 
 TEST_SUITES = "ping ssh parselogs ptest"
meta-python/recipes-devtools/python/python3-fastjsonschema_2.20.0.bb +2 -0
index 0524a73b67..4dd9444a9a 100644
@@ -17,9 +17,11 @@ do_install_ptest() {
 	cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
 }
 
+# python3-misc for timeit.py
 RDEPENDS:${PN}-ptest += "\
     python3-colorama \
     python3-jsonschema \
+    python3-misc \
     python3-pylint \
     python3-pytest \
     python3-pytest-benchmark \