Peter S. Mazinger wrote:
On Wed, 6 Jun 2007, Doug Summers wrote:

Ralf S. Engelschall wrote:
On Wed, May 23, 2007, Doug Summers wrote:

 Never seen this before...after building the latest OpenPKG binary for AIX
 5.1 the whole RPM database blows up after installation (opkg-i is an alias
 to 'openpkg rpm -Uvh'):

 [EMAIL PROTECTED] /openpkg/RPM/PKG]$ opkg-i
 openpkg-20070520-20070520.powerpc-aix5.1-ope.rpm
 error: failed to open /etc/mtab: No such file or directory
 Preparing...                ###########################################
 [100%]
    1:openpkg                ###########################################
 [100%]
 rpmdb: unknown type: 0
 error: cannot open Packages index using db3 - Invalid argument (22)
 error: cannot open Packages database in /openpkg/RPM/DB
 error: /openpkg/etc/openpkg/openpkg.org.pgp: import failed.
 rpmdb: unknown type: 0
 error: cannot open Packages index using db3 - Invalid argument (22)
 error: cannot open Packages database in /openpkg/RPM/DB
 error: /openpkg/etc/openpkg/openpkg.com.pgp: import failed.
 rpmdb: unknown type: 0
 error: cannot open Packages index using db3 - Invalid argument (22)
 error: cannot open Packages database in /openpkg/RPM/DB
 error: /openpkg/etc/openpkg/openpkg.net.pgp: import failed.

I have seen a similar case, when I enabled sqlite support in rpm and had to define in which format the rpm db's are, before I could run correct rebuild
Berkeley DB type = 3
sqlite = 4
I had to modify _dbapi (current type of DB) and _dbapi_rebuild (wanted type after rebuild) to convert between formats, after such conversion _dbapi has to be set to _dbapi_rebuild type, else you see a similar error as above.
(--showrc will show the current values of the above)
I can't say if openpkg can be affected, as I haven't checked the all of the rpm applied patches.
Note:
The same also applies for db1->db3 format conversion, haven't checked if openpkg removed the db1 support in some patch.

I would check first with `file` what kind of DB files are around

Peter

OK - I got it a clean build to work, using these IBM rpm's:
gcc-4.0.0-1
gcc-c++-4.0.0-1
libgcc-4.0.0-1
libstdc++-4.0.0-1
libstdc++-devel-4.0.0-1
m4-1.4.1-1
make-3.80-1

Obviously something's happening during an upgrade; what that is I have no idea.
______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to