On 3/30/15 7:16 PM, Ed Bartosh wrote: > Rpm database in staging area is used only by createrepo. > createrepo fails with the error > "rpmdb: BDB0060 PANIC: fatal region error detected" > if rpm database is broken during previous run of createrepo. > > Made createrepo to create rpm db in $WORKDIR/rpmdb/ from scratch > for every build. This should potentially fix the failure. > > [YOCTO #6571] > > Signed-off-by: Ed Bartosh <ed.bart...@linux.intel.com> > --- > meta/lib/oe/package_manager.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py > index 743c7cb..2461acd 100644 > --- a/meta/lib/oe/package_manager.py > +++ b/meta/lib/oe/package_manager.py > @@ -110,12 +110,16 @@ class RpmIndexer(Indexer): > rpm_createrepo = bb.utils.which(os.getenv('PATH'), "createrepo") > index_cmds = [] > rpm_dirs_found = False > + dbpath = os.path.join(self.d.getVar('WORKDIR', True), 'rpmdb') > + if os.path.exists(dbpath): > + bb.utils.remove(dbpath, True) > for arch in archs: > arch_dir = os.path.join(self.deploy_dir, arch) > if not os.path.isdir(arch_dir): > continue > > - index_cmds.append("%s --update -q %s" % (rpm_createrepo, > arch_dir)) > + index_cmds.append("%s --dbpath %s --update -q %s" % \ > + (rpm_createrepo, dbpath, arch_dir))
I'd suggest that the dbpath be made arch specific.... this would eliminate any serialization that may occur with even simple DB locks. --dbpath %s/%s .... --Mark > > rpm_dirs_found = True > > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core