From e62c0500274012ca77817a24814de38944c8abd4 Mon Sep 17 00:00:00 2001 From: chantra Date: Feb 14 2022 16:52:55 +0000 Subject: [rpm][ndb] Use ndb database by default Fixes https://pagure.io/centos-sig-hyperscale/package-bugs/issue/13 --- diff --git a/SOURCES/ndb_default.patch b/SOURCES/ndb_default.patch new file mode 100644 index 0000000..b1df489 --- /dev/null +++ b/SOURCES/ndb_default.patch @@ -0,0 +1,25 @@ +From e19943a57c07eb0f2d2925390413f15bf771e828 Mon Sep 17 00:00:00 2001 +From: Matthew Almond +Date: Fri, 7 Jan 2022 10:33:28 -0800 +Subject: [PATCH] Switch from bdb to ndb + +--- + macros.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/macros.in b/macros.in +index abf0ed1fe..731341925 100644 +--- a/macros.in ++++ b/macros.in +@@ -595,7 +595,7 @@ package or when debugging this package.\ + # ndb new data base format + # sqlite Sqlite database (read-only in this version!) + # +-%_db_backend bdb ++%_db_backend ndb + + # + # Macros used to configure Berkley db parameters. +-- +2.30.2 + diff --git a/SPECS/rpm.spec b/SPECS/rpm.spec index cbaa05f..1068dda 100644 --- a/SPECS/rpm.spec +++ b/SPECS/rpm.spec @@ -192,6 +192,10 @@ Patch1982: 0033-Enable-fsverity-in-CI.patch Patch1983: 0034-rpmsign-Adopting-PKCS11-opaque-keys-support-in-libfsverity-for-fsverity-signatures.patch %endif +%if %{with ndb} +Patch9000: ndb_default.patch +%endif + Patch9989: 1534.patch Patch9990: https://github.com/rpm-software-management/rpm/pull/1381.patch Provides: rpm(pr1381)