Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33E2AECAAD3 for ; Wed, 14 Sep 2022 10:06:03 +0000 (UTC) Subject: Devtool fails if SRCREV is set to autorev #bitbake #poky #devtool #kirkstone To: openembedded-core@lists.openembedded.org From: shibi.cbe@gmail.com X-Originating-Location: Mumbai, Maharashtra, IN (52.95.75.11) X-Originating-Platform: Mac Chrome 104 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Wed, 14 Sep 2022 03:05:44 -0700 Message-ID: Content-Type: multipart/alternative; boundary="1n54gR33kQJJaSBUcK0t" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 14 Sep 2022 10:06:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/170652 --1n54gR33kQJJaSBUcK0t Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ello Everyone We perform yocto build and do devtool modify for one of package it works if we perform devtool modify for another package without resetting the prev= iously modified package we are getting below error in modified package duri= ng parsing bb step recipefile: SRC_URI=3D"git://git.com/pkg/linux;branch=3Dmulberry-5.10;protocol=3Dssh;na= me=3Dlinux;destsuffix=3Dgit SRCREV =3D "${AUTOREV}" PV =3D "5.10+git${SRCPV}" Yocto version: Kirkstone BB_SRCREV_POLICY =3D "clear" Error: ERROR: /local/home/test/workspace/poky/../sources/meta-mulberry/recipes-ker= nel/linux/linux_5.10.bb: Error executing a python function in :=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 =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 =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 =C2=A0| ETA:=C2=A0 --:--:-- The stack trace of python calls that resulted in this exception/failure was= : File: '', lineno: 21, function: 0017:__anon_56__local_home_test_workspace_poky_meta_classes_kernel_fitimage= _bbclass(d) 0018:__anon_795__local_home_test_workspace_poky_meta_classes_kernel_fitimag= e_bbclass(d) 0019:__anon_7__local_home_test_workspace_poky_meta_classes_kernel_devicetre= e_bbclass(d) 0020:__anon_717__local_home_test_workspace_poky_meta_classes_kernel_yocto_b= bclass(d) *** 0021:__anon_145__local_home_test_workspace_poky_meta_classes_externalsr= c_bbclass(d) File: '/local/home/shibikri/mulberry_workspace/poky/meta/classes/externalsr= c.bbclass', lineno: 66, function: __anon_145__local_home_test_workspace_pok= y_meta_classes_externalsrc_bbclass 0062:=C2=A0 =C2=A0 =C2=A0 =C2=A0 else: 0063:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 d.setVar('B', '${WORKDIR}/${= BPN}-${PV}/') 0064: 0065:=C2=A0 =C2=A0 =C2=A0 =C2=A0 local_srcuri =3D [] *** 0066:=C2=A0 =C2=A0 =C2=A0 =C2=A0 fetch =3D bb.fetch2.Fetch((d.getVar('S= RC_URI') or '').split(), d) 0067:=C2=A0 =C2=A0 =C2=A0 =C2=A0 for url in fetch.urls: 0068:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 url_data =3D fetch.ud[url] 0069:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 parm =3D url_data.parm 0070:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (url_data.type =3D=3D 'fi= le' or File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.py', = lineno: 1680, function: __init__ 1676: 1677:=C2=A0 =C2=A0 =C2=A0 =C2=A0 for url in urls: 1678:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if url not in self.ud: 1679:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 try: *** 1680:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 self.ud[url] =3D FetchData(url, d, localonly) 1681:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 except NonLoca= lMethod: 1682:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = if localonly: 1683:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 self.ud[url] =3D None 1684:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 pass File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.py', = lineno: 1317, function: __init__ 1313:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 logger.warning('Consider upd= ating %s recipe to use "protocol" not "proto" in SRC_URI.', d.getVar('PN')) 1314:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.parm["protocol"] =3D se= lf.parm.get("proto", None) 1315: 1316:=C2=A0 =C2=A0 =C2=A0 =C2=A0 if hasattr(self.method, "urldata_init"): *** 1317:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.method.urldata_init= (self, d) 1318: 1319:=C2=A0 =C2=A0 =C2=A0 =C2=A0 if "localpath" in self.parm: 1320:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # if user sets localpath for= file, use it instead.\ 1321:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.localpath =3D self.parm= ["localpath"] File: '/local/home/shibikri/test/workspace/poky/bitbake/lib/bb/fetch2/git.p= y', lineno: 249, function: urldata_init 0245:=C2=A0 =C2=A0 =C2=A0 =C2=A0 write_tarballs =3D d.getVar("BB_GENERATE_M= IRROR_TARBALLS") or "0" 0246:=C2=A0 =C2=A0 =C2=A0 =C2=A0 ud.write_tarballs =3D write_tarballs !=3D = "0" or ud.rebaseable 0247:=C2=A0 =C2=A0 =C2=A0 =C2=A0 ud.write_shallow_tarballs =3D (d.getVar("B= B_GENERATE_SHALLOW_TARBALLS") or write_tarballs) !=3D "0" 0248: *** 0249:=C2=A0 =C2=A0 =C2=A0 =C2=A0 ud.setup_revisions(d) 0250: 0251:=C2=A0 =C2=A0 =C2=A0 =C2=A0 for name in ud.names: 0252:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 # Ensure anything that doesn= 't look like a sha256 checksum/revision is translated into one 0253:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if not ud.revisions[name] or= len(ud.revisions[name]) !=3D 40=C2=A0 or (False in [c in "abcdef0123456789= " for c in ud.revisions[name]]): File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.py', = lineno: 1347, function: setup_revisions 1343: 1344:=C2=A0 =C2=A0 def setup_revisions(self, d): 1345:=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.revisions =3D {} 1346:=C2=A0 =C2=A0 =C2=A0 =C2=A0 for name in self.names: *** 1347:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.revisions[name] =3D= srcrev_internal_helper(self, d, name) 1348: 1349:=C2=A0 =C2=A0 =C2=A0 =C2=A0 # add compatibility code for non name spec= ified case 1350:=C2=A0 =C2=A0 =C2=A0 =C2=A0 if len(self.names) =3D=3D 1: 1351:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self.revision =3D self.revis= ions[self.names[0]] File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.py', = lineno: 1212, function: srcrev_internal_helper 1208: 1209:=C2=A0 =C2=A0 if srcrev =3D=3D "INVALID" or not srcrev: 1210:=C2=A0 =C2=A0 =C2=A0 =C2=A0 raise FetchError("Please set a valid SRCRE= V for url %s (possible key names are %s, or use a ;rev=3DX URL parameter)" = % (str(attempts), ud.url), ud.url) 1211:=C2=A0 =C2=A0 if srcrev =3D=3D "AUTOINC": *** 1212:=C2=A0 =C2=A0 =C2=A0 =C2=A0 srcrev =3D ud.method.latest_revision(u= d, d, name) 1213: 1214:=C2=A0 =C2=A0 return srcrev 1215: 1216:def get_checksum_file_list(d): File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.py', = lineno: 1624, function: latest_revision 1620:=C2=A0 =C2=A0 =C2=A0 =C2=A0 key =3D self.generate_revision_key(ud, d, = name) 1621:=C2=A0 =C2=A0 =C2=A0 =C2=A0 try: 1622:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return revs[key] 1623:=C2=A0 =C2=A0 =C2=A0 =C2=A0 except KeyError: *** 1624:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 revs[key] =3D rev =3D se= lf._latest_revision(ud, d, name) 1625:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return rev 1626: 1627:=C2=A0 =C2=A0 def sortable_revision(self, ud, d, name): 1628:=C2=A0 =C2=A0 =C2=A0 =C2=A0 latest_rev =3D self._build_revision(ud, d,= name) File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/git.py', linen= o: 734, function: _latest_revision 0730:=C2=A0 =C2=A0 =C2=A0 =C2=A0 """ 0731:=C2=A0 =C2=A0 =C2=A0 =C2=A0 Compute the HEAD revision for the url 0732:=C2=A0 =C2=A0 =C2=A0 =C2=A0 """ 0733:=C2=A0 =C2=A0 =C2=A0 =C2=A0 if not d.getVar("__BBSEENSRCREV"): *** 0734:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 raise bb.fetch2.FetchErr= or("Recipe uses a floating tag/branch without a fixed SRCREV yet doesn't ca= ll bb.fetch2.get_srcrev() (use SRCPV in PV for OE).") 0735: 0736:=C2=A0 =C2=A0 =C2=A0 =C2=A0 # Ensure we mark as not cached 0737:=C2=A0 =C2=A0 =C2=A0 =C2=A0 bb.fetch2.get_autorev(d) 0738: Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floating ta= g/branch without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (us= e SRCPV in PV for OE). ERROR: Parsing halted due to errors, see error messages above --1n54gR33kQJJaSBUcK0t Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
ello Everyone

