[OE-core] [PATCH 4/4] gpgme: Inherit distutils3-base

Alex Kiernan alex.kiernan at gmail.com
Mon Sep 17 17:13:33 UTC 2018


Thanks, that works for me. I'll get a patch posted.
On Mon, Sep 17, 2018 at 3:57 PM Khem Raj <raj.khem at gmail.com> wrote:
>
> No, it doesn't. but
> inherit distutils-common-base python3native
> together will work and also drop the runtime dep on python
> On Mon, Sep 17, 2018 at 2:27 AM Alex Kiernan <alex.kiernan at gmail.com> wrote:
> >
> > Hi Khem
> >
> > On Tue, Aug 28, 2018 at 6:51 PM Khem Raj <raj.khem at gmail.com> wrote:
> > >
> > > its building a module therefore its important to provide correct cross
> > > build environment, distutils3-base automatically inherits python3native
> > > this is seen when using clang where it tried to link with gcc since the
> > > environment falls back to builtin LDSHARED variable
> > >
> > > Signed-off-by: Khem Raj <raj.khem at gmail.com>
> >
> > With this change I'm getting python3 pulled into images when using
> > gpgme, which I really don't want. If I add:
> >
> > diff --git a/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > b/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > index ac9fccf..8b34aa3 100644
> > --- a/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > +++ b/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > @@ -50,6 +50,8 @@ LANGUAGES .= "${@bb.utils.contains('PACKAGECONFIG',
> > 'python3', ' python3', '', d
> >
> >  PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', '
> > distutils-base', '', d)}"
> >  PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', '
> > distutils3-base', '', d)}"
> > +PYTHON_INHERIT_class-target = "${@bb.utils.contains('PACKAGECONFIG',
> > 'python2', ' pythonnative', '', d)}"
> > +PYTHON_INHERIT_class-target .= "${@bb.utils.contains('PACKAGECONFIG',
> > 'python3', ' python3native', '', d)}"
> >
> >  EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
> >                   --disable-gpgconf-test \
> >
> > I avoid that runtime dep, but does that still work for clang?
> >
> > > ---
> > >  meta/recipes-support/gpgme/gpgme_1.11.1.bb | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/meta/recipes-support/gpgme/gpgme_1.11.1.bb b/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > > index 151fc03f55..ac9fccf133 100644
> > > --- a/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > > +++ b/meta/recipes-support/gpgme/gpgme_1.11.1.bb
> > > @@ -48,8 +48,8 @@ LANGUAGES ?= "${DEFAULT_LANGUAGES}"
> > >  LANGUAGES .= "${@bb.utils.contains('PACKAGECONFIG', 'python2', ' python2', '', d)}"
> > >  LANGUAGES .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', ' python3', '', d)}"
> > >
> > > -PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}"
> > > -PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}"
> > > +PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', ' distutils-base', '', d)}"
> > > +PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', ' distutils3-base', '', d)}"
> > >
> > >  EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
> > >                   --disable-gpgconf-test \
> > > --
> > > 2.18.0
> > >
> > > --
> > > _______________________________________________
> > > Openembedded-core mailing list
> > > Openembedded-core at lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> >
> >
> > --
> > Alex Kiernan



-- 
Alex Kiernan



More information about the Openembedded-core mailing list