'pkg upgrade' and 'java-zoneinfo' non-logic!?

Hello,
today the result of pkg upgrade was:

Code:
> sudo pkg upgrade
<snip>
The following 39 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    java-zoneinfo: 2021.e

Installed packages to be UPGRADED:
    boost-libs: 1.88.0_1 -> 1.88.0_2
    py311-pyside6: 6.9.1 -> 6.9.2
    py311-shiboken6: 6.9.1_1 -> 6.9.2
    qt6-3d: 6.9.1_2 -> 6.9.2
    qt6-5compat: 6.9.1 -> 6.9.2
    qt6-base: 6.9.1_1 -> 6.9.2
    qt6-base_sqldriver-sqlite: 6.9.1 -> 6.9.2
    qt6-charts: 6.9.1 -> 6.9.2
    qt6-connectivity: 6.9.1 -> 6.9.2
    qt6-datavis3d: 6.9.1 -> 6.9.2
    qt6-declarative: 6.9.1 -> 6.9.2
    qt6-doc: 6.9.1 -> 6.9.2
    qt6-graphs: 6.9.1 -> 6.9.2
    qt6-httpserver: 6.9.1 -> 6.9.2
    qt6-imageformats: 6.9.1 -> 6.9.2
    qt6-location: 6.9.1 -> 6.9.2
    qt6-multimedia: 6.9.1 -> 6.9.2
    qt6-networkauth: 6.9.1 -> 6.9.2
    qt6-pdf: 6.9.1 -> 6.9.2
    qt6-positioning: 6.9.1 -> 6.9.2
    qt6-quick3d: 6.9.1_1 -> 6.9.2
    qt6-quicktimeline: 6.9.1 -> 6.9.2
    qt6-remoteobjects: 6.9.1 -> 6.9.2
    qt6-scxml: 6.9.1 -> 6.9.2
    qt6-sensors: 6.9.1 -> 6.9.2
    qt6-serialbus: 6.9.1 -> 6.9.2
    qt6-serialport: 6.9.1 -> 6.9.2
    qt6-shadertools: 6.9.1 -> 6.9.2
    qt6-speech: 6.9.1 -> 6.9.2
    qt6-svg: 6.9.1_1 -> 6.9.2
    qt6-tools: 6.9.1 -> 6.9.2
    qt6-translations: 6.9.1 -> 6.9.2
    qt6-wayland: 6.9.1_1 -> 6.9.2
    qt6-webchannel: 6.9.1 -> 6.9.2
    qt6-webengine: 6.9.1_2 -> 6.9.2
    qt6-websockets: 6.9.1 -> 6.9.2
    qt6-webview: 6.9.1 -> 6.9.2
    qt6ct: 0.9_2 -> 0.9_3

Number of packages to be installed: 1
Number of packages to be upgraded: 38
<snip>
Please explain the result of my next executed command:
Code:
> sudo pkg autoremove
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:

Installed packages to be REMOVED:
    java-zoneinfo: 2021.e

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]:
and for info:
Code:
> pkg -vv
Version                 : 2.2.2
<snip>
ABI = "FreeBSD:14:amd64";
ALTABI = "freebsd:14:x86:64";
OSVERSION = "1402000";


