Date: Thu, 29 Nov 2018 11:05:39 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r486165 - head/Mk/Uses Message-ID: <201811291105.wATB5dsC059528@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Thu Nov 29 11:05:39 2018 New Revision: 486165 URL: https://svnweb.freebsd.org/changeset/ports/486165 Log: Warn maintainers when OpenSSL 1.1.1 support is missing when using an outdated openssl < 0.10.4 crate. Submitted by: jbeich Differential Revision: https://reviews.freebsd.org/D18292 Modified: head/Mk/Uses/cargo.mk Modified: head/Mk/Uses/cargo.mk ============================================================================== --- head/Mk/Uses/cargo.mk Thu Nov 29 11:04:23 2018 (r486164) +++ head/Mk/Uses/cargo.mk Thu Nov 29 11:05:39 2018 (r486165) @@ -169,6 +169,18 @@ CARGO_ENV+= RUSTONIG_SYSTEM_LIBONIG=1 LIB_DEPENDS+= libonig.so:devel/oniguruma .endif +.if ${CARGO_CRATES:Mopenssl-0.[0-9].*} +# FreeBSD 12.0 updated base OpenSSL in r339270: +# https://github.com/sfackler/rust-openssl/commit/276577553501 +. if !exists(${PATCHDIR}/patch-openssl-1.1.1) # skip if backported +_openssl_VER= ${CARGO_CRATES:Mopenssl-0.[0-9].*:C/.*-//} +. if ${_openssl_VER:R:R} == 0 && (${_openssl_VER:R:E} < 10 || ${_openssl_VER:R:E} == 10 && ${_openssl_VER:E} < 4) +DEV_WARNING+= "CARGO_CRATES=openssl-0.10.3 or older do not support OpenSSL 1.1.1. Consider updating to the latest version." +. endif +. endif +.undef _openssl_VER +.endif + .if ${CARGO_CRATES:Mopenssl-sys-[0-9]*} # Make sure that openssl-sys can find the correct version of OpenSSL .include "${USESDIR}/ssl.mk"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811291105.wATB5dsC059528>