All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sstate: import errno module in sstate_package function
@ 2021-08-10 16:40 Diego Sueiro
  2021-08-10 17:06 ` [OE-core] " Jose Quaresma
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Sueiro @ 2021-08-10 16:40 UTC (permalink / raw)
  To: openembedded-core; +Cc: nd, Diego Sueiro

The errno module is missing causing the following error message:
File: '/<...>/poky/meta/classes/sstate.bbclass', lineno: 708, function: sstate_package
     0704:        except PermissionError:
     0705:            pass
     0706:        except OSError as e:
     0707:            # Handle read-only file systems gracefully
 *** 0708:            if e.errno != errno.EROFS:
     0709:                raise e
     0710:
     0711:    return
     0712:
Exception: NameError: name 'errno' is not defined

Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
---
 meta/classes/sstate.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 554e401ee2..187cb04534 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -640,6 +640,7 @@ python sstate_hardcode_path () {
 
 def sstate_package(ss, d):
     import oe.path
+    import errno
 
     tmpdir = d.getVar('TMPDIR')
 
-- 
2.17.1


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

* Re: [OE-core] [PATCH] sstate: import errno module in sstate_package function
  2021-08-10 16:40 [PATCH] sstate: import errno module in sstate_package function Diego Sueiro
@ 2021-08-10 17:06 ` Jose Quaresma
  0 siblings, 0 replies; 2+ messages in thread
From: Jose Quaresma @ 2021-08-10 17:06 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: openembedded-core, nd

Hi Diego,

A fix for this is already on master-next
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=master-next&id=0066f321061ca068a937e44d5b6785b84bafcb98

Diego Sueiro <diego.sueiro@arm.com> escreveu no dia terça, 10/08/2021
à(s) 17:41:
>
> The errno module is missing causing the following error message:
> File: '/<...>/poky/meta/classes/sstate.bbclass', lineno: 708, function: sstate_package
>      0704:        except PermissionError:
>      0705:            pass
>      0706:        except OSError as e:
>      0707:            # Handle read-only file systems gracefully
>  *** 0708:            if e.errno != errno.EROFS:
>      0709:                raise e
>      0710:
>      0711:    return
>      0712:
> Exception: NameError: name 'errno' is not defined
>
> Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
> ---
>  meta/classes/sstate.bbclass | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 554e401ee2..187cb04534 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -640,6 +640,7 @@ python sstate_hardcode_path () {
>
>  def sstate_package(ss, d):
>      import oe.path
> +    import errno
>
>      tmpdir = d.getVar('TMPDIR')
>
> --
> 2.17.1
>
>
> 
>


-- 
Best regards,

José Quaresma

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

end of thread, other threads:[~2021-08-10 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-10 16:40 [PATCH] sstate: import errno module in sstate_package function Diego Sueiro
2021-08-10 17:06 ` [OE-core] " Jose Quaresma

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.