Bug 104415

Summary: rpm ignores --prefix
Product: [Retired] Red Hat Linux Reporter: Winfrid Tschiedel <Winfrid.Tschiedel>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED CURRENTRELEASE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-15 13:11:27 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 Winfrid Tschiedel 2003-09-15 12:23:37 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.8 [en] (Windows NT 5.0; U)

Description of problem:
The following command should install the product in a directory
/opt/intel/compiler80 
But after installation the product is not installed in the requested 
directory, it is installed in the default directory.

ls -l /opt
insgesamt 4
drwxr-xr-x    4 root     root         4096 Mai  9 23:37 intel
[root@p4 compiler80]# ls -l /opt/intel
insgesamt 8
drwxr-xr-x    6 root     root         4096 Mai  9 23:37 compiler70
drwxr-xr-x    2 root     root         4096 Sep  3 01:37 licenses

rpm -Uvh  --replacefiles --force --prefix /opt/intel/compiler80  intel-ifort8-8.0-29.i386.rpm
Preparing...                ########################################### [100%]
   1:intel-ifort8           ########################################### [100%]
[root@p4 l_fc_bc_8.0.024]# ls -l /opt
insgesamt 8
drwxr-xr-x    4 root     root         4096 Mai  9 23:37 intel
drwxr-xr-x    8 root     root         4096 Sep 15 13:54 intel_fc_80
[root@p4 l_fc_bc_8.0.024]# ls -l /opt/intel
insgesamt 8
drwxr-xr-x    6 root     root         4096 Mai  9 23:37 compiler70
drwxr-xr-x    2 root     root         4096 Sep  3 01:37 licenses
 

Version-Release number of selected component (if applicable):
rpm-4.1-1.06

How reproducible:
Always

Steps to Reproduce:

See in description, error was found in installation of intel fortran 8.0 on redhat 8.0; but it should be possible to reproduce this error 
with any relocatable product.  

Actual Results:  Product is installed in default directory

Expected Results:  Product should be installed in requested directory

Additional info:

Error does not occur on RedHat 9.0 with rpm-4.2-0.69

Comment 1 Jeff Johnson 2003-09-15 13:11:27 UTC
Yes, relocation broken on 8.0.

Upgrade to rpm-4.1.1 from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x