1 |
commit: 9bfaeeddb9aa2667f3f72bce02b8af5a8c5fb43a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 1 19:28:41 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 1 19:28:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bfaeedd |
7 |
|
8 |
dev-libs/openssl: ebuild code simplification |
9 |
|
10 |
Added sys-process/procps to BDEPEND because of sysctl usage |
11 |
|
12 |
Package-Manager: Portage-2.3.80, Repoman-2.3.19 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
dev-libs/openssl/openssl-1.1.1d-r3.ebuild | 27 +++++++++++---------------- |
16 |
1 file changed, 11 insertions(+), 16 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/openssl/openssl-1.1.1d-r3.ebuild b/dev-libs/openssl/openssl-1.1.1d-r3.ebuild |
19 |
index 932e1a155f5..774605b4bf1 100644 |
20 |
--- a/dev-libs/openssl/openssl-1.1.1d-r3.ebuild |
21 |
+++ b/dev-libs/openssl/openssl-1.1.1d-r3.ebuild |
22 |
@@ -41,6 +41,7 @@ BDEPEND=" |
23 |
test? ( |
24 |
sys-apps/diffutils |
25 |
sys-devel/bc |
26 |
+ sys-process/procps |
27 |
)" |
28 |
PDEPEND="app-misc/ca-certificates" |
29 |
|
30 |
@@ -64,14 +65,12 @@ pkg_setup() { |
31 |
[[ ${MERGE_TYPE} == binary ]] && return |
32 |
|
33 |
# must check in pkg_setup; sysctl don't work with userpriv! |
34 |
- if has test ${FEATURES}; then |
35 |
- if use sctp; then |
36 |
- # test_ssl_new will fail with "Ensure SCTP AUTH chunks are enabled in kernel" |
37 |
- # if sctp.auth_enable is not enabled. |
38 |
- local sctp_auth_status=$(sysctl -n net.sctp.auth_enable 2>/dev/null) |
39 |
- if [[ -z "${sctp_auth_status}" || ${sctp_auth_status} != 1 ]]; then |
40 |
- die "FEATURES=test with USE=sctp requires net.sctp.auth_enable=1!" |
41 |
- fi |
42 |
+ if has test ${FEATURES} && use sctp; then |
43 |
+ # test_ssl_new will fail with "Ensure SCTP AUTH chunks are enabled in kernel" |
44 |
+ # if sctp.auth_enable is not enabled. |
45 |
+ local sctp_auth_status=$(sysctl -n net.sctp.auth_enable 2>/dev/null) |
46 |
+ if [[ -z "${sctp_auth_status}" ]] || [[ ${sctp_auth_status} != 1 ]]; then |
47 |
+ die "FEATURES=test with USE=sctp requires net.sctp.auth_enable=1!" |
48 |
fi |
49 |
fi |
50 |
} |
51 |
@@ -120,14 +119,10 @@ src_prepare() { |
52 |
|
53 |
eapply_user #332661 |
54 |
|
55 |
- if has test ${FEATURES}; then |
56 |
- if use sctp; then |
57 |
- if has network-sandbox ${FEATURES}; then |
58 |
- ebegin "Disabling test '80-test_ssl_new.t' which is known to fail with FEATURES=network-sandbox" |
59 |
- rm test/recipes/80-test_ssl_new.t || die |
60 |
- eend $? |
61 |
- fi |
62 |
- fi |
63 |
+ if has test ${FEATURES} && use sctp && has network-sandbox ${FEATURES}; then |
64 |
+ ebegin "Disabling test '80-test_ssl_new.t' which is known to fail with FEATURES=network-sandbox" |
65 |
+ rm test/recipes/80-test_ssl_new.t || die |
66 |
+ eend $? |
67 |
fi |
68 |
|
69 |
# make sure the man pages are suffixed #302165 |