We perform yocto build and do devtool modify for one of package = it works
if we perform devtool modify for another package without resetting the= previously modified package we are getting below error in modified package= during parsing bb step 
 
recipefile:
 
SRC_URI=3D"git://git.com/pkg/linux;branch=3Dmulberry-5.10;protocol=3Ds= sh;name=3Dlinux;destsuffix=3Dgit
 
SRCREV =3D "${AUTOREV}"
 
PV =3D "5.10+git${SRCPV}"
 
Yocto version: Kirkstone
BB_SRCREV_POLICY =3D "clear"
 
Error:
 
ERROR: /local/home/test/workspace/poky/../sources/meta-mulberry/recipe= s-kernel/linux/linux_5.10.bb: Error executing a python function in <code= >:                    =                      = ;                     &nb= sp;                     &= nbsp;                    =          | ETA:  --:--:--
 
 
 
The stack trace of python calls that resulted in this exception/failur= e was:
File: '<code>', lineno: 21, function: <module>
 
     0017:__anon_56__local_home_test_workspace_poky_met= a_classes_kernel_fitimage_bbclass(d)
 
     0018:__anon_795__local_home_test_workspace_poky_me= ta_classes_kernel_fitimage_bbclass(d)
 
     0019:__anon_7__local_home_test_workspace_poky_meta= _classes_kernel_devicetree_bbclass(d)
 
     0020:__anon_717__local_home_test_workspace_poky_me= ta_classes_kernel_yocto_bbclass(d)
 
 *** 0021:__anon_145__local_home_test_workspace_poky_meta_classes= _externalsrc_bbclass(d)
 
