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

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

Anton Saietskii <vsasjason@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vsasjason@gmail.com

--- Comment #1 from Anton Saietskii <vsasjason@gmail.com> ---
(In reply to Anton Saietskii from comment #0)

A bit of additional info including actually running (unconfirmed though)
deinstallation command for efivar which doesn't cause removal of any other
packages and proves it's a true leaf:
$ pkg query -e '%#r == 0 && %a == 1' '%n-%v'
efivar-39_2
gcc13-13.3.0_3
$ sudo pkg delete efivar
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages
in the universe):

Installed packages to be REMOVED:
        efivar: 39_2

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: n
$ sudo pkg autoremove
Checking integrity... done (0 conflicting)
Nothing to do.
$

(And same with gcc13, which I guess was required by wine, which now requires
gcc14.)

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