depend-cleanup: apply big hammer for OpenSSL 3.0 update

If we find an object corresponding to a source file that existed in
OpenSSL 1.1.1 but not in 3.0 just remove all of the OpenSSL objdirs.

Reviewed by:	dhw
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40750
This commit is contained in:
Ed Maste 2023-06-24 14:12:06 -04:00
parent 5581cf903f
commit 229d643c4d

View file

@ -115,3 +115,12 @@ clean_dep usr.sbin/config mkoptions c
# 20230401 54579376c05e kqueue1 from syscall to C wrapper
clean_dep lib/libc kqueue1 S
# 20230623 b077aed33b7b OpenSSL 3.0 update
if [ -f "$OBJTOP"/secure/lib/libcrypto/aria.o ]; then
echo "Removing old OpenSSL 1.1.1 tree"
rm -rf "$OBJTOP"/secure/lib/libcrypto \
"$OBJTOP"/secure/lib/libssl \
"$OBJTOP"/obj-lib32/secure/lib/libcrypto \
"$OBJTOP"/obj-lib32/secure/lib/libssl
fi