File: '/local/home/shibikri/mulberry_workspace/poky/meta/classes/exter= nalsrc.bbclass', lineno: 66, function: __anon_145__local_home_test_workspac= e_poky_meta_classes_externalsrc_bbclass
     0062:        else:
     0063:            d.s= etVar('B', '${WORKDIR}/${BPN}-${PV}/')
     0064:
     0065:        local_srcuri =3D = []
 *** 0066:        fetch =3D bb.fetch2.Fetch((= d.getVar('SRC_URI') or '').split(), d)
     0067:        for url in fetch.= urls:
     0068:            url= _data =3D fetch.ud[url]
     0069:            par= m =3D url_data.parm
     0070:            if = (url_data.type =3D=3D 'file' or
File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.= py', lineno: 1680, function: __init__
     1676:
     1677:        for url in urls:<= /div>
     1678:            if = url not in self.ud:
     1679:            &nb= sp;   try:
 *** 1680:               =     self.ud[url] =3D FetchData(url, d, localonly)
     1681:            &nb= sp;   except NonLocalMethod:
     1682:            &nb= sp;       if localonly:
     1683:            &nb= sp;           self.ud[url] =3D None
     1684:            &nb= sp;           pass
File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.= py', lineno: 1317, function: __init__
     1313:            log= ger.warning('Consider updating %s recipe to use "protocol" not "proto" in S= RC_URI.', d.getVar('PN'))
     1314:            sel= f.parm["protocol"] =3D self.parm.get("proto", None)
     1315:
     1316:        if hasattr(self.m= ethod, "urldata_init"):
 *** 1317:            self.method.u= rldata_init(self, d)
     1318:
     1319:        if "localpath" in= self.parm:
     1320:            # i= f user sets localpath for file, use it instead.\
     1321:            sel= f.localpath =3D self.parm["localpath"]
File: '/local/home/shibikri/test/workspace/poky/bitbake/lib/bb/fetch2/= git.py', lineno: 249, function: urldata_init
     0245:        write_tarballs = =3D d.getVar("BB_GENERATE_MIRROR_TARBALLS") or "0"
     0246:        ud.write_tarballs= =3D write_tarballs !=3D "0" or ud.rebaseable
     0247:        ud.write_shallow_= tarballs =3D (d.getVar("BB_GENERATE_SHALLOW_TARBALLS") or write_tarballs) != =3D "0"
     0248:
 *** 0249:        ud.setup_revisions(d)
     0250:
     0251:        for name in ud.na= mes:
     0252:            # E= nsure anything that doesn't look like a sha256 checksum/revision is transla= ted into one
     0253:            if = not ud.revisions[name] or len(ud.revisions[name]) !=3D 40  or (False i= n [c in "abcdef0123456789" for c in ud.revisions[name]]):
File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.= py', lineno: 1347, function: setup_revisions
     1343:
     1344:    def setup_revisions(self, d):
     1345:        self.revisions = =3D {}
     1346:        for name in self.= names:
 *** 1347:            self.revision= s[name] =3D srcrev_internal_helper(self, d, name)
     1348:
     1349:        # add compatibili= ty code for non name specified case
     1350:        if len(self.names= ) =3D=3D 1:
     1351:            sel= f.revision =3D self.revisions[self.names[0]]
File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.= py', lineno: 1212, function: srcrev_internal_helper
     1208:
     1209:    if srcrev =3D=3D "INVALID" or n= ot srcrev:
     1210:        raise FetchError(= "Please set a valid SRCREV for url %s (possible key names are %s, or use a = ;rev=3DX URL parameter)" % (str(attempts), ud.url), ud.url)
     1211:    if srcrev =3D=3D "AUTOINC":
 *** 1212:        srcrev =3D ud.method.latest= _revision(ud, d, name)
     1213:
     1214:    return srcrev
     1215:
     1216:def get_checksum_file_list(d):
File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/__init__.= py', lineno: 1624, function: latest_revision
     1620:        key =3D self.gene= rate_revision_key(ud, d, name)
     1621:        try:
     1622:            ret= urn revs[key]
     1623:        except KeyError:<= /div>
 *** 1624:            revs[key] =3D= rev =3D self._latest_revision(ud, d, name)
     1625:            ret= urn rev
     1626:
     1627:    def sortable_revision(self, ud,= d, name):
     1628:        latest_rev =3D se= lf._build_revision(ud, d, name)
File: '/local/home/test/workspace/poky/bitbake/lib/bb/fetch2/git.py', = lineno: 734, function: _latest_revision
     0730:        """
     0731:        Compute the HEAD = revision for the url
     0732:        """
     0733:        if not d.getVar("= __BBSEENSRCREV"):
 *** 0734:            raise bb.fetc= h2.FetchError("Recipe uses a floating tag/branch without a fixed SRCREV yet= doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).")
     0735:
     0736:        # Ensure we mark = as not cached
     0737:        bb.fetch2.get_aut= orev(d)
     0738:
Exception: bb.fetch2.FetchError: Fetcher failure: Recipe uses a floati= ng tag/branch without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev(= ) (use SRCPV in PV for OE).
ERROR: Parsing halted due to errors, see error messages above
--1n54gR33kQJJaSBUcK0t--