Bug 32517
Summary: | rpm-4.0.2-7x --prefix arg gets corrupted | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Mike Pope <mpope> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | ||
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-03-28 02:42:18 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
Mike Pope
2001-03-21 04:58:08 UTC
Try adding a trailing / character, as --prefix (or it's new incarnation --reloccate <oldpath>=<newpath>) permits partial specification of paths IIRC No luck, with either --prefix or --relocate, with or without trailing slash. [root@riesling /tmp]# rpm -Uv --test --prefix /usr/local/ zip-2.3-8.i386.rpm Preparing packages for installation... package zip-2.3-8 is already installed file /usrlocal from install of zip-2.3-8 conflicts with file from package filesystem-2.0.7-1 ... (zip-2.3-8 from RH7.0, but the choice of package does not appear to matter) But the behavior is different if you add a trailing '/'. You can eliminate the conflicts message by adding --nodeps. Does that install your package with relocated path /usr/local? No, the difference was only between an install and an upgrade. Here is a cleaner example. # rpm -e arpwatch # rpm --install --prefix /tmp/foo/ arpwatch-2.1a4-29.i386.rpm error: can't rename /tmpfoo to /tmpfoo-RPMDELETE: Is a directory error: unpacking of archive failed on file /tmpfoo: cpio: unlink failed - Is a directory # rpm --install --prefix /tmp/foo arpwatch-2.1a4-29.i386.rpm error: can't rename /tmpfoo to /tmpfoo-RPMDELETE: Is a directory error: unpacking of archive failed on file /tmpfoo: cpio: unlink failed - Is a directory # rpm --install --relocate /usr/=/tmp/foo/ arpwatch-2.1a4-29.i386.rpm error: can't rename /tmpfoo to /tmpfoo-RPMDELETE: Is a directory error: unpacking of archive failed on file /tmpfoo: cpio: unlink failed - Is a directory # rpm -q arpwatch package arpwatch is not installed The other three combinations of --relocate with trailing and non-trailing slashes are all the same. I am quite unconvinced the *trailing* slash (or lack thereof) are the problem (nor should it be). This problem is fixed in the rpm-4_0 branch in CVS, will be in rpm-4.0.3-0.5. |