Re: [Toaster] Getting error when i build an image after starting the toaster

Marlon Rodriguez Garcia <[email protected]> Wed, 22 May 2024 14:42:51 -0400 (EDT)
Newsgroups org.yoctoproject.lists.toaster
Message-ID <1590233550.466358.1716403371644.JavaMail.zimbra@savoirfairelinux.com>
--=_e7b3ad13-9262-43b7-b7a7-3f8faaa8d9cb
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

Hi Dhanya, 

I tried to reproduce the build you described. 

What i found is that there is a empty value for the variable 'parent_path'. 

I updated my local bitbake code with the following elements and maybe you could do the same and tell us if that solved the issue so we we can create a patch. 

I will use your directories so you can replicate on your side: 

Change 1 /home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py line 562, in save_target_file_information 

Replace: 
parent_obj = Target_File.objects.get(target = target_obj, path = parent_path, inodetype = Target_File.ITYPE_DIRECTORY) 

with : 
try: 
parent_obj = Target_File.objects.get(target = target_obj, path = parent_path, inodetype = Target_File.ITYPE_DIRECTORY) 
except Target_File.DoesNotExist: 
parent_obj = None 




Change 2 /home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py line 1793 

add 
if image_name is None: 
image_name = "" 
before line 
real_image_name = re.sub(r'^defaultpkgname', image_target.target, 
image_name) 


This is my local output: 

NOTE: Toaster does not add kernel module dependencies to packages (kernel-module-nxp-wlan,kernel-module-moal-6.1.55+g770c5fe2c1d1) 
NOTE: Toaster does not add kernel module dependencies to packages (cryptodev-module,kernel-module-cryptodev-6.1.55+g770c5fe2c1d1) 
NOTE: Writing buildhistory 
NOTE: Writing buildhistory took: 8 seconds 
NOTE: image artifacts for target 14 cloned from target 12 
NOTE: Build exited with errorcode 0 
NOTE: ToasterUI build done, brbe: None 
WARNING: Return value is 0 




From: "dhanyalakshmi.k via lists.yoctoproject.org" <[email protected]> 
To: "toaster" <[email protected]> 
Sent: Friday, May 17, 2024 9:20:25 AM 
Subject: Re: [Toaster] Getting error when i build an image after starting the toaster 

Hi David, 
went through your suggestion,i saw that their is no meta-freescale and mets-nxp-desktop layers in mickledore branch in openembedded layer index list. So i tried to submit this two layers but i'm unable to submit. It is giving me layer already exists but this meta-freescale layer is present in master branch not in mickledore branch but still facing not able to submit the branch. 
How to resolve this issue can you please let me know if you have any idea regarding this. 

Thank You 


