Bug 10949 - do_rootfs: missing file dependancies should error regardless of PACKAGE_CLASSES
Summary: do_rootfs: missing file dependancies should error regardless of PACKAGE_CLASSES
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M4
Assignee: Stephano Cetola
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 10664
  Show dependency tree
 
Reported: 2017-01-20 20:03 UTC by Stephano Cetola
Modified: 2017-03-28 15:24 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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