Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338721 - app-arch/rpm-4.8.1: rpmdb: Program version 4.8 doesn't match environment version 4.4
Summary: app-arch/rpm-4.8.1: rpmdb: Program version 4.8 doesn't match environment vers...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-25 19:14 UTC by Martin Mokrejš
Modified: 2018-03-20 17:43 UTC (History)
0 users

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


Attachments
build.log (build.log,179.90 KB, text/plain)
2018-03-20 17:43 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2010-09-25 19:14:23 UTC
I do not have available build.log anymore on my ~x86 host but it seems the python support is not ideal. Here is what I saw at the end of the emerge process:

>>> Completed installing rpm-4.8.1 into /var/tmp/portage/app-arch/rpm-4.8.1/image/

 * QA Notice: Automake "maintainer mode" detected:
 * 
 *       cd . && /bin/sh /var/tmp/portage/app-arch/rpm-4.8.1/work/rpm-4.8.1/missing --run automake-1.11 --foreign Makefile
 * 
 * If you patch Makefile.am, configure.in,  or configure.ac then you
 * should use autotools.eclass and eautomake or eautoreconf. Exceptions
 * are limited to system packages for which it is impossible to run
 * autotools during stage building. See
 * http://www.gentoo.org/proj/en/qa/autofailure.xml for more information.
Fixing .la files
   usr/lib/librpm.la
   usr/lib/librpmio.la
   usr/lib/librpmbuild.la
   usr/lib/python2.6/site-packages/rpm/_rpmmodule.la
   usr/lib/python2.6/site-packages/rpm/_rpmbmodule.la
ecompressdir: bzip2 -9 /usr/share/man
removing executable bit: usr/lib/librpm.la
removing executable bit: usr/lib/librpmbuild.la
removing executable bit: usr/lib/librpmio.la

>>> Installing (8 of 8) app-arch/rpm-4.8.1
 * RPM database found... Rebuilding database (may take a while)...
rpmdb: Program version 4.8 doesn't match environment version 4.4
error: db3 error(-30971) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 -  (-30971)
 * Compilation and optimization of Python modules for CPython 2.6 ...                                                                                                                                                     [ ok ]
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.


I am not sure if running python-updater will help.

# emerge --info
Portage 2.1.9.10 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r1, 2.6.31.14 i686)
=================================================================
System uname: Linux-2.6.31.14-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 25 Sep 2010 16:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python:     2.5.4-r4, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13::<unknown repository>, 2.67
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       3.3.6-r1, 4.2.4-r1, 4.3.5, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Nero-EULA-US skype-eula AdobeFlash AdobeFlash-10 AdobeFlash-10.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distcc distlocks fixlafiles fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en cs cz"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="32bit 7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cddb cdparanoia cdr cgi clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash fontconfig fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 imagemagick imlib inifile innodb ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli nat ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric objc ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3support qt4 quicktime rar raw readline recode reflection reiserfs romio rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcb xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


python-config says I have python-2.6 selected and I have dev-python/bsddb3-5.0.0 installed.
Comment 1 Martin Mokrejš 2010-09-25 19:25:02 UTC
I re-installed bsddb3 and that did NOT help, so I guess python-updater won't either.
Comment 2 Stanislav Ochotnicky (RETIRED) gentoo-dev 2010-10-18 18:15:22 UTC
This actually has nothing to do with python, but is caused by rpm database that has been created by older sys-libs/db and now rpm is linking with new version that is incompatible. 

As a workaround you can remove /var/lib/rpm/Packages and run "rpm --initdb". You will lose information about all files currently installed by rpm though.
Comment 3 Martin Mokrejš 2010-10-25 22:24:52 UTC
(In reply to comment #2)
> This actually has nothing to do with python, but is caused by rpm database that
> has been created by older sys-libs/db and now rpm is linking with new version
> that is incompatible. 
> 
> As a workaround you can remove /var/lib/rpm/Packages and run "rpm --initdb".
> You will lose information about all files currently installed by rpm though.

I do not care that much but there is no way to dump the database contents into a flatfile and re-import that during installation of the new binaries linked against updated libs?

Comment 4 Pacho Ramos gentoo-dev 2018-03-17 09:36:02 UTC
Please retry with 4.12.0.1
Comment 5 Martin Mokrejš 2018-03-20 15:51:15 UTC
I cannot retry. That host is dead these days and I do not have an old rpm database on another host, I think.
Comment 6 Martin Mokrejš 2018-03-20 17:43:47 UTC
Created attachment 524566 [details]
build.log

On another host I tried an upgrade from app-arch/rpm-4.8.1-r1 to app-arch/rpm-4.11.0.1.

It worked but how can I tell the database was in the old format?

>>> Installing (1 of 1) app-arch/rpm-4.11.0.1::gentoo
>>> needed    sym /usr/lib64/librpm.so.1
>>> needed    obj /usr/lib64/librpm.so.1.0.0
>>> needed    sym /usr/lib64/librpmio.so.1
>>> needed    obj /usr/lib64/librpmio.so.1.0.0
 * RPM database found... Rebuilding database (may take a while)...
>>> Auto-cleaning packages...