[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

Francis MB report at bugs.python.org
Sun Sep 28 23:26:41 CEST 2014


New submission from Francis MB:

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

----------
components: Distutils, Tests
files: confine_hidden_rpmdb_dir_creation.patch
keywords: patch
messages: 227777
nosy: dstufft, eric.araujo, francismb
priority: normal
severity: normal
status: open
title: 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file36750/confine_hidden_rpmdb_dir_creation.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22512>
_______________________________________


More information about the Python-bugs-list mailing list