Message227777
Running the test suite or 'test_distutils' triggers the creation of the directory '.rpmdb'. I noticed that because somehow that directory was bad formed and got errors while running the test suite:
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH:
Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /home/ci/.rpmdb
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH:
Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /home/ci/.rpmdb
After moving that directory and running the suite again the directory reappeared (but that time, and since then, no errors occurred). It seems that 'test_distutils.test_bdist_rpm' triggers that behavior. This seems to be due 'rpm' having it so configured [1]. In my case:
$ rpm -v --showrc | grep '.rpmdb'
-14: _dbpath %(bash -c 'echo ~/.rpmdb')
Here is a patch that confines the creation of this directory to the temporal test directory.
Regards,
francis
----
[1] https://bugs.launchpad.net/rpm/+bug/1069350 |
|
Date |
User |
Action |
Args |
2014-09-28 21:26:41 | francismb | set | recipients:
+ francismb, eric.araujo, dstufft |
2014-09-28 21:26:41 | francismb | set | messageid: <1411939601.45.0.729692387398.issue22512@psf.upfronthosting.co.za> |
2014-09-28 21:26:41 | francismb | link | issue22512 messages |
2014-09-28 21:26:41 | francismb | create | |
|