<?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>11683</bug_id>
          
          <creation_ts>2017-06-16 20:21:47 +0000</creation_ts>
          <short_desc>sanity.bbclass: bblayers.conf upgrade broken for versions 5 to 7</short_desc>
          <delta_ts>2025-12-18 16:25:21 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>ee.peng.yeoh</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nagarajagopalx.velu</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="nagarajagopal">nagarajagopalx.velu</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>74301</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-06-16 20:21:47 +0000</bug_when>
    <thetext>When a distro happens to enter the 5 to 7 (inclusive) range for LCONF_VERSION, then updating existing bblayers.conf files no longer works as expected. Expected is that a developer is asked to manually update his bblayers.conf; what happens instead is that some special code in OE-core kicks in which claims to update the file without actually doing anything.

The root cause is that OE-core contains code that must have been valid at some point for some distro (Poky?) but that doesn&apos;t do the right thing for other distros.

Refkit is now hitting this problem.

Patch was sent back in May (&quot;bblayers sanity: bblayers.conf.sample specific update code&quot;) but hasn&apos;t been merged, so let me file a bug to also get this problem prioritize through the bug triage.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74473</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-06-22 14:56:33 +0000</bug_when>
    <thetext>Richard has concerns about the approach taken in my patch, so we need to go back to the design phase and come up with something better.

YinThong, we left this assigned to you as you have time for it. We can discuss how to approach this via chat (I&apos;m pohly on IRC).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74510</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-06-23 09:16:51 +0000</bug_when>
    <thetext>Related to bug #11686.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77722</commentid>
    <comment_count>3</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2017-10-20 07:12:02 +0000</bug_when>
    <thetext>Verification log,

 1) clone refkit
 2) source oe-init-build-env
 3) change LCONF_VERSION = &quot;6&quot; n build/conf/bblayers.conf file.
 4) run command bitbake refkit-image-minimal

 error log file ,
  NOTE: Your conf/bblayers.conf has been automatically updated.
ERROR: Your version of bblayers.conf has the wrong LCONF_VERSION (has 7, expecting 9).
Please compare your file against bblayers.conf.sample and merge any changes before continuing.
&quot;meld conf/bblayers.conf /home/raj/refkit/intel-iot-refkit/openembedded-core/../meta-refkit/conf/bblayers.conf.sample&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77724</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-10-20 09:08:23 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Verification log,
&gt; 
&gt;  1) clone refkit
&gt;  2) source oe-init-build-env
&gt;  3) change LCONF_VERSION = &quot;6&quot; n build/conf/bblayers.conf file.
&gt;  4) run command bitbake refkit-image-minimal
&gt; 
&gt;  error log file ,
&gt;   NOTE: Your conf/bblayers.conf has been automatically updated.
&gt; ERROR: Your version of bblayers.conf has the wrong LCONF_VERSION (has 7,
&gt; expecting 9).
&gt; Please compare your file against bblayers.conf.sample and merge any changes
&gt; before continuing.
&gt; &quot;meld conf/bblayers.conf
&gt; /home/raj/refkit/intel-iot-refkit/openembedded-core/../meta-refkit/conf/
&gt; bblayers.conf.sample&quot;

You can&apos;t reproduce the problem with refkit because we worked around the issue by skipping the problematic range of version numbers. The request to merge manually is only printed because the current LCONF_VERSION is 9.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77857</commentid>
    <comment_count>5</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2017-10-30 04:25:20 +0000</bug_when>
    <thetext>
 I reproduced the problem with poky, LCONF_VERSION is 9 and done changes in /meta/classes/sanity.bbclass file as per below link,

https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/sanity.bbclass?id=6d3d4baeebc850492d523419683348cffa2d63b0

LCONF_VERSION = &quot;9&quot; is giving error pop out message and LCONF_VERSION = &quot;7&quot; is building error without pop out message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77858</commentid>
    <comment_count>6</comment_count>
    <who name="nagarajagopal">nagarajagopalx.velu</who>
    <bug_when>2017-10-30 04:26:30 +0000</bug_when>
    <thetext>

 LCONF_VERSION = &quot;9&quot; is giving error pop out message and LCONF_VERSION = &quot;7&quot; is building without pop out message.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78657</commentid>
    <comment_count>7</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-12-11 09:40:00 +0000</bug_when>
    <thetext>https://patchwork.openembedded.org/patch/140291/

With reference to the patch above, we prefer not to load the python functions from the distro. I would suggest to move this to backlog and probably we would revisit in future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78661</commentid>
    <comment_count>8</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-12-11 12:56:58 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; https://patchwork.openembedded.org/patch/140291/
&gt; 
&gt; With reference to the patch above, we prefer not to load the python
&gt; functions from the distro. I would suggest to move this to backlog and
&gt; probably we would revisit in future.

Can we at least remove the obsolete and broken upgrade code already now?

That will resolve the main issue (not notifying the user when he needs to update manually). What can be deferred is then the reimplementation of automatic bblayers.conf updates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78662</commentid>
    <comment_count>9</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2017-12-11 13:13:05 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; Can we at least remove the obsolete and broken upgrade code already now?
&gt; 
&gt; That will resolve the main issue (not notifying the user when he needs to
&gt; update manually). What can be deferred is then the reimplementation of
&gt; automatic bblayers.conf updates.

Hi Patrick, do you mean we should remove sanity_conf_update from sanity.bbclass? I could try this out and this will require more testing to ensure we did not break anything.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78663</commentid>
    <comment_count>10</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-12-11 14:21:43 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; Can we at least remove the obsolete and broken upgrade code already now?
&gt; &gt; 
&gt; &gt; That will resolve the main issue (not notifying the user when he needs to
&gt; &gt; update manually). What can be deferred is then the reimplementation of
&gt; &gt; automatic bblayers.conf updates.
&gt; 
&gt; Hi Patrick, do you mean we should remove sanity_conf_update from
&gt; sanity.bbclass?

That and everything else related to rewriting bblayers.conf. Basically, remove everything that my patch https://patchwork.openembedded.org/patch/140291/ removed and don&apos;t add anything else instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79017</commentid>
    <comment_count>11</comment_count>
    <who name="Rebecca Chang">rebecca.swee.fun.chang</who>
    <bug_when>2018-01-11 02:05:09 +0000</bug_when>
    <thetext>https://patchwork.openembedded.org/patch/146975/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96891</commentid>
    <comment_count>12</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:38 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>