Bug 5053 - Error when building packages.
Summary: Error when building packages.
Status: RESOLVED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.4.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4.2
Assignee: Cristiana Voicu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-08-27 12:41 UTC by Andreea Brandusa Proca
Modified: 2014-01-09 07:41 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
building-packages-error (222.14 KB, image/png)
2013-08-27 12:41 UTC, Andreea Brandusa Proca
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreea Brandusa Proca 2013-08-27 12:41:11 UTC
Created attachment 1443 [details]
building-packages-error

Steps to reproduce:
1. select "qemuarm", for example
2. select "core-image-minimal", for example
3. click "Edit image"
4. click "Build packages"

I recive this error in command line:
AttributeError: 'NoneType' object has no attribute 'startswith'
Traceback (most recent call last):
  File "/home/brandusa/master/bitbake/lib/bb/ui/crumbs/hoblistmodel.py", line 186, in sort_func
    elif not val1.startswith(user_data) and val2.startswith(user_data):


The search error message shown in hob is attached. Also the number of included packages is 0. This situation does not always occur.


dylan:d734ab491a30078d43dee5440c03acce2d251425
Comment 1 Cristiana Voicu 2013-09-19 13:50:22 UTC
Hi,

I tried to reproduce it but no chance. I know I saw this issue one or two times in the past, but i didn't get the pattern. I will try to reproduce it on master, too.

With the steps given by Andreea, this is not reproducing. It is a special case.
Andreea can you give me more information about it? I will continue to test it, too.

thanks,
Cristiana
Comment 2 Cristiana Voicu 2013-09-23 11:07:51 UTC
I've found a test case for this bug. The steps to reproduce it are the following:
1. select "qemux86"
2. select "core-image-minimal"
3. click "Edit image"
4. click "Build packages"
5. on "All packages" tab type "a" in the Search field
6. on "Included packages" tab type "a" in the Search field
7. deselect "kernel-module-uvesafb" package
8. build the image

This error is shown on master, too. I sent a patch to fix this on master, I will send another one to backport this on dylan.
Comment 3 Cristiana Voicu 2013-11-18 07:51:48 UTC
the patch was merged on master
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=859b631b2f7b22173cde3cf9d3ac072c2788ea2f

I will send a patch to merge it on dylan too
Comment 4 Cristiana Voicu 2013-11-18 14:11:39 UTC
(In reply to comment #3)
> the patch was merged on master
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
> ?id=859b631b2f7b22173cde3cf9d3ac072c2788ea2f
> 
> I will send a patch to merge it on dylan too

I've sent a patcg for dyla too
Comment 5 Cristiana Voicu 2014-01-09 07:41:54 UTC
patch merged to dylan and dora too
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dylan&id=9cf2e005d1754a8f92d3d5896d17a2f1fa501760