From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686) Description of problem: When actually relocating a relocatable package with RPMv4, the installation fails. Specifically, if the prefix in the spec file is /usr, then using "--prefix /opt" in the rpm installation causes the file to be written to the FILE "/opt". If there is more than one file in the archive, then it tries to write ALL files to "/opt" and fails. If one uses "--prefix /opt/test", then RPMv4 tries to write all files in the archive to the FILE "/opttest". Note that the output file name has been mangled. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. download the rpms from above URL 2. type: "rpm --install --prefix /opt2 rpmbug-0.0.1-1.noarch.rpm" 3. this installs the included file in a FILE named "/opt2" 4. type:"rpm --install --prefix /opt2/test rpmbug2-0.0.1-1.noarch.rpm" 5. this installs the included file in a FILE named "/opt2test". 6. if the archive contains more than one file, then rpm v4 tries to write ALL files to one named "/opt2" or "/opt2test" 7. all of this works correctly with rpm v3 Actual Results: RPM file tree not relocated, and rpm tries to write all files to a single file. Expected Results: RPM should have relocated the entire archive tree. Additional info:
Created attachment 32558 [details] simple relocatable package
Yup, fixed since rpm-4.0.3-0.6. Try rpm-4.0.3-1.03 from ftp://ftp.rpm.org/pub/rpm/test-4.0.3, or wait for the final rpm-4.0.3 release in the next week or two.
*** Bug 54995 has been marked as a duplicate of this bug. ***