With ports git d4c9792fda7f, security/tpm2-tss depends on ports openssl. This conflicts with lang/rust and so on. According to build error with reverting LIB_DEPEND part, the requirement seems to be >= 1.1.0, and at least base main, stable/13, and stable/12 has 1.1.1. So security/tpm2-tss should sanely detect base one instead of ports security/openssl. === Error log when reverting LIB_DEPENDS part === (snip) checking for CRYPTO... no configure: error: OpenSSL libcrypto is missing or version requirements not met. OpenSSL version must be >= 1.1.0 ===> Script "configure" failed unexpectedly. Please report the problem to tstruk@gmail.com [maintainer] and attach the "/usr/ports/security/tpm2-tss/work/tpm2-tss-3.2.0/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Stop. make: stopped in /usr/ports/security/tpm2-tss
Maintainer informed via mail
This problem was related to Bug 257659. As I could not find the proper file to patch for security/tpm2-tss, I tried to put libcrypto.pc, libssl.pc and openssl.pc, which I uploaded to Bug 257659, into /usr/libdata/pkgconfig/ and apply the patch I'll upload later and it fixed the issue. As base is needed to be fixed this way, cannot close this PR until... All supported branches of base are fixed to have OpenSSL related *.pc files. or Someone find the proper way to fix with this particular port only is modified.
Created attachment 232547 [details] Patch to workaround that wants OpenSSL-related *.pc files. Patch to workaround that wants OpenSSL-related *.pc files. 3 *.pc files to put into /usr/libdata/pkgconfig are available via Bug 257659.
I'll take it.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=aca6f9b18e874c73ac68990a2439ccec0be66ef0 commit aca6f9b18e874c73ac68990a2439ccec0be66ef0 Author: Jung-uk Kim <jkim@FreeBSD.org> AuthorDate: 2022-03-18 15:26:09 +0000 Commit: Jung-uk Kim <jkim@FreeBSD.org> CommitDate: 2022-03-18 15:26:09 +0000 security/tpm2-tss: Fix build with base OpenSSL PR: 262569 security/tpm2-tss/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
It should be fixed now. Thanks!
(In reply to Jung-uk Kim from comment #6) Confirmed fixed without installing 3 *.pc fimes. Thanks! BTW, if this was caused by a misusing of a CONFIGURE_ENV variable in original commit, and setting CONFIGURE_ENV as your fix works everywhere regardless the configured DEFAULT_VERSIONS+=ssl setting, it would be nice to be forcibly set by /usr/ports/Mk/Uses/ssl.mk. If so, it would become enough to set USES=ssl alone.