Trouble building cmake-core with DEFAULT_VERSIONS=ssl=openssl31

From: Craig Leres <leres_at_freebsd.org>
Date: Sat, 14 Oct 2023 23:54:19 UTC
This is a really weird one.

poudriere recently started failing to build cmake-core for me 
(13.2/amd64). It sorta looks like fallout from the pkgconfig /usr and 
/usr/local/ path reversal situation:

ld: error: undefined symbol: EVP_PKEY_id
 >>> referenced by openssl.c
 >>>               openssl.c.o:(Curl_ossl_certchain) in archive 
lib/libcmcurl.a
 >>> referenced by openssl.c
 >>>               openssl.c.o:(cert_stuff) in archive lib/libcmcurl.a

What's *really* strange is cmake-core builds fine in a interactive 
poudriere jail. I've never seen this before! And it makes this really 
difficult to get a handle on...

To recap, this fails:

     poudriere bulk -j 13release -p current devel/cmake-core

This also fails:

     poudriere bulk -i -j 13release -p current devel/cmake-core

but then "cd /usr/ports/devel/cmake-core ; make" in the resulting jail 
works!!

I tried openssl32 and it's the same.

What am I missing?

		Craig