I build my packages with DEFAULT_VERSIONS=ssl=openssl35 and also use openssh-portable I found that the last couple of updates to security/openssl35 have not resulted in openssh-portable getting updated: tiny 24 # pkg upgrade -y Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. Updating pkg.lbl.gov repository catalogue... pkg.lbl.gov repository is up to date. All repositories are up to date. Checking for upgrades (1 candidates): 100% Processing candidates (1 candidates): 100% The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: openssl35: 3.5.3 -> 3.5.4 [pkg.lbl.gov] Number of packages to be upgraded: 1 8 MiB to be downloaded. [1/1] Fetching openssl35-3.5.4.pkg: 100% 8 MiB 409.9kB/s 00:20 Checking integrity... done (0 conflicting) [1/1] Upgrading openssl35 from 3.5.3 to 3.5.4... [1/1] Extracting openssl35-3.5.4: 100% tiny 25 # service sshd restart Performing sanity check on sshd configuration. OpenSSL version mismatch. Built against 3050003f, you have 30500040 tiny 26 # pkg upgrade -fy openssh-portable Updating FreeBSD-kmods repository catalogue... FreeBSD-kmods repository is up to date. Updating pkg.lbl.gov repository catalogue... pkg.lbl.gov repository is up to date. All repositories are up to date. The following 1 package(s) will be affected (of 0 checked): Installed packages to be REINSTALLED: openssh-portable-10.0.p1_2,1 [pkg.lbl.gov] Number of packages to be reinstalled: 1 1 MiB to be downloaded. [1/1] Fetching openssh-portable-10.0.p1_2,1.pkg: 59% 673 KiB 689.4kB/s 00:0[1/1] Fetching openssh-portable-10.0.p1_2,1.pkg: 100% 1 MiB 1.2MB/s 00:01 Checking integrity... done (0 conflicting) [1/1] Reinstalling openssh-portable-10.0.p1_2,1... [1/1] Extracting openssh-portable-10.0.p1_2,1: 100% You may need to manually remove /usr/local/etc/ssh/moduli if it is no longer needed. tiny 27 # service sshd restart Performing sanity check on sshd configuration. Stopping sshd. Waiting for PIDS: 88004. Performing sanity check on sshd configuration. Starting sshd. I'm not sure how to fix this; it certainly *looks* like Uses/ssl.mk is updating RUN_DEPENDS appropriately: zinc 34 # make -C /usr/ports/security/openssh-portable -V RUN_DEPENDS /usr/local/lib/libcrypto.so.17:security/openssl35
Yup Uses=ssl isn't providing LIB_DEPENDS. I will add a workaround in the openssh port but that ssl.mk thing is worth exploring more.
Logged https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294794