Bug 10651

Summary: bitbake -g world is broken
Product: [Build System, Metadata & Runtime] BitBake Reporter: Robert Yang <liezhi.yang>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: oscar lopez arandas <oscarx.lopez.arandas>
Severity: major    
Priority: Medium+ CC: jose.perez.carranza, poky.bs.watcher, poky.watcher
Version: 2.3   
Target Milestone: 2.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2016-11-14 02:06:06 UTC
$ bitbake world -g

No valid info in *.dot or pn-buildlist, it is broken on both morty and master, and "bibake <image>/<recipe> -g" works.
Comment 1 Robert Yang 2016-11-21 14:05:52 UTC
Got a patch from RP, I will send it to bitbake mailing list.
Comment 3 oscar lopez arandas 2017-04-11 21:48:32 UTC
bitbake world -g: No valid info in *.dot or pn-buildlist: it is broken on both morty and master

testimage: core-image-sato-sdk-intel-corei7-64.hddimg
 
Build Configuration:
BB_VERSION        = "1.33.3"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-16.04"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "intel-corei7-64"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2+snapshot-20170411"
TUNE_FEATURES     = "m64 corei7"
         
commit:eff56e4f0d59b1d965a68e4f009b7f07717b7edd"

STEPS: 
1. Download the core-image-sato-sdk image from autobuilder
 2. Make checkout on the poky commit from the mail (in command line):

a) Clone a clean version of poky:

$ git clone git://git.yoctoproject.org/poky"

b)In poky directory checkout on the desired commit:

$ git checkout <commit-id>

3. Source the environment, from poky directory

 $ cd ~/poky 

$ source oe-init-build-env

4. Edit local.conf. PATH: ~/poky/build/conf, at the en of the file adding: 
 5. In ~poky/build directory, in command line, type the following commands:

$ bitbake rpm psplash run-postinsts
$ bitbake package-index

NOTE: After finishing the tasks, copy the image manifest (core-image-sato-sdk-genericx86.manifest) and the testdata.json (core-image-sato-sdk-genericx86.testdata.json) from autobuilder at the following path: "~poky/build/tmp/deploy/images/genericx86/" ( if "/tmp/deploy/images/genericx86" does not exist create new directories with this path)

bitbake core-image-sato-sdk -c testimage

$ bitbake world -g



ACTUAL OUTCOME: PN build list saved to 'pn-buildlist'

EXPECTED OUTCOME:
oscar@oscar-ThinkPad-T540p:~/sato/build$ bitbake world -g
Parsing recipes: 100% |##########################################| Time: 0:00:17
Parsing of 853 .bb files complete (0 cached, 853 parsed). 1323 targets, 53 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: PN build list saved to 'pn-buildlist'
NOTE: Task dependencies saved to 'task-depends.dot'
NOTE: Flatened recipe dependencies saved to 'recipe-depends.dot'
oscar@oscar-ThinkPad-T540p:~/sato/build$