[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: Thu, 08 Jan 2026 09:42:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292240 --- Comment #4 from Baptiste Daroussin <bapt@FreeBSD.org> --- to clarify how dependencies works: The sets have direct dependencies aka they depend on exact packages to be installed, this is the historical way of doing dependencies and what is used mainly in the ports but that we try to relax. For the other case in base we rely mainly on another kind of dependencies: provide_shlibs/required_shlibs. those dependencies are automatically determined when packaging, pkg analyse the elf files it is about to package and extract the list of share libraries it requires and also a list of share libraries it provides. and when installing a packages like FreeBSD-fetch, instead of requesting FreeBSD-openssl-libs pkg look at any packages which are providing libssl.so.35 and find that FreeBSD-openssl-libs could be one and consider it as a dependency. We can also do that out of shared libraries, but this is not yet in use. Because people got confused a bit (the habbit of only having direct dependencies) then I amended pkg info -d and pkg info -r to be able to also guess dynamically the provide/require dependencies and expose them. this hasn't been done in pkg query, and I don't know how to expose this simply (info info -d or -r I can amend the line with the information about the shlib so this is understandable) %r is direct reverse dependencies maybe I should add a new key for requires, but this has not be done yet. -- You are receiving this mail because: You are the assignee for the bug.