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"
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?
I have added rpm-4.2.1 to portage, could you test it please to see if it produces the same error?
It worked. Thank you. I did rpm -Uvh foo.rpm --nodeps --replacepkgs --replacefiles No complaints whatsoever :)
Ok, I guess it is solved then; will bump to stable when nptl becomes offically supported.