This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author francismb
Recipients dstufft, eric.araujo, francismb
Date 2014-09-28.21:26:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411939601.45.0.729692387398.issue22512@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-09-28 21:26:41francismbsetrecipients: + francismb, eric.araujo, dstufft
2014-09-28 21:26:41francismbsetmessageid: <1411939601.45.0.729692387398.issue22512@psf.upfronthosting.co.za>
2014-09-28 21:26:41francismblinkissue22512 messages
2014-09-28 21:26:41francismbcreate