<?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>15848</bug_id>
          
          <creation_ts>2025-05-05 08:41:14 +0000</creation_ts>
          <short_desc>AB-INT: SRCREV_FORMAT variable must be set on bzip2</short_desc>
          <delta_ts>2026-08-05 16:52:09 +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>oe-core other</component>
          <version>5.99</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>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>mingli.yu</cc>
    
    <cc>pacopedraza87</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>yoann.congal</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>101872</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-05-05 08:41:14 +0000</bug_when>
    <thetext>A bit surprised by this one.

ERROR: ExpansionError during parsing /tmp/devtoolqazanfp7bs/core-copy/meta/recipes-extended/bzip2/bzip2_1.0.8.bb
bb.data_smart.ExpansionError: Failure expanding variable fetcher_hashes_dummyfunc[vardepvalue], expression was ${@bb.fetch.get_hashvalue(d)} which triggered exception FetchError: Fetcher failure: The SRCREV_FORMAT variable must be set when multiple SCMs are used.
The SCMs are:
git://sourceware.org/git/bzip2-tests.git;name=bzip2-tests;branch=master;protocol=https
git://sourceware.org/git/bzip2-tests.git;name=bzip2-tests;branch=master;protocol=https;type=git-dependency
The variable dependency chain for the failure is: fetcher_hashes_dummyfunc[vardepvalue]

So this is twice the same git, with just `;type=git-dependency` added. Of course it only appears once in the recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101877</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2025-05-05 08:52:53 +0000</bug_when>
    <thetext>oe-selftest-fedora rocky8-vk-1 master completed at 2025-05-03T03:18:17Z
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/1421/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101906</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-05-08 14:36:55 +0000</bug_when>
    <thetext>RP suspects that this is a network glitch. It has been seen before.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102349</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-06-26 14:53:10 +0000</bug_when>
    <thetext>Likely a network glitch, perhaps due to the high load due to AI site scrapping.
Re-open if it happens again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104493</commentid>
    <comment_count>4</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-03-04 17:39:47 +0000</bug_when>
    <thetext>It happened again :(

whinlatter oe-selftest-fedora fedora40-vk-3 https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3216

Also, errors.yoctoproject.org has 3 other occurrences:
https://errors.yoctoproject.org/Errors/Search/?query=The+SRCREV_FORMAT+variable+must+be+set+when+multiple+SCMs+are+used</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104507</commentid>
    <comment_count>5</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-05 12:43:32 +0000</bug_when>
    <thetext>Just to triage on swatbot and use formalism detected by Ross tool:

oe-selftest-fedora fedora40-vk-3 whinlatter&amp;stable/whinlatter-nut&amp;2.16 completed at 2026-03-04 14:11:38+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3216/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104528</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-05 15:55:34 +0000</bug_when>
    <thetext>We could mirror the repository used to run the test 
in addition to reporting the problem to whoever runs sourceware.

A mirror is a bit heavy for a problem that happens around once a year 
but intermittent failures are annoying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105630</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-28 13:17:56 +0000</bug_when>
    <thetext>Bulk move of unassigned 6.0-M* bugs to 6.1-M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106435</commentid>
    <comment_count>8</comment_count>
    <who name="Francisco Pedraza">pacopedraza87</who>
    <bug_when>2026-08-05 16:52:09 +0000</bug_when>
    <thetext>A quick comment:

After doing some checkup

`;type=git-dependency` is not something a network failure can produce — it is written by devtool at: `scripts/lib/devtool/standard.py:929`, which appends it to secondary non-local sources via a paired `SRC_URI:remove / SRC_URI:append` in the workspace bbappend. For bzip2 that is the bzip2-tests git URL, since SRC_URI begins with the tarball and standard.py:920 skips entry 0. This matches `test_devtool_modify_multiple_sources` (`meta/lib/oeqa/selftest/cases/devtool.py:1217`), which runs devtool modify `bzip2`.

I don&apos;t think the duplicate is in `SRC_URI`, though. `_get_srcrev()` (`bitbake/lib/bb/fetch2/__init__.py:819-822`) builds its SCM list by iterating fetcher.ud rather than fetcher.urls. ud comes from the module-global urldata_cache, keyed on `mc + FILE + id(d) (fetch2/__init__.py:1842-1845`) and merged into rather than replaced, with no invalidation when SRC_URI changes.

externalsrc.bbclass — always inherited under devtool modify — does exactly that: get_hashvalue(d) at line 80 caches the full URL set, then line 89 does d.setVar(&apos;SRC_URI&apos;, ...) with only the local subset, on the same datastore. A later `_get_srcrev()` then sees both the pre-bbappend URL and the `;type=git-dependency` one, and reports two SCMs for a recipe that has one. Note externalsrc itself iterates fetch.urls at line 83, while `_get_srcrev` iterates ud.

That would explain the intermittency without invoking the network: it depends on parse ordering and on whether a prior Fetch on the same cache key survives in the process, which varies with the long-lived bitbake server that oe-selftest uses.


Similar to: https://bugzilla.yoctoproject.org/show_bug.cgi?id=16382</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>