All of lore.kernel.org
 help / color / mirror / Atom feed
* [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04"
@ 2020-06-05 15:50 Peter Kjellerstedt
  2020-06-09 12:22 ` [OE-core] " Richard Purdie
       [not found] ` <1616DF96BBE13D68.17072@lists.openembedded.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Kjellerstedt @ 2020-06-05 15:50 UTC (permalink / raw)
  To: openembedded-core

This reverts commit 4b26eaf7152fb712aba47a0c746333578f58ee8d.

Since the problem occurred while importing prserv, the solution has
been moved into it instead so it is solved for all cases where prserv
is imported, most notably when using devtool.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/lib/oe/prservice.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/meta/lib/oe/prservice.py b/meta/lib/oe/prservice.py
index 2d3c9c7e50..fcdbe66c19 100644
--- a/meta/lib/oe/prservice.py
+++ b/meta/lib/oe/prservice.py
@@ -3,10 +3,6 @@
 #
 
 def prserv_make_conn(d, check = False):
-    # Otherwise this fails when called from recipes which e.g. inherit python3native (which sets _PYTHON_SYSCONFIGDATA_NAME) with:
-    # No module named '_sysconfigdata'
-    if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
-        del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
     import prserv.serv
     host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
     try:

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OE-core] [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04"
  2020-06-05 15:50 [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04" Peter Kjellerstedt
@ 2020-06-09 12:22 ` Richard Purdie
       [not found] ` <1616DF96BBE13D68.17072@lists.openembedded.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2020-06-09 12:22 UTC (permalink / raw)
  To: Peter Kjellerstedt, openembedded-core

On Fri, 2020-06-05 at 17:50 +0200, Peter Kjellerstedt wrote:
> This reverts commit 4b26eaf7152fb712aba47a0c746333578f58ee8d.
> 
> Since the problem occurred while importing prserv, the solution has
> been moved into it instead so it is solved for all cases where prserv
> is imported, most notably when using devtool.
> 
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>

I can see why you've done this however it really is a bit of a hack :(.

At least in this code its all together with the OE code which uses it.
With it moved into bitbake, its moving "OE" knowledge over there and
that worries me a lot as people won't find it when changing OE-Core.

Chris did have some ideas about this which seemed on the right track:

https://lists.yoctoproject.org/g/yocto/message/49571

although it seems that solution didn't work.

I'd like to better understand this issue before we merge things to
bitbake.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04"
       [not found] ` <1616DF96BBE13D68.17072@lists.openembedded.org>
@ 2020-06-09 12:26   ` Richard Purdie
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2020-06-09 12:26 UTC (permalink / raw)
  To: Peter Kjellerstedt, openembedded-core

On Tue, 2020-06-09 at 13:22 +0100, Richard Purdie via
lists.openembedded.org wrote:
> On Fri, 2020-06-05 at 17:50 +0200, Peter Kjellerstedt wrote:
> > This reverts commit 4b26eaf7152fb712aba47a0c746333578f58ee8d.
> > 
> > Since the problem occurred while importing prserv, the solution has
> > been moved into it instead so it is solved for all cases where
> > prserv
> > is imported, most notably when using devtool.
> > 
> > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> 
> I can see why you've done this however it really is a bit of a hack
> :(.
> 
> At least in this code its all together with the OE code which uses
> it.
> With it moved into bitbake, its moving "OE" knowledge over there and
> that worries me a lot as people won't find it when changing OE-Core.
> 
> Chris did have some ideas about this which seemed on the right track:
> 
> https://lists.yoctoproject.org/g/yocto/message/49571
> 
> although it seems that solution didn't work.
> 
> I'd like to better understand this issue before we merge things to
> bitbake.

btw, the better question to ask is why is python3-native being used to
execute bitbake code? 

I think the wrong PATH is being used somewhere in devtool. The real fix
is to track down where that is.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04"
       [not found] <1615B09A37DD131A.25101@lists.openembedded.org>
@ 2020-06-05 15:53 ` Peter Kjellerstedt
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Kjellerstedt @ 2020-06-05 15:53 UTC (permalink / raw)
  To: openembedded-core

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Peter Kjellerstedt
> Sent: den 5 juni 2020 17:50
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04"
> 
> This reverts commit 4b26eaf7152fb712aba47a0c746333578f58ee8d.
> 
> Since the problem occurred while importing prserv, the solution has
> been moved into it instead so it is solved for all cases where prserv
> is imported, most notably when using devtool.
> 
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> ---
>  meta/lib/oe/prservice.py | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/meta/lib/oe/prservice.py b/meta/lib/oe/prservice.py
> index 2d3c9c7e50..fcdbe66c19 100644
> --- a/meta/lib/oe/prservice.py
> +++ b/meta/lib/oe/prservice.py
> @@ -3,10 +3,6 @@
>  #
> 
>  def prserv_make_conn(d, check = False):
> -    # Otherwise this fails when called from recipes which e.g. inherit python3native (which sets _PYTHON_SYSCONFIGDATA_NAME) with:
> -    # No module named '_sysconfigdata'
> -    if '_PYTHON_SYSCONFIGDATA_NAME' in os.environ:
> -        del os.environ['_PYTHON_SYSCONFIGDATA_NAME']
>      import prserv.serv
>      host_params = list([_f for _f in (d.getVar("PRSERV_HOST") or '').split(':') if _f])
>      try:

There is a corresponding patch sent to the bitbake-devel list that should 
be integrated before/together with this.

//Peter


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-09 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 15:50 [master][dunfell] Revert "prservice.py: fix do_package with newer Python in Ubuntu 20.04" Peter Kjellerstedt
2020-06-09 12:22 ` [OE-core] " Richard Purdie
     [not found] ` <1616DF96BBE13D68.17072@lists.openembedded.org>
2020-06-09 12:26   ` Richard Purdie
     [not found] <1615B09A37DD131A.25101@lists.openembedded.org>
2020-06-05 15:53 ` Peter Kjellerstedt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.