Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31422 - rpm -U fails/complains about Berkeley DB and DB_PRIVATE evironments
Summary: rpm -U fails/complains about Berkeley DB and DB_PRIVATE evironments
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Stefan Jones (RETIRED)
URL: http://www.redhat.com/archives/phoebe...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-18 09:47 UTC by Peter Gantner (a.k.a. nephros)
Modified: 2003-10-22 09:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gantner (a.k.a. nephros) 2003-10-18 09:47:44 UTC
Trying to update one of the applications I have installed though RPM (:P) gave 
the following error:
rpmdb: Berkeley DB library configured to support only DB_PRIVATE environments
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
rpmdb: Berkeley DB library configured to support only DB_PRIVATE environments
error: db4 error(22) from dbenv->open: Invalid argument
error: cannot open Packages database in /var/lib/rpm

The page from the URL above includes a simple patch which fixes this problem.

This apparently only applies to systems using NPTL.

Probably an upstream/WONTFIX problem, I report it here so that others may find 
it.


Reproducible: Always
Steps to Reproduce:
Try to install any RPM while using a NPTL-enabled glibc




RPM version: 4.2 from app-arch/rpm-4.2_pre069
sys-libs/db versions: 1.85-r1 3.2.9-r9 4.0.14-r2 4.1.25_p1-r1
glibc version: sys-libs/glibc-2.3.2-r6 USE="+nptl"
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-10-20 09:07:04 UTC
mmm, ok, I see rpm-4.2.1-0.30.src.rpm is now available, so I will add it
to portage
and could you then test it to see how it does?
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2003-10-21 12:22:57 UTC
I have added rpm-4.2.1 to portage, could you test it please to see if it
produces the same error?
Comment 3 Peter Gantner (a.k.a. nephros) 2003-10-22 04:38:03 UTC
It worked. Thank you.
I did rpm -Uvh foo.rpm --nodeps --replacepkgs --replacefiles 
No complaints whatsoever :)
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2003-10-22 09:00:31 UTC
Ok, I guess it is solved then; will bump to stable when nptl becomes offically
supported.