[Bug 284388] orts-mgmt/pkg:fatal error on installing package when there is a symlink in path "Fail to rename ..."

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 27 Jan 2025 13:06:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284388

            Bug ID: 284388
           Summary: orts-mgmt/pkg:fatal error on installing package when
                    there is a symlink in path "Fail to rename ..."
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: bugs.freebsd.org@cmb.ch

Installing nextcloud-php82-30.0.5...
pkg-static: Fail to rename /usr/local/.pkgtemp.www.y2jKB0T23cDO ->
/usr/local/www:Not a directory
*** Error code 1

As I have a symlink there:
[root@beastly /usr/local]# ls -al www
lrwxr-xr-x  1 root wheel 22 Jun 18  2024 www -> /mnt/DISK-13917166/www

What seems stange is that the (temporary) path is not within /usr/local/www/
but /use/local/  So maybe renaming /usr/local/www/.pkgtemp.bla.fasel ->
/usr/local/www/nextcloud would work as expected...

See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284325
Seems to apply to others as well (example is clamav)

cheers and thanks
cmb
PS: Still happens on ver = 2.0.4

-- 
You are receiving this mail because:
You are the assignee for the bug.