<?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>6888</bug_id>
          
          <creation_ts>2014-10-24 16:51:40 +0000</creation_ts>
          <short_desc>oe.utils.both_contain() provides poor feature checking</short_desc>
          <delta_ts>2015-03-13 18:24:14 +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>1.7</version>
          <rep_platform>All</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>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <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>46573</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-10-24 16:51:40 +0000</bug_when>
    <thetext>oe.utils.both_contain() just does a find() on the value rather than splitting the value and then looking in the list of split items. The result is that if you add a feature to MACHINE_FEATURES that itself has a substring that matches one of the values looked for when building COMBINED_FEATURES, you end up with an incomprehensible error (here with &quot;ext2i&quot; in MACHINE_FEATURES):

ERROR: Nothing RPROVIDES &apos;packagegroup-base-ext2&apos; (but /home/balister/src/oe-core/oe-core/meta/recipes-core/packagegroups/packagegroup-base.bb RDEPENDS on or otherwise requires it)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47199</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-11-26 09:51:09 +0000</bug_when>
    <thetext>Investigation started.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49048</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-25 15:29:56 +0000</bug_when>
    <thetext>oe.utils.both_contain() will be reimplemented similar to bb.utils.contains().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49049</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-02-25 15:30:18 +0000</bug_when>
    <thetext>Patch sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49457</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-03-13 18:24:14 +0000</bug_when>
    <thetext>Fixed with commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ca3a3c05414f52bd9c2c9774248b7b74b60df20c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>