Bug 248019 - ports-mgmt/portupgrade: Fails to upgrade ports: Copy failed!
Summary: ports-mgmt/portupgrade: Fails to upgrade ports: Copy failed!
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:
Blocks:
 
Reported: 2020-07-16 17:31 UTC by Yuri Victorovich
Modified: 2022-10-03 18:39 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (bdrewery)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Victorovich freebsd_committer 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.