Bug 14094 - Switch RPM to use Sqlite instead of BDB
Summary: Switch RPM to use Sqlite instead of BDB
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.0 M2
Assignee: Alexander Kanavin
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-10-18 14:55 UTC by Ross Burton
Modified: 2021-10-13 16:13 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2020-10-18 14:55:10 UTC
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.
Comment 1 Ross Burton 2021-01-22 17:36:32 UTC
Tried the obviously switch and rootfs generation exploded.
Comment 2 Ross Burton 2021-02-11 13:47:02 UTC
Fedora hasn't switched yet as far as I know so punting this until they have.
Comment 3 Ross Burton 2021-07-01 14:50:06 UTC
Alex Kanavin has a WIP that actually works now that the pieces are all together, so assigning to him.
Comment 4 Alexander Kanavin 2021-07-22 18:07:47 UTC
This is likely 3.5 material, as rpm 4.17 won't materialize until sometime in the autumn.
Comment 5 Alexander Kanavin 2021-08-30 17:09:18 UTC
We'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.