maintainer-feedback requested: [Bug 291611] ports-mgmt/pkg List locked package not working for vital metapackages

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Dec 2025 15:30:38 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 291611: ports-mgmt/pkg List locked package not working for vital
metapackages
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291611



--- Description ---
Hi,

The option to list the lock status of a metapackage from the FreeBSD sets does
not work
The command `pkg lock -l` in example will not show lock status for any kind of
the set packages.

How to reproduce:

```
# pkg lock -l
No locked packages were found

# pkg remove FreeBSD-set-base-15.0
Checking integrity... done (0 conflicting)
The following package(s) are locked or vital and may not be removed:

	FreeBSD-set-base

1 packages requested for removal: 1 locked, 0 missing

# pkg info -k FreeBSD-set-base
FreeBSD-set-base-15.0	       no
```

The pkg locking does works perfect for normal packages.


Best,
Chris