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: New
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
URL:
Keywords:
Depends on: 223943
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-18 01:58 UTC by Terry Kennedy
Modified: 2019-04-07 12:26 UTC (History)
1 user (show)

See Also:


Attachments
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.