[Bug 347749] Re: "rpm -i ldconfig" removes setup

pawelz pawelz at pld-linux.org
Mon Jun 15 13:14:55 CEST 2009


 have just upgraded rpm to 4.5-21 on my workstation:

[z at davabel ~]$ rpm -qa | grep rpm
rpm-4.5-21.i686
rpm-debuginfo-4.5-16.i686
rpm-php-pearprov-4.5-21.i686
rpm-build-4.5-21.i686
rpm-lib-4.5-21.i686
rpm-build-macros-1.519-1.noarch
rpm-pythonprov-4.5-21.i686
rpm-debuginfo-4.5-14.i686
rpm-build-tools-4.4.9-17.noarch
rpm-whiteout-1.26-1.noarch
rpm-specdump-0.3-6.i686
python-rpm-4.5-21.i686
rpm-perlprov-4.5-21.i686
rpmorphan-1.4-1.noarch
rpm-base-4.5-21.i686
rpm-utils-4.5-21.i686
rpmlist-1.5-1.noarch
rpm-utils-perl-4.5-21.i686
rpm-devel-4.5-21.i686
rpm-static-4.5-21.i686
rpm-javaprov-4.5-21.i686

and after upgrade it "found" many coreutils packages. Most probably
these are packages "lost" during upgrades.

[z at davabel ~]$ rpm -qa | grep coreutils
coreutils-7.1-2.i686
coreutils-7.1-1.i686
coreutils-7.1-2.i686
coreutils-7.1-2.i686
coreutils-7.1-2.i686
coreutils-7.1-2.i686
coreutils-7.4-1.i686
coreutils-7.2-1.i686
coreutils-6.12-3.i686

Does it mean that bug is really fixed?

-- 
"rpm -i ldconfig" removes setup
https://bugs.launchpad.net/bugs/347749
You received this bug notification because you are subscribed to PLD
Linux.

Status in PLD Linux Distribution: New

Bug description:
On some PLD installations installing some packages removes other ones from rpm database. Poldek reinstalls such packages on each upgrade.

It is the simplest test case:
my environment: th-test/i686, rpm-4.5-13.i686 and rpm-4.5-14.i686
one of PLD users (PawelK) has reported similar bug on ti/x86_64: http://www.mail-archive.com/pld-users-pl@lists.pld-linux.org/msg21777.html

--------- install FHS and setup in empty chroot ---------
# rpm --root=/root/test -ivh FHS-2.3-23.i686.rpm setup-2.6.2-2.i686.rpm                                                                               
# rpm --root=/root/test -qa                                              
FHS-2.3-23.i686
setup-2.6.2-2.i686
--------- now install ldconfig ---------
# rpm --root=/root/test -i ldconfig-2.9-6.i686.rpm
# rpm --root=/root/test -qa                         
FHS-2.3-23.i686
ldconfig-2.9-6.i686
# file /root/test/sbin/joinpasswd
/root/test/sbin/joinpasswd: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped
--------- so setup is NOT registered by rpm database but  it has not been uninstalled---------

I have attached console log with full rpm debug. (note "D: removing "setup" from Name index." line)

some observations:
* It happens with different packages. On my laptop it happens with coreutils - it is reinstalled on each upgrade. PawelK reported the same problem with coreutils and login.
* I'm sure that packages using for test was correct. I have downloaded them directly from ftp.
* I have tested it with rpm-4.5-13 and rpm-4.5-14. PawelK tested id with rpm-4.5-12.
* I tried to create directory, rpm --initdb i that directory, then copy this empty chroot and FHS, setup, ldconfig rpms to another machine. On that machine everything was ok. It means that rpm --initdb works corectly.
* I tried to install FHS and setup on my workstation, then copy chroot and ldconfig.rpm on another machine, and then install ldconfig. Still everything is ok. So something is wrong with rpm -ivh ldconfig on my workstation.


More information about the pld-bugs mailing list