[Bug 292240] pkgbase: spurious dependencies
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Jan 2026 11:51:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292240
--- Comment #1 from topical <topical@gmx.net> ---
To simulate pkgbasify, I created a jail with set-base:
# zfs create zdata/jails/test
# mkdir -p /usr/jails/test/usr/share
# cp -a /usr/share/keys /usr/jails/test/usr/share
# pkg -r /usr/jails/test install FreeBSD-set-base
I switch to base-jail, as I want to get rid of packages not useful in jail:
# pkg -r /usr/jails/test install FreeBSD-set-base-jail
This gives:
...
New packages to be INSTALLED:
FreeBSD-clibs-lib32: 15.0 [FreeBSD-base]
FreeBSD-set-base-jail: 15.0 [FreeBSD-base]
FreeBSD-set-minimal-jail: 15.0 [FreeBSD-base]
FreeBSD-set-optional-jail: 15.0 [FreeBSD-base]
...
QUESTION: why ist FreeBSD-clibs-libs32 installed? Wrong dependency?
Now, I need to get rid of dependent non-jail sets:
# pkg -r /usr/jails/test set -v0 FreeBSD-set-base FreeBSD-set-optional
FreeBSD-set-minimal
# pkg -r /usr/jails/test remove FreeBSD-set-base FreeBSD-set-optional
FreeBSD-set-minimal
Actually, I decide to reduce packages to minimal-jail set:
# pkg -r /usr/jails/test install FreeBSD-set-minimal-jail
This step does nothing, which is expected (it's already installed)
We are ready to remove non-minimal jail packages:
# pkg -r /usr/jails/test set -v0 FreeBSD-set-base-jail FreeBSD-set-devel
# pkg -r /usr/jails/test remove FreeBSD-set-base-jail FreeBSD-set-devel
Time to dispose all unneeded packages:
# pkg -r /usr/jails/test autoremove
QUESTION: This steps hangs forever! Why?
Instead, I remove some packages manually and then start autoremove:
# pkg -r /usr/jails/test remove "*-dev"
# pkg -r /usr/jails/test autoremove
There is still FreeBSD-set-optional-jail installed. Remove that:
# pkg -r /usr/jails/test set -v0 FreeBSD-set-optional-jail
# pkg -r /usr/jails/test remove FreeBSD-set-optional-jail
Finally, we have the following list of spurious packages:
# pkg -r /usr/jails/test query -e '%#r == 0' '%n-%v'
FreeBSD-audit-lib-15.0
FreeBSD-blocklist-15.0
FreeBSD-ctf-lib-15.0
FreeBSD-libarchive-15.0
FreeBSD-libbsdstat-15.0
FreeBSD-libcasper-15.0
FreeBSD-libldns-15.0
FreeBSD-libmagic-15.0
FreeBSD-libucl-15.0
FreeBSD-openssl-lib-15.0
FreeBSD-set-minimal-jail-15.0
FreeBSD-tcpd-15.0
FreeBSD-ufs-lib-15.0
FreeBSD-xz-lib-15.0
FreeBSD-zfs-lib-15.0
Autoremove does nothing:
# pkg -r /usr/jails/test autoremove
Checking integrity... done (0 conflicting)
Nothing to do.
QUESTION: Why is that?
Actually, some of the packages are actually not needed (like FreeBSD-tcpd)
whereas other are indeed needed like FreeBSD-openssl-lib:
# pkg -r /usr/jails/test remove FreeBSD-openssl-lib
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
pkg: Cannot solve problem using SAT solver
cannot remove package FreeBSD-fetch, remove it from request? [Y/n]:
...
QUESTION: If openssl-lib is needed - why does no package depend on it
(according to "query")?
I really want to switch to pkgbase, but these spurious dependencies are a real
show stopper.
--
You are receiving this mail because:
You are the assignee for the bug.