<?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>9865</bug_id>
          
          <creation_ts>2016-07-01 12:24:00 +0000</creation_ts>
          <short_desc>&quot;inherit&quot; invalid in .inc file when included in distro config</short_desc>
          <delta_ts>2016-09-14 14:13:04 +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>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Patrick Ohly">patrick.ohly</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>63577</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-07-01 12:24:00 +0000</bug_when>
    <thetext>The &quot;inherit&quot; statement is not valid in global configuration files like a distro configuration. Using it there correctly triggers an error.

However, when the global configuration file includes some other .inc file and that file has such a statement, no error is printed. The line seems to get ignored silently.

Restrictions that apply to the actual usage should also be applied when parsing in include files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66137</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-09-14 14:00:28 +0000</bug_when>
    <thetext>I placed a &quot;inherit bash&quot; at the end of meta/conf/distro/include/default-distrovars.inc which is an incude file included by global configuration. I then see:

$ bitbake -p
ERROR: ParseError at /media/build1/poky/meta/conf/distro/include/default-distrovars.inc:50: Could not inherit file classes/bash.bbclass

which seems correct. How do I reproduce the problem you describe?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66138</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-09-14 14:13:04 +0000</bug_when>
    <thetext>We ran into it when adding &quot;inherit&quot; to a distro configuration. But I can&apos;t reproduce that with current Poky either.

Let&apos;s assume that this was fixed somehow in the meantime or that the report was invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>