Red Hat Bugzilla – Bug 90558
RPM 4.1 unable to properly upgrade with relocated packages
Last modified: 2007-04-18 12:53:38 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.3) Gecko/20030313
Description of problem:
JBJ asked me to enter the following information. This was generated with the
MontaVista version of RPM which I have already provided to JBJ.
The issue is when upgrading a relocated package with a newer version (same
relocation prefix on the new package), RPM seems to delete the files installed
as part of that package, and the RPM database says the system has the newer version.
Version-Release number of selected component (if applicable):
rpm-4.1 + patches
Steps to Reproduce:
1.rpm -i --prefix=<something> <package capable of being relocated>
2.rpm -U --prefix=<something> <updated package>
3.rpm -q <package> returns the new version strip
Actual Results: The files that were to be upgraded were gone.
Expected Results: Upgrade should have put new versions of the files on the system
Created attachment 91589 [details]
rpm -vv output of an -U
Hmmm, you've modified the relocation code. I'll take a look
You're gonna need to do relocations on the header
twice, once when package is added to transaction,
again when installing. Otherwise, the generation
of fingerprints (which is essential for correct
file resolutions to be computed for upgrades) is
Look for the action "skip" after the "fini" diagnostic
message during package erasure.
This problem resolved, I believe.