[Bug 296272] ports-mgmt/pkg: does not autoremove automatic, non-vital, leaf packages

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 Jun 2026 10:47:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296272

            Bug ID: 296272
           Summary: ports-mgmt/pkg: does not autoremove automatic,
                    non-vital, leaf packages
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: vsasjason@gmail.com
          Assignee: pkg@FreeBSD.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)

Previously, sysutils/fwupd required efivar, but does not as of now, yet pkg
wouldn't clean this:

$ pkg info -x pkg
pkg-2.7.5
$ pkg query '%a %V' efivar
1 0
$ pkg info -r efivar
efivar-39_2:
$ sudo pkg autoremove
Password:
Checking integrity... done (0 conflicting)
Nothing to do.
$

I've had exact same issue after switching LLVM 19=>21, pkg didn't offer to
remove leaf llvm19 after this.

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