Bug 117419
Summary: | rpm Upgrade combined with --prefix fails | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Frederik Holst <spam> |
Component: | rpm | Assignee: | Paul Nasrat <nobody+pnasrat> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | leonard-rh-bugzilla |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | rpm-4.2.1-0.30 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-11-28 23:35:01 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Frederik Holst
2004-03-03 20:20:49 UTC
Do you have a copy of the srpm you used, and a list of exactly the commands executed and an explicit list of the (presumably) files that were not removed? copy of the srpm that produced the binary rpm's which did not upgrade is what I meant. Sorry for any confusion. It's just a simple rpm that only contains files, no compiling or anything. Here is a short example: master.spec: --- # Test Spec Master Name: Test Version: 0.0.1 Release: 1 Group: Application/Networking License: GPL Prefix: /tmp/test Summary: Test Master %description Test Master %prep mkdir -p /tmp/test cp /etc/inittab /tmp/test %files /tmp/test/inittab --- This takes the /etc/inittab (or any other file) and puts it into the rpm: rpmbuild -bb master.spec Install this new rpm with the following: rpm -i --prefix=/tmp/test2 Test-0.0.1-1.i586 You will find the inittab in /tmp/test2/inittab. So far, so good. Now take this update.spec which provides the previous rpm with a "new version": update.spec: --- # Test Spec Master Name: Test Version: 0.0.2 Release: 1 Group: Application/Networking License: GPL Prefix: /tmp/test Summary: Test Update %description Test Update %prep echo "New inittab" > /tmp/test/inittab %files /tmp/test/inittab --- This creates a new inittab and puts it into a new rpm: rpmbuild -bb update.spec Install it now with Upgrade and Prefix: rpm -U --prefix=/tmp/test2 Test-0.0.2-1.i586.rpm The result is, that there will be no inittab file anymore in /tmp/test2. Neither the old one, nor the new one. If you do all installations without the --prefix, all works fine. Verified this on RHL 9, rpm-4.2-0.69. Indeed the file disappears. However, on Fedora Core 1, rpm-4.2.1-0.30 this works fine. So either you can backport the fix from FC 1 to RHL 9, or close this as CURRENTRELEASE. Thanks for the testing. |