Red Hat Bugzilla – Bug 57078
rpm-4.0.3 of RH7.2 not creating .rpmsave files
Last modified: 2008-05-01 11:38:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011129
Description of problem:
When using the rpm spec file (see below), rpm-4.0.2 of RH7.1 creates an
.rpmsave file as expected during upgrade. When upgrading with rpm-4.0.3 of
RH7.2, no .rpmsave file is created. source0 is a .tar.gz containing a text
file which can be modified.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create testrpm-1.0-1 with attached spec file. testrpm-1.0.tar.gz should
contain file testrpm.conf file.
2.Install the package with rpm -Uvh testrpm*rpm
3.Modify /etc/testrpm.conf and testrpm.conf in .tar.gz so that they differ
from each other and from the file from 1.0-1.
4.Bumb testrpm release to 2 and build testrpm-1.0-2.
5.Upgrade with rpm -Uvh testrpm*rpm.
Actual Results: A .rpmsave file is created under RH7.1, not under RH7.2!
The /etc/testrpm.conf is overwritten with the file from the new rpm package.
Expected Results: A .rpmsave file should be created with 7.2.
testrpm.spec used was:
Summary: A test RPM
Group: System Environment/Base
A test RPM.
mkdir -p $RPM_BUILD_ROOT/etc
cp testrpm.conf $RPM_BUILD_ROOT/etc
rm -rf $RPM_BUILD_ROOT
* Wed Dec 4 2001 Anonymous
- initial version
Try the upgrade with -vv, and find the file disposition
in the output. What is the file disposition?
Created attachment 40249 [details]
Created attachment 40250 [details]
Created two attachments, created under RH7.1 and RH7.2 with:
rpm -vv -Uvh testrpm-1.0-1.rpm > file 2>&1
rpm -vv -Uvh testrpm-1.0-2.rpm > file 2>&1
So, any news about this? It's been a while...
It's a bug, introduced by a change in rpm-4.0.3, where files
from the payload are now unpacked into a temp file that
is renamed into place, rather than the traditional behavior,
writing directly intoi the file.
This won't be fixed in rpm-4.0.4 -- it's been too late for a while --
but will be fixed soon thereafter.
Ok, I'll be waiting.
Thanks for your kind answers.
Fixed in rpm-4.0.4-7x.8. Thanks for the report.
*** Bug 60377 has been marked as a duplicate of this bug. ***