From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE185138335 for ; Fri, 4 Oct 2019 15:48:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7D0A3E0849; Fri, 4 Oct 2019 15:48:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5ABA7E0849 for ; Fri, 4 Oct 2019 15:48:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D72B934B90A for ; Fri, 4 Oct 2019 15:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF909804 for ; Fri, 4 Oct 2019 15:48:26 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1570204096.472f2458fc5aa5209a454fd91643cb2a7ffdc869.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/openssl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/openssl/openssl-1.1.1d-r1.ebuild X-VCS-Directories: dev-libs/openssl/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 472f2458fc5aa5209a454fd91643cb2a7ffdc869 X-VCS-Branch: master Date: Fri, 4 Oct 2019 15:48:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9c13845f-fcff-40d6-9b5a-1be177525581 X-Archives-Hash: 430f5717663b195deb7e8b20e7a37e59 commit: 472f2458fc5aa5209a454fd91643cb2a7ffdc869 Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Oct 4 14:14:43 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Fri Oct 4 15:48:16 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=472f2458 dev-libs/openssl: check pre requirements for USE=sctp FEATURES=test and USE=sctp requires net.sctp.auth_enable=1 or test_ssl_new will fail with "Ensure SCTP AUTH chunks are enabled in kernel". Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Thomas Deutschmann gentoo.org> dev-libs/openssl/openssl-1.1.1d-r1.ebuild | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/dev-libs/openssl/openssl-1.1.1d-r1.ebuild b/dev-libs/openssl/openssl-1.1.1d-r1.ebuild index db1ec434fd7..1ddfa7ff16f 100644 --- a/dev-libs/openssl/openssl-1.1.1d-r1.ebuild +++ b/dev-libs/openssl/openssl-1.1.1d-r1.ebuild @@ -55,6 +55,22 @@ MULTILIB_WRAPPED_HEADERS=( usr/include/openssl/opensslconf.h ) +pkg_setup() { + [[ ${MERGE_TYPE} == binary ]] && return + + # must check in pkg_setup; sysctl don't work with userpriv! + if has test ${FEATURES}; then + if use sctp; then + # test_ssl_new will fail with "Ensure SCTP AUTH chunks are enabled in kernel" + # if sctp.auth_enable is not enabled. + local sctp_auth_status=$(sysctl -n net.sctp.auth_enable 2>/dev/null) + if [[ -z "${sctp_auth_status}" || ${sctp_auth_status} != 1 ]]; then + die "FEATURES=test with USE=sctp requires net.sctp.auth_enable=1!" + fi + fi + fi +} + src_prepare() { if use bindist; then mv "${WORKDIR}"/bindist-patches/hobble-openssl "${WORKDIR}" || die