Bug 1778802

Summary: Removing libdb dependency
Product: [Fedora] Fedora Reporter: Filip Januš <fjanus>
Component: libdbAssignee: Filip Januš <fjanus>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, jnovy, kevin, pkubat, redhat-bugzilla, redhat.c2zyt, ssorce
Target Milestone: ---Keywords: Tracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1779190, 1779267, 1779658, 1781181, 1787311, 1788186, 1788480, 1788485, 1788486, 1788504, 1788538, 1788543, 1940391, 1940404, 1940412, 1940427, 1947971, 2060102    
Bug Blocks:    

Description Filip Januš 2019-12-02 14:19:44 UTC
Description of problem:
BerkeleyDB 6.x and later versions have a more restrictive license than the
previous versions (AGPLv3 vs. LGPLv2), and due to that many projects
cannot use it, it's time to replace this database by others (GDBM, SQLite, ...).

Actual results:
Some packages depend on libdb

Expected results:
none libdb dependency

Comment 1 Kevin Fenzi 2019-12-02 20:28:20 UTC
This license change is why the version in Fedora is still 5.x

Some sort of effort to replace it would be welcome I am sure, but it's likely to be a lot of work for whoever takes it on.

Moving to libdb for comment.

Comment 2 Petr Kubat 2019-12-03 12:16:47 UTC
Filip is the one person driving this from the libdb side. Not sure what purpose this bug report was supposed to serve, but we do have a (ancient) tracker bug for the transition you might want to reuse:

https://bugzilla.redhat.com/show_bug.cgi?id=1361971

Comment 3 Robert Scheck 2019-12-09 16:24:46 UTC
Filip, is there a special reason that RPM itself isn't listed here? RPM uses libdb, even it usually bundles it internally nowadays (which is also not either), but the better approach would be IMHO to make RPM switching to LMDB or similar - no?

Comment 4 Robert Scheck 2019-12-09 16:26:57 UTC
s/which is also not either/which is also not great/  # Sorry

And please note that bug #1086784 covering RPM was closed by it's maintainer.

Comment 5 Filip Januš 2019-12-10 09:19:28 UTC
You are right RPM and others components contain libdb dependency, I am trying to contact all component's maintainers gradually and solve this problem, so RPM would be add in the near future.

Comment 6 Simo Sorce 2020-01-15 21:11:41 UTC
Do you think it would be possible to provide a ldb-compat package stuck at this older version for those packages that have a data format dependency?

I think I may be able to change my package (cyrus-sasl) to use a different db by default, but I do not want to break people that already have a sasl db somewhere in use (I can't do package install time migrations because the db can be anywhere).

Comment 7 Filip Januš 2020-08-11 09:38:07 UTC
I understand Your problem with databases locations, but the actual state is very similar to compact package, we are maintaining version 5.x.x and actual upstream version is 18.x.x, it could lead in future to unexpected running problems or problems with compiling. Complete removal will take probably more than one Fedora release, but we would like to find a solution to your issue. Do you have some opinion except compat package?