Bug 248019

Summary: ports-mgmt/portupgrade: Fails to upgrade ports: Copy failed!
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: Bryan Drewery <bdrewery>
Status: New ---    
Severity: Affects Only Me CC: dpetrov67, junchoon
Priority: --- Flags: bugzilla: maintainer-feedback? (bdrewery)
Version: Latest   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer freebsd_triage 2020-07-16 17:31:05 UTC
For example:
> $ sudo portupgrade -f graphics/qt5-opengl x11-toolkits/qt5-widgets
> ...
> --->  Preserving /usr/local/lib/qt5/libQt5Widgets.so.5.15 as /usr/local/lib/compat/pkg/libQt5Widgets.so.5.15
> cp: symlink: libQt5Widgets.so.5.15.0: File exists
> Copy failed!


portupgrade-2.4.16,2
Comment 1 Tomoaki AOKI 2022-09-24 07:06:11 UTC
Can you try the latest patch proposed (by me) at Bug 266386?
It includes another, newer bug caused by latest /usr/bin/file update on main and stable/13, but was harmless when I tried it before the MFC of offending commit.

The second hunk of the patch fixed the issue here for me, but unfortunately lost track from where/whom I've got the fix.

The first hunk of the patch is the proposed fix for another issue by Katsuyuki Miyoshi.
Comment 2 Tomoaki AOKI 2022-09-24 07:44:52 UTC
Finally I found where I've got the fix for this by grep'ping my maildir.
Bug223943 Comment13 was the source, and I've hand-crafted the local patch, which essentially the second hunk now, much later.