RPM Community Forums

Mailing List Message of <rpm-users>

Fwd: Compiling RPM-5.1.9 with external Berkley

From: bishwajit goswami <bswjt.callmebish@gmail.com>
Date: Wed 20 Nov 2013 - 16:17:45 CET
Message-ID: <CAE=__BgPkDqNsi7t10m0nO58wOV_E_R8DmtBXQk4Z7f-LP8XDQ@mail.gmail.com>

We use Berkley DB 4.8 for some DB transactions. The DB utilities are
already exported for Berkley DB 4.8. Berkley 4.8 is also used in our case
to link with RPM 4.8.

However, we are planning to migrate to RPM 5.1.9. As part of this
migration, I am able to compile RPM 5.1.9 externally with Berkley 4.8. I
can also use the built rpm for queries etc.

The problem comes when I try to install a package with --nodeps and
initialize an RPMDB. A snippet is pasted below:

[root@bgl-ng-install-vxr1 rpm-5.1.9]# ./rpm -ivh --nodeps --root=/tmp

Preparing...                rpmdb: DB_ENV->add_data_dir: method not
permitted after handle's open method

rpmdb: stat: /tmp/usr/local/rpm5/__db.Basenames: No such file or directory

rpmdb: Basenames: No such file or directory

error: cannot open Basenames(1117) index using db3 - No such file or
directory (2)

rpm: rpmdb.c:3693: rpmdbFindFpList: Assertion mi !=3D ((void *)0)&#39;

<p class=3D"MsoNormal" style=3D"margin-bottom:0.0001pt;line-height:normal">=
Aborted (core dumped)</p>

<br></div><div>I am not sure what sort of changes would be needed to get th=
is working. <br></div><div>I looked over the forum but failed to find any p=
atches available for RPM 5.1.9 to support external Berkley.<br></div><div>

<br><br></div>Thanks and Regards,<br><div><div>Bishwajit Goswami<br>
Received on Wed Nov 20 17:27:24 2013
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.