Bug 227599 - emulators/linux_base-c6: Portupgrade fails due to "cp: symlink: libc-2.12.so: File exists" error
Summary: emulators/linux_base-c6: Portupgrade fails due to "cp: symlink: libc-2.12.so:...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Bryan Drewery
Depends on: 223943
  Show dependency treegraph
Reported: 2018-04-18 01:58 UTC by Terry Kennedy
Modified: 2022-08-07 18:15 UTC (History)
4 users (show)

See Also:

Transcript of failed portupgrade (10.09 KB, text/plain)
2018-04-18 01:58 UTC, Terry Kennedy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Kennedy 2018-04-18 01:58:51 UTC
Created attachment 192607 [details]
Transcript of failed portupgrade

Attempting to portupgrade linux_base-c6-6.9_6 to linux_base-c6-6.9_7 on FreeBSD 10-stable (r331931 amd64) fails with:

--->  Backing up the old version
--->  Uninstalling the old version
[Reading data from pkg(8) ... - 336 packages found - done]
--->  Deinstalling 'linux_base-c6-6.9_6'
--->  Preserving /compat/linux/usr/lib/i686/nosegneg/libc.so.6 as /usr/local/lib/compat/pkg/libc.so.6
cp: symlink: libc-2.12.so: File exists
Copy failed!
[Reading data from pkg(8) ... - 336 packages found - done]
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! linux_base-c6-6.9_6   (copy failed)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! emulators/linux_base-c6 (linux_base-c6-6.9_6) (uninstall error)

I don't believe I have made any local changes in this area, and the file in question appears in the ports plist, so I think this is a port error.

Complete transcript of the session attached.
Comment 1 Tijl Coosemans freebsd_committer 2018-04-18 08:25:33 UTC
It's a portupgrade bug.  It's trying to preserve libc.so.6 and i686/nosegneg/libc.so.6 both in the same destination.
Comment 2 Rene Ladan freebsd_committer 2019-12-31 15:34:49 UTC
FYI, Linux c6 ports are being removed today.
Comment 3 Terry Kennedy 2019-12-31 18:57:17 UTC
(In reply to Rene Ladan from comment #2)

Let's not close this PR, though - the same thing happens with the c7 port. I ran into it just the other day when c7 was updated.
Comment 4 Daniel Engberg freebsd_committer 2022-08-07 18:15:17 UTC
Closing as emulators/linux_base-c6 is nog longer in tree as of r521645 (SVN)

Please open a new PR if this is still relevant