Subject: Backport fix for os.errno references in fetch2 (Thud) To: bitbake-devel@lists.openembedded.org From: "Daniel Dragomir" X-Originating-Location: Galati, RO (5.13.234.136) X-Originating-Platform: Linux Firefox 84 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 28 Jan 2021 15:48:33 -0800 Message-ID: Content-Type: multipart/alternative; boundary="LOFlfrXsVx2p0qVod40t" --LOFlfrXsVx2p0qVod40t Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello maintainers! Can you please backport commit e74f80433e9a7e7ae7ec1472eb7387301d2dc816 ("= bitbake: fetch2: Fix os.errno references") on Thud branch? Don't know if Thud is still supported, but I see intermittent fetch failur= es on Thud which were fixed with this patch (present starting with Warrior = branch): File: '..../poky/bitbake/lib/bb/fetch2/__init__.py', lineno: 1720, functio= n: download 1716: 1717:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= = =A0=C2=A0=C2=A0=C2=A0 update_stamp(ud, self.d) 1718: 1719:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ex= cept IOError as e: *** 1720:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 if e.errno in [os.errno.ESTALE]: 1721:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= = =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 logger.error("Stale Error Ob= served %s." % u) 1722:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= = =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 raise ChecksumError("Stale E= rror Detected") 1723: 1724:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ex= cept BBFetchException as e: Exception: AttributeError: module 'os' has no attribute 'errno' Best regards! Daniel --LOFlfrXsVx2p0qVod40t Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello maintainers!

Can you please backport commit e74f80433e9a7e= 7ae7ec1472eb7387301d2dc816 ("bitbake: fetch2: Fix os.errno references") on = Thud branch?

Don't know if Thud is still supported, but I see in= termittent fetch failures on Thud which were fixed with this patch (present= starting with Warrior branch):

File: '..../poky/bitbake/lib/bb/= fetch2/__init__.py', lineno: 1720, function: download
  &nbs= p;   1716:
      1717:  &= nbsp;           &nbs= p; update_stamp(ud, self.d)
      1718:
=      1719:       &nb= sp;    except IOError as e:
  *** 1720:  = ;            &n= bsp; if e.errno in [os.errno.ESTALE]:
      1= 721:            = ;        logger.error("Stale Error Obser= ved %s." % u)
      1722:   &n= bsp;            = ;    raise ChecksumError("Stale Error Detected")
 =      1723:
      1724:&nb= sp;           except BBFe= tchException as e:
Exception: AttributeError: module 'os' has no attri= bute 'errno'

Best regards!
Daniel --LOFlfrXsVx2p0qVod40t--