Index: Mk/Scripts/qa.sh =================================================================== --- Mk/Scripts/qa.sh +++ Mk/Scripts/qa.sh @@ -115,7 +115,10 @@ local rc local found_openssl local file + local provides_ssllibs [ "${PKGBASE}" = "pkg" -o "${PKGBASE}" = "pkg-devel" ] && return + + provides_ssllibs=$(list_stagedir_elfs \( -name 'libcrypto.so*' -or -name 'libssl.so*' \)) while read -r f; do case ${f} in File:\ .*) @@ -136,10 +139,12 @@ done <<-EOF $(list_stagedir_elfs -exec readelf -d {} + 2>/dev/null) EOF - if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then - warn "you need USES=ssl" - elif [ -n "${USESSSL}" -a -z "${found_openssl}" ]; then - warn "you may not need USES=ssl" + if [ -z "${provides_ssllibs}" ]; then + if [ -z "${USESSSL}" -a -n "${found_openssl}" ]; then + warn "you need USES=ssl" + elif [ -n "${USESSSL}" -a -z "${found_openssl}" ]; then + warn "you may not need USES=ssl" + fi fi return ${rc} }