Bug 8541

Summary: uninative-tarball fails to build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Randy Witt <randy.e.witt>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium+ CC: bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher, ross.burton
Version: 2.0   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Randy Witt 2015-10-19 18:11:22 UTC
Using a default local.conf running:

bitbake uninative-tarball

generates the following:

DEBUG: Executing python function do_populate_sdk                                
NOTE: Installing TARGET packages                                                
NOTE: configuring RPM platform settings                                         
NOTE: configuring RPM system provides                                           
NOTE: configuring RPM DB settings                                               
NOTE: configuring Smart settings                                                
NOTE: adding Smart RPM DB channel                                               
NOTE: Note: configuring RPM cross-install scriptlet_wrapper                     
NOTE: Executing '/home/rewitt/builds/poky-builds/foo/tmp/sysroots/x86_64-linux/usr/bin/createrepo --dbpath /home/rewitt/builds/poky-builds/foo/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/rpmdb/x86_64_nativesdk --update -q /home/rewitt/builds/poky-builds/foo/tmp/deploy/rpm/x86_64_nativesdk' ...
NOTE: Previous repo file missing: /home/rewitt/builds/poky-builds/foo/tmp/deploy/rpm/x86_64_nativesdk/repodata/primary.xml.gz
                                                                                
NOTE: There are no packages to install                                          
NOTE: There are no packages to install                                          
NOTE: Installing complementary packages ...                                     
NOTE: Running ['/home/rewitt/src/poky/scripts/oe-pkgdata-util', '-p', '/home/rewitt/builds/poky-builds/foo/tmp/sysroots/qemux86/pkgdata', 'glob', '/home/rewitt/builds/poky-builds/foo/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/installed_pkgs.txt', '*-dev *-dbg']
ERROR: Could not compute complementary packages list. Command '/home/rewitt/src/poky/scripts/oe-pkgdata-util -p /home/rewitt/builds/poky-builds/foo/tmp/sysroots/qemux86/pkgdata glob /home/rewitt/builds/poky-builds/foo/tmp/work/i586-poky-linux/uninative-tarball/1.0-r0/installed_pkgs.txt *-dev *-dbg' returned 1:
Traceback (most recent call last):                                              
  File "/home/rewitt/src/poky/scripts/oe-pkgdata-util", line 508, in <module>   
    main()                                                                      
  File "/home/rewitt/src/poky/scripts/oe-pkgdata-util", line 499, in main       
    logger.error('Unable to find pkgdata directory %s' % pkgdata_dir)           
NameError: global name 'pkgdata_dir' is not defined                             
                                                                                
DEBUG: Python function do_populate_sdk finished                                 
ERROR: Function failed: do_populate_sdk
Comment 1 Ross Burton 2015-10-27 13:57:40 UTC
Fixed in oe-core a1202ed17e11400f08064c9065fdfa996554d4ad.
Comment 2 Bogdan Alexandru Voiculescu 2015-10-27 15:29:27 UTC
Verified on master: 8a0d8eee432924433c3e70198aaeab3161476c5f