<?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>16190</bug_id>
          
          <creation_ts>2026-03-05 02:48:57 +0000</creation_ts>
          <short_desc>bitbake-setup: specifying fixed revisions causes spurious update</short_desc>
          <delta_ts>2026-03-12 12:04:51 +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>6.0</version>
          <rep_platform>All</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>normal</bug_severity>
          <target_milestone>6.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Clayton Casciato">ccasciato</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>alex.kanavin</cc>
    
    <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>104502</commentid>
    <comment_count>0</comment_count>
    <who name="Clayton Casciato">ccasciato</who>
    <bug_when>2026-03-05 02:48:57 +0000</bug_when>
    <thetext>&gt; Unexpected behavior

Setup (using a fixed revision in config):
```
test-bbs$ git clone https://git.openembedded.org/bitbake

test-bbs$ git -C bitbake checkout 6b91f4ff3852a5a3c1089d5bb9d4009a2e6fde58

test-bbs$ cp bitbake/default-registry/configurations/oe-nodistro-master.conf.json oe-nodistro-custom.conf.json

test-bbs$ sed -i &apos;8{s/^\([[:space:]]*\).*/\1&quot;rev&quot;: &quot;6b91f4ff3852a5a3c1089d5bb9d4009a2e6fde58&quot;/;}&apos; oe-nodistro-custom.conf.json

test-bbs$ ./bitbake/bin/bitbake-setup init --non-interactive --setup-dir-name oe-nodistro-master-custom-1 oe-nodistro-custom.conf.json nodistro machine/qemuarm64

test-bbs$ source bitbake-builds/oe-nodistro-master-custom-1/build/init-build-env 
OpenEmbedded &apos;nodistro&apos;
```

Spurious config update (and note?) are seen:
```
test-bbs$ ./bitbake/bin/bitbake-setup update
NOTE: Bitbake-setup is using [SNIP]/workspace/test-bbs/bitbake-builds as top directory.
NOTE: Reading configuration from local file
    oe-nodistro-custom.conf.json
NOTE: Layer repository https://git.openembedded.org/bitbake checked out into [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1/layers/bitbake updated revision 6b91f4ff3852a5a3c1089d5bb9d4009a2e6fde58 from 6b91f4ff3852a5a3c1089d5bb9d4009a2e6fde58 to 48efc36b4e03f736e7521d269ced3417522784e9
Fetching layer/tool repositories into [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1/layers
    bitbake
    openembedded-core
    yocto-docs

Setting up bitbake configuration in
    [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1/build

New bitbake configuration from upstream is the same as the current one, no need to update it. 

test-bbs$ git -C bitbake-builds/oe-nodistro-master-custom-1/config log --oneline -1
21f0575 (HEAD -&gt; main) Configuration at Wed Mar  4 19:38:03 2026

test-bbs$ ./bitbake/bin/bitbake-setup update
NOTE: Bitbake-setup is using [SNIP]/workspace/test-bbs/bitbake-builds as top directory.
NOTE: Reading configuration from local file
    oe-nodistro-custom.conf.json
NOTE: Layer repository https://git.openembedded.org/bitbake checked out into [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1/layers/bitbake updated revision 6b91f4ff3852a5a3c1089d5bb9d4009a2e6fde58 from 6b91f4ff3852a5a3c1089d5bb9d4009a2e6fde58 to 48efc36b4e03f736e7521d269ced3417522784e9
Fetching layer/tool repositories into [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1/layers
    bitbake
    openembedded-core
    yocto-docs

Setting up bitbake configuration in
    [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1/build

New bitbake configuration from upstream is the same as the current one, no need to update it. 

test-bbs$ git -C bitbake-builds/oe-nodistro-master-custom-1/config log --oneline -1
0e10ea9 (HEAD -&gt; main) Configuration at Wed Mar  4 19:38:25 2026

test-bbs$ git -C bitbake-builds/oe-nodistro-master-custom-1/config show HEAD
commit 0e10ea95801e6e41de02dd7062cbe9a1662ddcaa (HEAD -&gt; main)
Author: bitbake-setup &lt;bitbake-setup@not.set&gt;
Date:   Wed Mar 4 19:38:25 2026 -0700

    Configuration at Wed Mar  4 19:38:25 2026
```

The note is also seen with `status`.

&gt; Expected/working behavior

Using a configuration with a branch name as the revision, no spurious config updates are seen:
```
test-bbs$ ./bitbake/bin/bitbake-setup update
NOTE: Bitbake-setup is using [SNIP]/workspace/test-bbs/bitbake-builds as top directory.
NOTE: Reading configuration from local file
    oe-nodistro-custom.conf.json

Configuration in [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1 has not changed.

test-bbs$ git -C bitbake-builds/oe-nodistro-master-custom-1/config log --oneline -1
db24b0d (HEAD -&gt; main) Configuration at Wed Mar  4 19:12:54 2026

test-bbs$ ./bitbake/bin/bitbake-setup update
NOTE: Bitbake-setup is using [SNIP]/workspace/test-bbs/bitbake-builds as top directory.
NOTE: Reading configuration from local file
    oe-nodistro-custom.conf.json

Configuration in [SNIP]/workspace/test-bbs/bitbake-builds/oe-nodistro-master-custom-1 has not changed.

test-bbs$ git -C bitbake-builds/oe-nodistro-master-custom-1/config log --oneline -1
db24b0d (HEAD -&gt; main) Configuration at Wed Mar  4 19:12:54 2026
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104546</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2026-03-05 20:13:27 +0000</bug_when>
    <thetext>https://patchwork.yoctoproject.org/project/bitbake/list/?series=44071

Please test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104556</commentid>
    <comment_count>2</comment_count>
    <who name="Clayton Casciato">ccasciato</who>
    <bug_when>2026-03-06 19:31:11 +0000</bug_when>
    <thetext>Hi, Alexander

This appears to resolve the unexpected behavior.

Using a new Setup, I tested the following revision changes:
fixed -&gt; fixed -&gt; branch -&gt; equivalent fixed

Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104569</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2026-03-09 14:17:04 +0000</bug_when>
    <thetext>Hello Clayton,

thanks for testing. Can you also check the v2 please?

https://patchwork.yoctoproject.org/project/bitbake/list/?series=44205</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104571</commentid>
    <comment_count>4</comment_count>
    <who name="Clayton Casciato">ccasciato</who>
    <bug_when>2026-03-09 15:41:51 +0000</bug_when>
    <thetext>v2 looks good.

Test sequence:
init with branch -&gt; fixed -&gt; fixed -&gt; equivalent branch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104588</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2026-03-12 12:04:51 +0000</bug_when>
    <thetext>Merged into bitbake master. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>