<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10949</bug_id>
          
          <creation_ts>2017-01-20 20:03:25 +0000</creation_ts>
          <short_desc>do_rootfs: missing file dependancies should error regardless of PACKAGE_CLASSES</short_desc>
          <delta_ts>2017-03-28 15:24:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          <blocked>10664</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Stephano Cetola">stephano</reporter>
          <assigned_to name="Stephano Cetola">stephano</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69976</commentid>
    <comment_count>0</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2017-01-20 20:03:25 +0000</bug_when>
    <thetext>rpmdeps is collecting dependancies for binary packages (bin_package) and do_package_qa throws a warning if deps are missing because &quot;file-rdeps&quot; 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&apos;m leaning towards option 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71814</commentid>
    <comment_count>1</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2017-03-28 15:24:35 +0000</bug_when>
    <thetext>fixed in master: 90bc7bfa1b27cd5ea2480463f7631f179a296b10</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>