<?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>14094</bug_id>
          
          <creation_ts>2020-10-18 14:55:10 +0000</creation_ts>
          <short_desc>Switch RPM to use Sqlite instead of BDB</short_desc>
          <delta_ts>2021-10-13 16:13:45 +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>devtools / tool chain</component>
          <version>3.4</version>
          <rep_platform>x86</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>4.0 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88411</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-10-18 14:55:10 +0000</bug_when>
    <thetext>Fedora 33 is about to release and that ships with rpm 4.16 using sqlite as the default backend.

We should move now, as the BDB backend will be dead soon and BDB is horrible.

https://src.fedoraproject.org/rpms/rpm/c/d451552090cd0f5399a09f6ece982f62d85c37d0?branch=master was the rpm change in fedora.

Two parts:
1) change the default backend
2) migrate any on-target databases

Note that RPM has a cleanroom read-only implementation of the BDB format so it can read a database for migration without needing BDB present.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89001</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-01-22 17:36:32 +0000</bug_when>
    <thetext>Tried the obviously switch and rootfs generation exploded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89207</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-02-11 13:47:02 +0000</bug_when>
    <thetext>Fedora hasn&apos;t switched yet as far as I know so punting this until they have.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90824</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-07-01 14:50:06 +0000</bug_when>
    <thetext>Alex Kanavin has a WIP that actually works now that the pieces are all together, so assigning to him.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91006</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-07-22 18:07:47 +0000</bug_when>
    <thetext>This is likely 3.5 material, as rpm 4.17 won&apos;t materialize until sometime in the autumn.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91306</commentid>
    <comment_count>5</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-30 17:09:18 +0000</bug_when>
    <thetext>We&apos;re getting closer.

Branch with 4.17rc1, with sqlite and zstd enabled:

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=akanavin/package-version-updates

AB run for that branch:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/2525

The four failures were an easily fixable repro issue in lua.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91737</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-10-13 16:13:45 +0000</bug_when>
    <thetext>Done
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master&amp;id=c3189b9efeace692965b409d8588cb3833e53f5b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>