Bug 5967

Summary: file_path value for section field is incorrect for some recipes in Recipe table
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Jessica <jessica.zhang>
Status: VERIFIED NOTABUG QA Contact: Ionut Chisanovici <ionutx.chisanovici>
Severity: normal    
Priority: Undecided CC: alexandru.damian, belen.barros.pena, bogdanx.a.voiculescu, cristiana.voicu
Version: 1.6   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Ionut Chisanovici 2014-03-14 08:34:26 UTC
Hi,

BUILD: 1.6_M4_RC1: 463cd34f8c17c67c4f3adf3468424730b22f3974
ENVIRONMENT: Ubuntu 13.10
STEPS TO REPRODUCE: 1. start toaster
2. run bitbake core-image-minimal
3. check if the value of the section field matches the content of the SECTION variable (if set) in the file indicated by the file_path field (from Recipe table)

EXPECTED OUTCOME: 
  
 the value of the  section field matches the content of the SECTION variable (if set)  in file_path

ACTUAL OUTCOME:

IOError: [Errno 2] No such file or directory: 'virtual:native:/home/ionut/work/toaster/poky/meta/recipes-extended/shadow/shadow_4.1.4.3.bb'

From database:

{
    "pk": 2,
    "model": "orm.recipe",
    "fields": {
        "description": "Tools to change and administer password and group data.",
        "license": "BSD | Artistic-1.0",
        "bugtracker": "https://alioth.debian.org/tracker/?group_id=30580",
        "section": "base utils",
        "layer_version": 3,
        "summary": "Tools to change and administer password and group data",
        "version": "4.1.4.3-r14",
        "homepage": "http://pkg-shadow.alioth.debian.org",
        "file_path": "virtual:native:/home/ionut/work/toaster/poky/meta/recipes-extended/shadow/shadow_4.1.4.3.bb",
        "name": "shadow-native"
    }
}

Cheers,
Ionut C
Comment 1 Belen Barros Pena 2014-03-14 11:29:35 UTC
Hi Ionut,

The problem here seems to be that the test is looking in the wrong place. The test should remove the "virtual:native" bit if in the path, then search for the file.
Comment 2 Belen Barros Pena 2014-03-19 15:52:55 UTC
As mentioned before, it looks like this is not a bug
Comment 3 Ionut Chisanovici 2014-04-15 12:55:12 UTC
Not a bug, test updated, verified.

IonutC