[oe] [meta-oe][PATCH] smem: matplotlib is an optional depencency

Nicola Lunghi nick83ola at gmail.com
Wed Mar 11 07:55:14 UTC 2020


smem doesn't need matplotlib and numpy to run, is an optional dependency only
needed to produce graphs.

This is needed to avoid to include and build matplotlib and numpy by default

Signed-off-by: Nicola Lunghi <nick83ola at gmail.com>
---
 meta-oe/recipes-support/smem/smem_1.5.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-support/smem/smem_1.5.bb b/meta-oe/recipes-support/smem/smem_1.5.bb
index 90db9c3f3..446325e93 100644
--- a/meta-oe/recipes-support/smem/smem_1.5.bb
+++ b/meta-oe/recipes-support/smem/smem_1.5.bb
@@ -20,6 +20,9 @@ UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
 
 S = "${WORKDIR}/${BPN}-${HG_CHANGESET}"
 
+#PACKAGECONFIG ?= "graph"
+PACKAGECONFIG[graph] = ",,,python3-matplotlib python3-numpy"
+
 do_compile() {
         ${CC} ${CFLAGS} ${LDFLAGS} smemcap.c -o smemcap
 }
@@ -34,7 +37,6 @@ do_install() {
 }
 
 RDEPENDS_${PN} = "python3-core python3-compression"
-RRECOMMENDS_${PN} = "python3-matplotlib python3-numpy"
 
 PACKAGE_BEFORE_PN = "smemcap"
 
-- 
2.20.1



More information about the Openembedded-devel mailing list