"rpm -i ldconfig" removes setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PLD Linux |
Fix Released
|
Undecided
|
Unassigned |
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://<email address hidden>
--------- install FHS and setup in empty chroot ---------
# rpm --root=/root/test -ivh FHS-2.3-23.i686.rpm setup-2.
# 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-
# rpm --root=/root/test -qa
FHS-2.3-23.i686
ldconfig-2.9-6.i686
# file /root/test/
/root/test/
--------- 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.
tags: | added: rpm |
tags: | added: chroot |
tags: | removed: chroot |
Changed in pld-linux: | |
status: | New → Fix Released |
i've done CLEAN installation, and seeing similar lost packages behaviour.
i've also observed that these packages get lost that have %post scriptlet.