<?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>14340</bug_id>
          
          <creation_ts>2021-04-07 15:54:17 +0000</creation_ts>
          <short_desc>improve detection and error reporting when oe-core is missing</short_desc>
          <delta_ts>2021-09-11 21:43:05 +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>unspecified</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>enhancement</bug_severity>
          <target_milestone>3.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trevor Woerner">twoerner</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</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>89884</commentid>
    <comment_count>0</comment_count>
    <who name="Trevor Woerner">twoerner</who>
    <bug_when>2021-04-07 15:54:17 +0000</bug_when>
    <thetext>If, by accident, the user has omitted oe-core from bblayers.conf but other layers are present in bblayers.conf, then the error message will flag the first such layer in bblayers (e.g. mylayer) and report:

ERROR: Layer mylayer is not compatible with the core layer which only supports these series:  (layer is compatible with hardknott)

Maybe this situation can be detected and a better error message emitted?

Apparently (according to JaMa and kergoth) this is an issue with no LAYERSERIES_CORENAMES being defined (?)








NOTE: if no layers are present in bblayers.conf then one get the error message:

ERROR: Traceback (most recent call last):
  File &quot;/z/build-master/corenames/layers/bitbake/lib/bb/cookerdata.py&quot;, line 162, in wrapped
    return func(fn, *args)
  File &quot;/z/build-master/corenames/layers/bitbake/lib/bb/cookerdata.py&quot;, line 187, in parse_config_file
    return bb.parse.handle(fn, data, include)
  File &quot;/z/build-master/corenames/layers/bitbake/lib/bb/parse/__init__.py&quot;, line 107, in handle
    return h[&apos;handle&apos;](fn, data, include)
  File &quot;/z/build-master/corenames/layers/bitbake/lib/bb/parse/parse_py/ConfHandler.py&quot;, line 121, in handle
    abs_fn = resolve_file(fn, data)
  File &quot;/z/build-master/corenames/layers/bitbake/lib/bb/parse/__init__.py&quot;, line 125, in resolve_file
    raise IOError(errno.ENOENT, &quot;file %s not found in %s&quot; % (fn, bbpath))
FileNotFoundError: [Errno 2] file conf/bitbake.conf not found in /z/build-master/corenames/build

ERROR: Unable to parse conf/bitbake.conf: [Errno 2] file conf/bitbake.conf not found in /z/build-master/corenames/build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91382</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-10 14:28:11 +0000</bug_when>
    <thetext>I&apos;ve sent two patches out for review which address these two rather poor error messages,</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91393</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-11 21:43:05 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=38deb04a384f8e81d23dd6f088478632dfa62676
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e75e89b418ac07a96f76b64a1ae027d7732e7084</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>