[oe] [meta-oe][PATCH] smem: matplotlib is an optional depencency
André Draszik
git at andred.net
Wed Mar 11 10:06:03 UTC 2020
On Wed, 2020-03-11 at 09:43 +0000, André Draszik wrote:
> On Wed, 2020-03-11 at 07:55 +0000, Nicola Lunghi wrote:
> > smem doesn't need matplotlib and numpy to run, is an optional dependency only
> > needed to produce graphs.
>
> Right, that's why it's an RRECOMMENDS. If you don't want it in the image, just do
> BAD_RECOMMENDATIONS as per usual practice :-)
Also, smem really wants those to produce graphs. If you want something simple on
the target to just capture the data, there is smemcap as a separate utility
(and package).
A.
>
> Cheers,
> Andre'
>
> > 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