Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153280 - =app-arch/rpm-4.4.7 doesn't work -> /var/lib/rpm is empty & the database can't be created
Summary: =app-arch/rpm-4.4.7 doesn't work -> /var/lib/rpm is empty & the database can'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Sandro Bonazzola (RETIRED)
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-29 04:55 UTC by Matt
Modified: 2006-12-05 06:26 UTC (History)
3 users (show)

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 Matt 2006-10-29 04:55:16 UTC
"error: cannot open Packages database in /var/lib/rpm" is being displayed when trying to install rpm packages

rpm --initdb && rpm -vv --rebuilddb 
doesn't help / work

first after reverting to 4.4.6-r2 the database is being created

after re-updating to 4.4.7 it also doesn't work, so it seems specific to rpm-4.4.7
emerge --info
Portage 2.1.2_rc1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-emission1 i686)
=================================================================
System uname: 2.6.18-emission1 i686 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 29 Oct 2006 09:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3, 2.17.50.0.5
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ "
LDFLAGS="-Wl,--hash-style=both"
LINGUAS="de en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/xfce4.4 /usr/local/portage/xgl-coffee /usr/local/portage/toolchain_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi aim alsa arts asf avahi avi bash-completion berkdb bitmap-fonts bonjour bzip2 cairo cddb cdparanoia cdr clamav cli cracklib crypt cups dbus divx dlloader dri dts dvb dvd dvdr dvdread elibc_glibc encode fbcon ffmpeg firefox fortran ftp gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal hardened iconv icq idn input_devices_keyboard input_devices_mouse input_devices_synaptics ipod ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lcms lesstif libg++ libnotify linguas_de linguas_en lm_sensors mad mmx mmx2 mmxext mp3 mpeg musicbrainz ncurses nls no-seamonkey nptl nptlonly nsplugin ogg opengl oscar pam pcre pdf perl pic png ppds pppd python quicktime readline reflection scanner session slang smp spell spl sse sse2 ssl startup-notification svg tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_fglrx video_cards_nv video_cards_nvidia vorbis wifi win32codecs x264 xine xinerama xorg xscreensaver xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

(I'm using hashstyles at the moment, but this also occurs without hashstyles)
Comment 1 Bernard Cafarelli gentoo-dev 2006-10-30 05:30:51 UTC
Same here, trying to downgrade rpm to generate the database

Portage 2.1.2_rc1-r1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.18-ck1-r1 i686)
=================================================================
System uname: 2.6.18-ck1-r1 i686 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHzGentoo Base System version 1.12.5
Last Sync: Mon, 30 Oct 2006 11:50:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -march=pentium-m -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=i686 -O2 -march=pentium-m -msse3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer parallel-fetch prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://pandemonium.tiscali.de/pub/gentoo/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="fr fr_FR"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.cafarelli.fr/gentoo-portage"
USE="x86 X a52 aac aalib aim alsa audiofile bash-completion beagle berkdb bitmap-fonts bonobo bzip2 cairo cddb cdr cli cracklib crypt cscope cups curl dbus dga dio dlloader dri dts dvd dvdr dvdread elibc_glibc emboss encode exif expat ffmpeg fftw firefox flac foomaticdb fortran ftp galago gcj gd gdbm gif gimp glut gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtkhtml iconv idn imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java jikes joystick jpeg kernel_linux lcms libcaca libg++ libnotify linguas_fr linguas_fr_FR live mad matroska mbox mikmod mime mmx mng modplug mono mp3 mpeg msn musicbrainz nas ncurses nls nptl nptlonly nsplugin nvidia objc offensive ogg openal opengl oscar oss pam pcmcia pcre pda pdf perl php pic png posix ppds pppd python qt3 qt4 quicktime readline real recode reflection ruby samba scanner sdl seamonkey session slang smp speex spell spl sqlite sse sse2 ssl startup-notification subtitles svg tcl tcltk tcpd tetex theora threads tiff timidity tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_none video_cards_nvidia vorbis wifi win32codecs wma wmf wxwindows x264 xcomposite xface xine xinerama xml xml2 xorg xosd xpm xscreensaver xv xvid xvmc yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Sandro Bonazzola (RETIRED) gentoo-dev 2006-10-30 11:07:02 UTC
It's not a --rebuilddb issue, it's an initdb issue:

# rpm -vv --initdb
D: dbiOpen: _dbiapi failed

I'm trying to do some debugging in order to find out what is appening here.
Comment 3 Matt 2006-11-01 04:23:01 UTC
thanks for your help,

this version seems to be pretty new though, ... so the hackers at redhat will (hopefully) solve the problem soon :)
Comment 4 Sandro Bonazzola (RETIRED) gentoo-dev 2006-11-13 11:58:54 UTC
It seems to work fine under ~amd64:
app-arch/rpm-4.4.7-r1:

# rpm -vv --initdb
D: opening  db environment /var/lib/rpm/Packages cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages create mode=0x42
D: locked   db index       /var/lib/rpm/Packages
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages

# rpm -vv --rebuilddb
D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.7914
D: creating directory /var/lib/rpmrebuilddb.7914
D: opening old database with dbapi 3
D: opening  db environment /var/lib/rpm/Packages cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: opening new database with dbapi 3
D: opening  db environment /var/lib/rpmrebuilddb.7914/Packages create:mpool:joinenv
D: opening  db index       /var/lib/rpmrebuilddb.7914/Packages create mode=0x42
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: closed   db index       /var/lib/rpmrebuilddb.7914/Packages
D: closed   db environment /var/lib/rpmrebuilddb.7914/Packages
D: removing directory /var/lib/rpmrebuilddb.7914

Seems to be a x86 specific issue.
CCing x86 team in order to let them know about the issue.
Comment 5 Matt 2006-11-13 12:17:54 UTC
thanks Sandro, I'm going to try if I can reproduce this 
Comment 6 Matt 2006-11-13 14:25:03 UTC
confirmed! it works under amd64 with =rpm-4.4.7-r1 
at least one gentoo-installation where I can install my scanner-drivers via rpm ;)
Comment 7 Christian Faulhammer (RETIRED) gentoo-dev 2006-12-05 04:16:40 UTC
I can reproduce on x86, but what to do about it?
Comment 8 Wulf Krueger (RETIRED) gentoo-dev 2006-12-05 05:51:41 UTC
If this still happens with app-arch/rpm-4.4.7-r1 (which is what the some comments here and the forum postings suggest) it should be keyworded "-x86" ASAP, IMHO, to avoid more confusion until it's fixed by upstream. (Upstream are aware of this problem, aren't they?)

I've messed for hours with my RPM database thinking it was corrupted till I found this bug and I guess I might not be the only one.
Comment 9 Christian Faulhammer (RETIRED) gentoo-dev 2006-12-05 06:26:46 UTC
(In reply to comment #8)
> If this still happens with app-arch/rpm-4.4.7-r1 (which is what the some
> comments here and the forum postings suggest) it should be keyworded "-x86"
> ASAP, IMHO, to avoid more confusion until it's fixed by upstream. (Upstream are
> aware of this problem, aren't they?)

 ASAP? I don't know if upstream knows and I don't care.  Sanchan, your part.

Marking it -x86 means that packages depending on >=app-arch/4.4.7 will break.  So I masked it for x86 and hardened/x86 which will throw a more informative message when emerging.  Thanks wolf for the advise on that.