Bug 54995

Summary: rpm -i --prefix not working right
Product: [Retired] Red Hat Linux Reporter: Need Real Name <adsharma>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2J   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-10-24 01:14:22 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 Need Real Name 2001-10-24 01:14:18 UTC
Description of Problem:

When I install a relocatable package:

$ rpm -qpl log-triggers-4.0.6_2855-1.noarch.rpm 
/opt/foo/store/trigger
/opt/foo/store/trigger/AlertTrigger.py
/opt/foo/store/trigger/CritTrigger.py
/opt/foo/store/trigger/EmergeTrigger.py

with

# rpm -i --prefix=/var/tmp/foo log-triggers-4.0.6_2855-1.noarch.rpm 

I get:

$ rpm -ql log-triggers
/var/tmpfoo
/var/tmp/foo/AlertTrigger.py
/var/tmp/foo/CritTrigger.py
/var/tmp/foo/EmergeTrigger.py

I think the first one (/var/tmpfoo) is broken.

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

4.0, 4.0.2

How Reproducible:

Very.

Steps to Reproduce:
1. 
2. 
3. 

Actual Results:

/var/tmpfoo

Expected Results:

/var/tmp/foo

Additional Information:

Comment 1 Jeff Johnson 2001-10-24 02:03:50 UTC

*** This bug has been marked as a duplicate of 53999 ***