Red Hat Bugzilla – Bug 76326
--prefix/--relocate not working in 8.0
Last modified: 2008-05-01 11:38:04 EDT
Description of problem:
Trying to use --prefix or --relocate when installing a relocatable package does
not work. The package always uses the default prefix in the spec file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a spec file for an rpm that is relocatable
2. rpm -ivh --prefix=/foo file.rpm
3. observe the package igorning the --prefix option and defaulting to the
prefix in the spec file.
Actual Results: The rpm seems to install to the prefix that is defined in the
.spec file, totally ignoring the command line argument.
Expected Results: The rpm would install to the prefix issued.
I can take the same package and install it on a 7.2 system. On the 7.2 system,
the --prefix argument is followed, and my package installs to my prefix. Not
so on 8.0
Created attachment 81164 [details]
Sample SPEC file. RPM build from this file on 7.2 handles --prefix fine, build on 8.0, not so fine.
*** This bug has been marked as a duplicate of 75550 ***