pkg autoremove
My system FreeBS-Release 14.2, pkg version 2.1.2
I installed libreoffice and it pull openjdk17 and openjdk8 because in openjdk17 cannot find libjawt and java-zoneinfo. Okay. Than I did run pkg autoremove and want to remove java-zoneinfo. I did it and run pkg check -ad and it found java-zoneinfo as missing dependencies. And that is bug report why pkg pulls both openjdks:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286055
Thank you.
Correction: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286055
286055 – editors/libreoffice 25.2.2.2: unwanted dependency on jdk
Graham is right, this is not an issue with pkg, this is an issue with that specific port, the bug for it is linked in his comment above. Closing this issue.
(The correction related to the broken link.)