Bug 10949

Summary: do_rootfs: missing file dependancies should error regardless of PACKAGE_CLASSES
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stephano Cetola <stephano>
Component: coreAssignee: Stephano Cetola <stephano>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: joshuagloe, meta.mr.watcher, meta.watcher
Version: 2.2   
Target Milestone: 2.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10664    

Description Stephano Cetola 2017-01-20 20:03:25 UTC
rpmdeps is collecting dependancies for binary packages (bin_package) and do_package_qa throws a warning if deps are missing because "file-rdeps" is in WARN_QA. 

If RPM is in PACKAGE_CLASSES, smart will be intelligent enough to throw an error on do_rootfs (e.g. do_rootfs: Unable to install packages... smart returns -1).

However, if we only have IPK in PACKAGE_CLASSES, we only get the QA warning, and binaries with missing dependancies are possibly installed on the target.

I see two ways of fixing this:

1. Add file-rdeps to the list of ERROR_QA if inheriting from bin_package.
(rather heavy handed)

2. Create a bin_validation class that specifically checks for these types of errors. (possibly using something like IMAGE_QA_COMMANDS)

I'm leaning towards option 2.
Comment 1 Stephano Cetola 2017-03-28 15:24:35 UTC
fixed in master: 90bc7bfa1b27cd5ea2480463f7631f179a296b10