On 4/2/20 7:45 PM, Pavel Raiskup wrote:
On Tuesday, March 31, 2020 8:42:37 AM CEST Panu Matilainen wrote:
Last but certainly not least, please do test the database stuff! We will
not be changing the default until several weeks from now (for
stabilization and coordination with infrastructure/rel-eng efforts), but
you can and should test locally:
# echo '%_db_backend sqlite' > /etc/rpm/macros.db
# rpmdb --rebuilddb
I'm trying to test this with mock (2.2 from updates-testing). Note that
mock puts macros below $HOME/.rpmmacros (if that matters):
$ cat test.cfg
include('fedora-rawhide-x86_64.cfg')
config_opts['root'] = 'fedora-SQLiteRawhide-x86_64'
config_opts['macros']['%_db_backend'] = 'sqlite'
$ mock -r ./test.cfg --rebuild ~/rh/packages/postgresql/fedora/postgresql-12.2-2.fc33.src.rpm
...
And it seems to work, as I see files like:
$ ls -1 /var/lib/mock/fedora-SQLiteRawhide-x86_64*/root/var/lib/rpm/*sqlite*
/var/lib/mock/fedora-SQLiteRawhide-x86_64/root/var/lib/rpm/rpmdb.sqlite
/var/lib/mock/fedora-SQLiteRawhide-x86_64/root/var/lib/rpm/rpmdb.sqlite-shm
/var/lib/mock/fedora-SQLiteRawhide-x86_64/root/var/lib/rpm/rpmdb.sqlite-wal
Can we consider this to be working (from mock POV)?
I suppose so. What host are you running from?
Don't you have the RPM package built somewhere that has the SQLite DB
backend enabled by default so I could test?
Not at the moment, not sure where to place such a thing. A copr maybe if
there's interest...
- Panu -
Pavel
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx