[Bug 292240] pkgbase: spurious dependencies
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 292240] pkgbase: spurious dependencies"
- Reply: 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:23:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292240
Bug ID: 292240
Summary: pkgbase: spurious dependencies
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs@FreeBSD.org
Reporter: topical@gmx.net
When using pkgbase, I can hardly strip down the system without having strange
dependency problems.
E.g. to create a jail with minimal packages, I do
# 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-minimal-jail
Let's get a list of packages without dependencies:
# 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
Note: this query is same as "leaf"
I expect only to see FreeBSD-set-minimal-jail as all other packages are
dependencies of this set!
If I try to autoremove these unneeded packages
# pkg -r /usr/jails/test autoremove
Nothing is done.
If you try to remove one of the packages manually, it works but produces
strange warnings:
# pkg -r /usr/jails/test remove FreeBSD-zfs-lib
Cannot solve problem using SAT solver, trying another plan
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages
in the universe):
Installed packages to be REMOVED:
FreeBSD-ctf-lib: 15.0
FreeBSD-zfs-lib: 15.0
Number of packages to be removed: 2
The operation will free 5 MiB.
Proceed with deinstalling packages? [y/N]: y
[1/2] Deinstalling FreeBSD-ctf-lib-15.0...
[1/2] Deleting files for FreeBSD-ctf-lib-15.0: 100%
[2/2] Deinstalling FreeBSD-zfs-lib-15.0...
[2/2] Deleting files for FreeBSD-zfs-lib-15.0: 100%
Whenever I convert an existing to pkgbase using pkgbasify, the list of spurious
(non-)-dependencies gets longer and manual removal doesn't work at all.
How can this happen and how can this be solved?
--
You are receiving this mail because:
You are the assignee for the bug.