[Rpm-maint] [rpm-software-management/rpm] Make the default DB backend macro configurable (#157)

Panu Matilainen notifications at github.com
Fri Feb 17 11:05:06 UTC 2017


Currently if rpm is built with --enable-ndb, all newly created databases are in that format. We'll need more control over the format to enable safe testing which is a prerequisite for wider testing.

We need a macro configurable (%_rpmdb_backend or such) to set the default backend for newly created databases and default to BDB regardless of build-time options to be on the safe side. To convert to another format, changing the macro value to another backend and doing `rpmdb --rebuilddb` should be enough as rebuilddb starts by creating a new db.

It should be possible to arbitrarily switch back and forth between backends by --rebuilddb. I suspect currently it only works going from BDB to NDB because the files from the old database are not cleaned out on rebuild, IIRC. So that might need fixing too.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/157
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170217/7bd124b4/attachment.html>


More information about the Rpm-maint mailing list