- Executing rpmbuild in the fakeroot gets fairly tricky, especially
for the tests that actually compile things. Overriding the dbpath
prevents it from accessing system rpmdb for keyring and build-requires.
- With this patch, the test-suite now passes the smoke-test of
"chmod go-rx /var/lib/rpm" on system rpmdb.
function run()
{
- "$@" --define "_topdir ${TOPDIR}"
+ "$@" --define "_topdir ${TOPDIR}" --dbpath="${RPMTEST}/var/lib/rpm/"
}
function runroot()
]])
m4_define([RPMDB_CLEAR],[[
-rm -rf "${abs_builddir}"/testing`run rpm --eval '%_dbpath'`/*
+rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
]])
m4_define([RPMPY_RUN],[