[Bug 284355] pkg-static: Fail to rename /var/* -> /var/db:Not a directory

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Jan 2025 03:29:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284355

            Bug ID: 284355
           Summary: pkg-static: Fail to rename /var/* -> /var/db:Not a
                    directory
           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: joel@tahoestores.com

The lastest one or two versions of pkg has introduced a failure in the install
phase of some ports when the /var/db directory is a symbolic link.

In my case clamav and vuls.

pkg-static: Fail to rename /var/.pkgtemp.db.pMTpAFbmGrNX -> /var/db:Not a
directory
*** Error code 1

pkg-static: Fail to rename /var/.pkgtemp.db.tfx7XWyUsOv7 -> /var/db:Not a
directory
*** Error code 1

Of course both ports are now deleted and I cannot reinstall them.

I originally submitted this bug report for clamav and there it was suggested
that pkg was the culprit.

root@tahoestores:/usr/ports # uname -a
FreeBSD tahoestores.org 13.4-RELEASE-p1 FreeBSD 13.4-RELEASE-p1 GENERIC amd64

Please advise.
Joel

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