Bug 5959

Summary: Sorting of recipes in task link can't work well.
Product: [Build System, Metadata & Runtime] Toaster Reporter: Yuan Sun <Yuan.Sun2>
Component: toasterAssignee: Belen Barros Pena <belen.barros.pena>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandru.damian, belen.barros.pena, cristiana.voicu, david.reyna, jessica.zhang
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yuan Sun 2014-03-13 09:32:15 UTC
Sorting of recipes in task link can't work well.

Steps to reproduce:
Start up toaster. 
Select a build and click task link.
Click "recipe" to sort.
The order is the following.
busybox->...->shadow-native->...->qemu-helper-native 
The result should have been sorted alphabetical.
Comment 1 Belen Barros Pena 2014-03-13 09:36:38 UTC
I have a fix for this here

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=bbarrosp/front-end-050414&id=9393333b77495a120bdc2f25fafa3ee00b42d2a5

I submitted it for review to the mailing list on Tuesday, so I am hoping it will be sent to bitbake-devel today.

David: if you could have a look at it and make sure you are ok with it, that would be useful.

Thanks!
Comment 2 David Reyna 2014-03-17 06:12:05 UTC
Hi Belen,

Your patch looks fine to me. 

I wonder what we were sorting on before when the key was the recipe record, instead of the recipe's name. I guess the primary key, or the object's memory address.
Comment 4 Yuan Sun 2014-04-08 09:04:39 UTC
Verified in 3e528d3e4bc542ca2f654c54363c56af0fb9f61b.