<?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>8031</bug_id>
          
          <creation_ts>2015-07-20 14:25:35 +0000</creation_ts>
          <short_desc>devtool selftest produces recipes that cause warnings</short_desc>
          <delta_ts>2015-09-11 12:18:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>52482</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-20 14:25:35 +0000</bug_when>
    <thetext>2015-07-20 15:07:23 - test_devtool_add_library (oeqa.selftest.devtool.DevtoolTests) ...
2015-07-20 15:08:49,605 - selftest.base - WARNING - tearDown commands have failed: bitbake -c cleansstate libftdi

Digging around the cooker logs reveals that the LICENSE value in the recipe isn&apos;t valid:

WARNING: libftdi: LICENSE value &quot;Unknown GPLv2&quot; has an invalid format - license names must be separated by the following characters to indicate the license selection: &amp;|()

(I&apos;m not sure why selftest doesn&apos;t report this as a problem when it builds the recipe, only when tearing down the test case)

We should either fix devtool to create valid LICENSE statements, or alternatively if the recipe is intended to produce a warning because the intention cannot be determined by the tool the test case should use a library that doesn&apos;t produce warnings when it is working as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52484</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-07-20 16:08:45 +0000</bug_when>
    <thetext>I don&apos;t think this is fixable - devtool cannot know whether it&apos;s a &amp; or a | situation. It&apos;s just filling the list in for you, it&apos;s up to you to figure out the details (because it cannot).

I take the point that perhaps we should use a different library in the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52740</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-07-31 09:42:32 +0000</bug_when>
    <thetext>FYI, whilst the proximity of these two warnings suggests that they are related, I believe the issue is actually that libftdi no longer exists when the -c cleansstate gets run because &quot;devtool reset&quot; deletes it. I&apos;ve sent a patch for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52830</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-08-05 09:08:28 +0000</bug_when>
    <thetext>teardown warning removed in this commit now merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=93360e8a1c0657542bb0536ad0281389d89b2d5d

I&apos;m now marking this as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53973</commentid>
    <comment_count>4</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-11 12:18:41 +0000</bug_when>
    <thetext>verified on master d4585fa23d56a58c583ee33db067a23177a936b1
with meta-oe d36e2d1066f50036080f978583a58fe79ecfac54</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>