<?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>6950</bug_id>
          
          <creation_ts>2014-11-10 18:05:04 +0000</creation_ts>
          <short_desc>bitbake errors must have unique ids to make them easily greppable in the source</short_desc>
          <delta_ts>2017-09-14 15:30:56 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Damian">alexandru.damian</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46904</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-11-10 18:05:04 +0000</bug_when>
    <thetext>Bitbake error must be prefixed with a unique ID, for each error, in the form &quot;BBxyyyy&quot; where &quot;x&quot; is a error severity indicator (&quot;E&quot;, &quot;W&quot;, &quot;I&quot; or &quot;D&quot; for Error, Warning, Info or Debug) and &quot;yyyy&quot; is a numeric ID starting with 0001.

E.g. instead of:
&quot;Only one copy of bitbake should be run against a build directory&quot;

bitbake output should be 

&quot;BBE0001: Only one copy of bitbake should be run against a build directory&quot;

Having unique textual IDs for errors make grepping through the source a lot easier, to allow for easy reference of code without having to hardcode locations.

E.g. a web interface could display relevant sections of code based on the error unique id by grepping through the source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46974</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-11-13 15:41:20 +0000</bug_when>
    <thetext>This is a pretty invasive change which also has maintenance implications. At the very least this needs to be raised nd discussed with the community before we go any further with it. Alternatives such as the linenumber and file information should also be considered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76845</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-09-14 15:30:56 +0000</bug_when>
    <thetext>We&apos;re not planning to do this right now, most errors can be found comparitively easily as the strings alone are fairly unique.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>