Bug 8709

Summary: rpm segfaults with --excludedir
Product: [Retired] Red Hat Linux Reporter: Thomas Moschny <moschny>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: sparc   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-22 11:55:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Thomas Moschny 2000-01-21 14:25:10 UTC
We got segmentation faults while trying to install some rpms this way:

 rpm -Uvh --excludedir /usr kdetoys-1.1.2-2.sparc.rpm

while /usr being mounted read-only.
This behaviour is similar for all rpms where /usr is relocatable.

The quick and dirty workaround is to use the following command:

 rpm -Uvh --relocate /usr=/tmp --excludedir /usr kdetoys-1.1.2-2.sparc.rpm

which does exactly what we want: Omit all files of the /usr tree while
installing an rpm-package.

Comment 1 Elliot Lee 2000-02-03 20:35:59 UTC
Confirmed with latest rpm in rawhide:
[root@ostrich-deluxe 6.2]# rpm -Uvh --excludepath /usr
alpha/kdetoys-1.1.2-3.alpha.rpm --nodeps
Segmentation fault

Comment 2 Jeff Johnson 2000-02-22 11:55:59 UTC
Fixed in cvs, will be in rpm-3.0.4-0.43. Thanks for noticing.