-=-=-=-=-=-=-=-=-=-=-=- 
Links: You receive all messages sent to this group. 
View/Reply Online (#6155): https://lists.yoctoproject.org/g/toaster/message/6155 
Mute This Topic: https://lists.yoctoproject.org/mt/106149357/7896800 
Group Owner: [email protected] 
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub [[email protected]] 
-=-=-=-=-=-=-=-=-=-=-=- 

--=_e7b3ad13-9262-43b7-b7a7-3f8faaa8d9cb
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"font-family: arial, helvetica, sans-serif; font-s=
ize: 12pt; color: #000000"><div>Hi Dhanya, <br><br>I tried to reproduce the=
 build you described. <br><br>What i found is that there is a empty value f=
or the variable 'parent_path'. <br><br>I updated my local bitbake code with=
 the following elements and maybe you could do the same and tell us if that=
 solved the issue so we we can create a patch. <br><br>I will use your dire=
ctories so you can replicate on your side: <br><br><strong>Change 1</strong=
> /home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/buildinfohelper=
.py line 562, in save_target_file_information <br><br><strong>Replace:</str=
ong> <br>parent_obj =3D Target_File.objects.get(target =3D target_obj, path=
 =3D parent_path, inodetype =3D Target_File.ITYPE_DIRECTORY) <br><br><stron=
g>with :</strong> <br>try: <br>&nbsp;&nbsp;&nbsp;&nbsp; parent_obj =3D Targ=
et_File.objects.get(target =3D target_obj, path =3D parent_path, inodetype =
=3D Target_File.ITYPE_DIRECTORY) <br>except Target_File.DoesNotExist: <br>&=
nbsp;&nbsp;&nbsp; parent_obj =3D None <br></div><div><br data-mce-bogus=3D"=
1"></div><div><br data-mce-bogus=3D"1"></div><div><br data-mce-bogus=3D"1">=
</div><div><br><strong>Change 2</strong> /home/dhanyalakshmi/distro/sources=
/poky/bitbake/lib/bb/ui/buildinfohelper.py line 1793 <br><br><strong>add</s=
trong> <br>&nbsp;&nbsp; if image_name is None:<br>&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp; image_name =3D ""<br></div><div><strong>before line</strong></d=
iv><div>&nbsp;real_image_name =3D re.sub(r'^defaultpkgname', image_target.t=
arget,<br>&nbsp;&nbsp;&nbsp; image_name)<br data-mce-bogus=3D"1"></div><div=
><br data-mce-bogus=3D"1"></div><div><br data-mce-bogus=3D"1"></div><div><s=
trong>This is my local output:</strong><br data-mce-bogus=3D"1"></div><div>=
<br data-mce-bogus=3D"1"></div><div><span style=3D"font-family: monospace;"=
 data-mce-style=3D"font-family: monospace;"><span style=3D"color: #000000; =
background-color: #ffffff;" data-mce-style=3D"color: #000000; background-co=
lor: #ffffff;">NOTE: Toaster does not add kernel module dependencies to pac=
kages (kernel-module-nxp-wlan,kernel-module-moal-6.1.55+g770c5fe2c1d1) </sp=
an><br>NOTE: Toaster does not add kernel module dependencies to packages (c=
ryptodev-module,kernel-module-cryptodev-6.1.55+g770c5fe2c1d1) <br>NOTE: Wri=
ting buildhistory <br>NOTE: Writing buildhistory took: 8 seconds <br>NOTE: =
image artifacts for target 14 cloned from target 12 <br>NOTE: Build exited =
with errorcode 0 <br>NOTE: ToasterUI build done, brbe: None <br>WARNING: Re=
turn value is 0<br><br></span></div><div><br data-mce-bogus=3D"1"></div><di=
v><br data-mce-bogus=3D"1"></div><hr id=3D"zwchr" data-marker=3D"__DIVIDER_=
_"><div data-marker=3D"__HEADERS__"><b>From: </b>"dhanyalakshmi.k via lists=
.yoctoproject.org" &lt;[email protected]=
toproject.org&gt;<br><b>To: </b>"toaster" &lt;[email protected]=
g&gt;<br><b>Sent: </b>Friday, May 17, 2024 9:20:25 AM<br><b>Subject: </b>Re=
: [Toaster] Getting error when i build an image after starting the toaster<=
br></div><div><br></div><div data-marker=3D"__QUOTED_TEXT__">Hi David, <br>=
went through your suggestion,i saw that their is no meta-freescale and mets=
-nxp-desktop layers in mickledore branch in openembedded layer index list. =
So i tried to submit this two layers but i'm unable to submit. It is giving=
 me layer already exists but this meta-freescale layer is present in master=
 branch not in mickledore branch but still facing not able to submit the br=
anch. <br>How to resolve this issue can you please let me know if you have =
any idea regarding this. <br><br>Thank You <br><br><br>-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D- <br>Links: You receive all messages sent to this =
group. <br>View/Reply Online (#6155): https://lists.yoctoproject.org/g/toas=
ter/message/6155 <br>Mute This Topic: https://lists.yoctoproject.org/mt/106=
149357/7896800 <br>Group Owner: [email protected] <br>Un=
subscribe: https://lists.yoctoproject.org/g/toaster/unsub [marlon.rodriguez=
[email protected]] <br>-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-<br></div></div></body></html>
--=_e7b3ad13-9262-43b7-b7a7-3f8faaa8d9cb--