Bug 13819 - can't upgrade package with symlink in place of directory
can't upgrade package with symlink in place of directory
Status: CLOSED DUPLICATE of bug 3979
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
:
: 23265 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-07-12 15:39 EDT by Philip Spencer
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-01-09 10:42:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Philip Spencer 2000-07-12 15:39:27 EDT
RPM (both versions 3.0.3 from Redhat 6.1 distribution and 3.0.4 from Redhat
6.2 distribution) will fail to upgrade a package if the new version has a
symlink where the old version had a directory.

Example:

Package foo version 1 has a directory /foo
Package foo version 2 puts its stuff in /bar, and has a symlink /foo ->
/bar for compatibility.

If foo-1.whatever.rpm is installed, "rpm -U foo-2.whatever.rpm" will fail.
With rpm 3.0.4 the error message is "unpacking of archive failed on file
/foo: cpio: unlink failed - Bad file descriptor". Version 3.0.3 gives a
slightly better message, "unpacking of archive failed on file /foo: cpio:
unlink failed - Is a directory".

rpm -e foo followed by rpm -U foo works correctly, but foo cannot be
upgraded from version 1 to version 2 by rpm unless you erase it completely
first.
Comment 1 Jeff Johnson 2000-07-12 15:47:42 EDT
No version of rpm has ever supported the ability to replace a directory with a
symlink. This
problem is starting to be addressed in rpm-4.0, but  ...

I'd suggest you consider some other way to package, because it's gonna be a
while before
rpm can/will support the ability to replace a directory with a symlink.
Comment 2 Jeff Johnson 2001-01-09 10:41:14 EST
*** Bug 23265 has been marked as a duplicate of this bug. ***
Comment 3 Jeff Johnson 2001-01-09 11:26:27 EST

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

Note You need to log in before you can comment on or make changes to this bug.