pkg autoremove removes base package dependencies

From: Quentin_Thébault <quentin.thebault_at_defenso.fr>
Date: Mon, 01 Sep 2025 05:23:38 UTC
Hello,

I am experimenting with pkgbase as a way to provision minimal jails, on 14.3-RELEASE, installing only the necessary packages for what I want to run inside, and I discovered some weird behaviour:
- when I install, for instance, FreeBSD-bhyve, it pulls a few more packages as dependencies, such as FreeBSD-lib9p or FreeBSD-libcasper
- if I then run autoremove, it tries to delete some of them (9 out of 19 installed). FreeBSD-libcasper is one of them, but not FreeBSD-lib9p, for instance.

Is this a know issue?

I am attaching a tmux transcript for the details on how to reproduce.

Kind regards,
--
Quentin THÉBAULT