* [PATCH] gpgme: Allow setuptools3-base to be excluded from the inherit list
@ 2022-10-05 10:48 David Bagonyi
2022-10-05 11:26 ` [OE-core] " Ross Burton
0 siblings, 1 reply; 3+ messages in thread
From: David Bagonyi @ 2022-10-05 10:48 UTC (permalink / raw)
To: openembedded-core; +Cc: David Bagonyi
Inheriting setuptools3-base adds a runtime dependency on Python.
This change makes inheriting setuptools3-base optional. If one does not
want a runtime dependency on Python, they can remove python from LANGUAGES.
Signed-off-by: David Bagonyi <david.bagonyi@gmail.com>
---
meta/recipes-support/gpgme/gpgme_1.18.0.bb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-support/gpgme/gpgme_1.18.0.bb b/meta/recipes-support/gpgme/gpgme_1.18.0.bb
index ca9c6cab14..af5b176363 100644
--- a/meta/recipes-support/gpgme/gpgme_1.18.0.bb
+++ b/meta/recipes-support/gpgme/gpgme_1.18.0.bb
@@ -50,6 +50,7 @@ LANGUAGES ?= "${DEFAULT_LANGUAGES} python"
PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}"
PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native python3targetconfig', '', d)}"
+PYTHON_INHERIT .= "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}"
EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
--disable-gpgconf-test \
@@ -59,7 +60,7 @@ EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \
--disable-lang-python-test \
'
-inherit autotools texinfo binconfig-disabled pkgconfig setuptools3-base ${PYTHON_INHERIT} multilib_header
+inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} multilib_header
export PKG_CONFIG='pkg-config'
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] gpgme: Allow setuptools3-base to be excluded from the inherit list
2022-10-05 10:48 [PATCH] gpgme: Allow setuptools3-base to be excluded from the inherit list David Bagonyi
@ 2022-10-05 11:26 ` Ross Burton
2022-10-05 15:06 ` Peter Kjellerstedt
0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2022-10-05 11:26 UTC (permalink / raw)
To: david.bagonyi@gmail.com; +Cc: openembedded-core@lists.openembedded.org
> On 5 Oct 2022, at 11:48, David Bagonyi via lists.openembedded.org <david.bagonyi=gmail.com@lists.openembedded.org> wrote:
> PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}"
> PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native python3targetconfig', '', d)}"
> +PYTHON_INHERIT .= "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}”
Note that setuptools3-base itself inherits python3native and python3targetconfig. This is important due to ordering: if python2 is selected then pythonnative needs to be inherited *after* setuptools3-base so that PYTHON is python2 and not python3.
However as Py2 has been EOL for nearly three years now, I suggest we just rip out all of the python2 parts in the process of fixing the inherit.
Ross
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [OE-core] [PATCH] gpgme: Allow setuptools3-base to be excluded from the inherit list
2022-10-05 11:26 ` [OE-core] " Ross Burton
@ 2022-10-05 15:06 ` Peter Kjellerstedt
0 siblings, 0 replies; 3+ messages in thread
From: Peter Kjellerstedt @ 2022-10-05 15:06 UTC (permalink / raw)
To: Ross Burton, david.bagonyi@gmail.com
Cc: openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Ross Burton
> Sent: den 5 oktober 2022 13:27
> To: david.bagonyi@gmail.com
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core] [PATCH] gpgme: Allow setuptools3-base to be
> excluded from the inherit list
>
> > On 5 Oct 2022, at 11:48, David Bagonyi via lists.openembedded.org <david.bagonyi=gmail.com@lists.openembedded.org> wrote:
> > PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}"
> > PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native python3targetconfig', '', d)}"
> > +PYTHON_INHERIT .= "${@bb.utils.contains('LANGUAGES', 'python', 'setuptools3-base', '', d)}”
>
> Note that setuptools3-base itself inherits python3native and
> python3targetconfig. This is important due to ordering: if python2 is
> selected then pythonnative needs to be inherited *after* setuptools3-base
> so that PYTHON is python2 and not python3.
>
> However as Py2 has been EOL for nearly three years now, I suggest we just
> rip out all of the python2 parts in the process of fixing the inherit.
>
> Ross
Also note that the above should use "+=" rather than ".=", as otherwise
the inherits will be concatenated into a mess without spaces if multiple
options are enabled at the same time.
//Peter
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-05 15:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-05 10:48 [PATCH] gpgme: Allow setuptools3-base to be excluded from the inherit list David Bagonyi
2022-10-05 11:26 ` [OE-core] " Ross Burton
2022-10-05 15:06 ` Peter Kjellerstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox