Bug 206524 - rpm --rebuildb of RHEL4 db fails
rpm --rebuildb of RHEL4 db fails
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
rawhide
ppc64 Linux
low Severity low
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-14 16:55 EDT by Jan Kratochvil
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-09-14 19:51:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Kratochvil 2006-09-14 16:55:53 EDT
Description of problem:
With rpm database built by RHEL4U4 I cannot run "rpm --rebuildb" on RawHide for
the same /var/lib/rpm/* database files.

Version-Release number of selected component (if applicable):
RHEL4U4 rpm: rpm-4.3.3-18_nonptl.ppc
RawHide rpm: rpm-4.4.2-32.ppc

How reproducible:
Always.

Steps to Reproduce:
[ reproduce execution of the mock-like script
http://cvs.jankratochvil.net/viewcvs/nethome/src/rawhide-bootstrap?rev=1.5 ]
1. mkdir $PWD/dir
2. rpm --root=$PWD/dir --initdb
3. [ install packages ]
4. chroot $PWD/dir rpm --rebuilddb

Actual results:
+ chroot /root/jkratoch/redhat/rawhide/root /bin/rpm --rebuilddb
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database
environment version mismatch
error: cannot open Packages index using db3 -  (-30974)

Expected results:
+ chroot /root/jkratoch/redhat/rawhide/root /bin/rpm --rebuilddb
[ nothing, success ]

Additional info:
It works on i386+x86_64, fails for ppc64.

Database built by RHEL4U4:
dir/var/lib/rpm/Basenames:      Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Conflictname:   Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Dirnames:       Berkeley DB (Btree, version 9, native byte-order)
dir/var/lib/rpm/Filemd5s:       Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Group:          Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Installtid:     Berkeley DB (Btree, version 9, native byte-order)
dir/var/lib/rpm/Name:           Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Packages:       Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Providename:    Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Provideversion: Berkeley DB (Btree, version 9, native byte-order)
dir/var/lib/rpm/Pubkeys:        Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Requirename:    Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Requireversion: Berkeley DB (Btree, version 9, native byte-order)
dir/var/lib/rpm/Sha1header:     Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Sigmd5:         Berkeley DB (Hash, version 8, native byte-order)
dir/var/lib/rpm/Triggername:    Berkeley DB (Hash, version 8, native byte-order)
Comment 1 Jeff Johnson 2006-09-14 19:13:35 EDT
You're mixing different versions of Berkeley DB.

This will fix
     rm -f /var/lib/rpm/__db*
NOTABUG
Comment 2 Jan Kratochvil 2006-09-14 19:51:01 EDT
Thanks, I was not aware the __db.* cache(?) has different compatibility rules.
(RawHide db4-4.3.29-7.fc6 vs. RHEL4U4 db4-4.2.52-7.1)
__db.* removal advice there in rpmdb would be nice.

Note You need to log in before you can comment on or make changes to this bug.