Repositories:
  FreeBSD: {
    url             : "pkg+[URL]https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly[/URL]",
BSD-regards
Ludensen
 
I don't delete! Otherwise, the integrity is violated. I don't give a damn about auto-deletion. I can't tell you why there is no logic between auto-deletion of the package and integrity either. But this is a fact on my PC.
# pkg info java-zoneinfo
Code:
java-zoneinfo-2021.e
Name           : java-zoneinfo
Version        : 2021.e
Installed on   : Fri Jul 25 11:29:37 2025 EEST
Origin         : java/java-zoneinfo
Architecture   : FreeBSD:14:*
Prefix         : /usr/local
Categories     : java misc
Licenses       : PD
Maintainer     : glewis@FreeBSD.org
WWW            : UNKNOWN
Comment        : Updated Java timezone definitions
Annotations    :
    build_timestamp: 2025-07-03T01:05:26+0000
    built_by       : poudriere-git-3.4.2-12-g74a54a88
    port_checkout_unclean: no
    port_git_hash  : d7951ee86
    ports_top_checkout_unclean: no
    ports_top_git_hash: d7951ee86
    repo_type      : binary
    repository     : FreeBSD
Flat size      : 258KiB
Description    :
Contains updated Java ZI files to replace those shipped at release time
with a JDK/JRE.
# pkg delete java-zoneinfo
Code:
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 3 packages (of 0 packages in the universe):
Installed packages to be REMOVED:
    java-zoneinfo: 2021.e
    libreoffice: 25.2.4.3_1
    openjdk8: 8.452.09.1_1
Number of packages to be removed: 3
The operation will free 604 MiB.
Proceed with deinstalling packages? [y/N]: N
# pkg autoremove
Code:
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:
Installed packages to be REMOVED:
    java-zoneinfo: 2021.e
Number of packages to be removed: 1
Proceed with deinstalling packages? [y/N]: N
# pkg check -d -a
Code:
Checking all packages: 100%
root@none:~ #
 
Don't seem to have that issue on a test system.

Started off with a blank slate:
Code:
Repositories:
  FreeBSD: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
  FreeBSD-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/kmods_quarterly_3",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
root@fbsd-test:~ # pkg version -vR
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
pkg-2.2.2                          =   up-to-date with remote

Installed java/openjdk8:
Code:
root@fbsd-test:~ # pkg install openjdk8
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
All repositories are up to date.
The following 27 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        alsa-lib: 1.2.13 [FreeBSD]
        brotli: 1.1.0,1 [FreeBSD]
        dejavu: 2.37_3 [FreeBSD]
        expat: 2.7.1 [FreeBSD]
        fontconfig: 2.15.0_3,1 [FreeBSD]
        freetype2: 2.13.3 [FreeBSD]
        giflib: 5.2.2 [FreeBSD]
        java-zoneinfo: 2021.e [FreeBSD]
        javavmwrapper: 2.7.10 [FreeBSD]
        libICE: 1.1.2,1 [FreeBSD]
        libSM: 1.2.6,1 [FreeBSD]
        libX11: 1.8.12,1 [FreeBSD]
        libXau: 1.0.12 [FreeBSD]
        libXdmcp: 1.1.5 [FreeBSD]
        libXext: 1.3.6,1 [FreeBSD]
        libXfixes: 6.0.1 [FreeBSD]
        libXi: 1.8.2,1 [FreeBSD]
        libXrender: 0.9.12 [FreeBSD]
        libXt: 1.3.0,1 [FreeBSD]
        libXtst: 1.2.5 [FreeBSD]
        libfontenc: 1.1.8 [FreeBSD]
        libinotify: 20240724_1 [FreeBSD]
        libxcb: 1.17.0 [FreeBSD]
        mkfontscale: 1.2.3 [FreeBSD]
        openjdk8: 8.452.09.1_1 [FreeBSD]
        png: 1.6.49 [FreeBSD]
        xorgproto: 2024.1 [FreeBSD]

Number of packages to be installed: 27

The process will require 235 MiB more space.
94 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/27] Fetching png-1.6.49.pkg: 100%  305 KiB 312.6kB/s    00:01
<snip>
=====
Message from openjdk8-8.452.09.1_1:

--
This OpenJDK implementation may require procfs(5) mounted on /proc for some
applications.

If you have not done it yet, please do the following:

        mount -t procfs proc /proc

To make it permanent, you need the following lines in /etc/fstab:

        proc    /proc           procfs          rw      0       0
root@fbsd-test:~ #

pkg-autoremove(8) doesn't want to remove anything, and that's the correct action.
Code:
root@fbsd-test:~ # pkg autoremove
Checking integrity... done (0 conflicting)
Nothing to do.

Please explain the result of my next executed command:
One explanation, you had, at one point, installed OpenJDK, and removed it some time later. java/java-zoneinfo was still installed. Then pkg-upgrade(8) upgraded everything that's installed, including java-zoneinfo. But as there's nothing depending on it any more and it was 'auto' installed the pkg-autoremove(8) removed it.
 
One explanation, you had, at one point, installed OpenJDK, and removed it some time later.
# pkg rquery %dn-%dv openjdk17 | grep zoneinfo ---> nothing.
# pkg rquery %dn-%dv openjdk8 | grep zoneinfo
Code:
java-zoneinfo-2021.e
OK.

But: the circle is closed. Here are the steps of closure (4 steps):

1. # pkg check -d -a
Code:
Checking all packages: 100%
2. # pkg autoremove
Code:
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:
Installed packages to be REMOVED:
    java-zoneinfo: 2021.e
Number of packages to be removed: 1
Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling java-zoneinfo-2021.e...
[1/1] Deleting files for java-zoneinfo-2021.e: 100%
3. # pkg check -d -a
Code:
Checking all packages: 100%
openjdk8 has a missing dependency: java-zoneinfo
>>> Missing package dependencies were detected.
>>> Found 1 issue(s) in the package database.
The following packages will be installed:
New packages to be INSTALLED:
    java-zoneinfo: 2021.e [FreeBSD]
Number of packages to be installed: 1
79 KiB to be downloaded.
>>> Try to fix the missing dependencies? [y/N]: y
[1/1] Fetching java-zoneinfo-2021.e.pkg: 100%   79 KiB  80.4kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/1] Installing java-zoneinfo-2021.e...
[1/1] Extracting java-zoneinfo-2021.e: 100%
>>> Summary of actions performed:
java-zoneinfo dependency has been fixed
>>> Missing dependencies were fixed successfully.
pkg: Package database is busy while closing!
4. # pkg check -d -a
Code:
Checking all packages: 100%
 
Back
Top