<?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>15739</bug_id>
          
          <creation_ts>2025-02-07 12:14:59 +0000</creation_ts>
          <short_desc>cache file with source revisions is no longer being created after refactor away from sqlite</short_desc>
          <delta_ts>2025-02-07 13:03:24 +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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Kanavin">alex.kanavin</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>100879</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2025-02-07 12:14:59 +0000</bug_when>
    <thetext>This commit
https://git.openembedded.org/bitbake/commit/?id=fdc55bb649cb77456d0ac48a9600ef289a52af18

seems to have introduced a regression where the cache file (local_srcrevisions.dat) is never actually written out to disk.

This can be observed by creating a clean poky build with master, running &apos;bitbake -c unpack m4-native&apos;, and looking in build/cache:

alex@Zen2:/srv/storage/alex/yocto/build-test-cache$ ls cache/
bb_codeparser.dat  bb_unihashes.dat  hashserv.db  hashserv.db-shm  hashserv.db-wal  local_file_checksum_cache.dat  sanity_info


This should be addressed by calling 

    bb.fetch2.fetcher_parse_save()
    bb.fetch2.fetcher_parse_done()

during bitbake shutdown but I&apos;m not sure why it isn&apos;t happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100880</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-02-07 12:31:11 +0000</bug_when>
    <thetext>You&apos;d need to have something actually needing a stored revision to write out the cache file (i.e. using AUTOREV)? I doubt it would write an empty file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100884</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2025-02-07 13:03:24 +0000</bug_when>
    <thetext>Right, if I add 

PREFERRED_PROVIDER_virtual/kernel = &quot;linux-yocto-dev&quot;

then the file appears. False alarm then.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>