Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 531540 | Differences between
and this patch

Collapse All | Expand All

(-)openssl-1.1.0f.ebuild (-3 / +29 lines)
Lines 3-14 Link Here
3
3
4
EAPI=5
4
EAPI=5
5
5
6
inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
6
inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal rpm
7
7
8
MY_P=${P/_/-}
8
MY_P=${P/_/-}
9
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
9
DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
10
HOMEPAGE="http://www.openssl.org/"
10
HOMEPAGE="http://www.openssl.org/"
11
SRC_URI="mirror://openssl/source/${MY_P}.tar.gz"
11
SRC_URI="
12
	!bindist? ( mirror://openssl/source/${MY_P}.tar.gz )
13
	bindist? ( https://archives.fedoraproject.org/pub/fedora/linux/development/27/Everything/source/tree/Packages/o/${P}-9.fc27.src.rpm )
14
"
12
15
13
LICENSE="openssl"
16
LICENSE="openssl"
14
SLOT="0/1.1" # .so version of libssl/libcrypto
17
SLOT="0/1.1" # .so version of libssl/libcrypto
Lines 38-43 Link Here
38
)
41
)
39
42
40
src_prepare() {
43
src_prepare() {
44
	# This does not copy the entire Fedora patchset, but JUST the parts that
45
	# are needed to make it safe to use EC with RESTRICT=bindist.
46
	# See openssl.spec
47
	if use bindist; then
48
		# Constants from openssl.spec
49
		SOURCE1=hobble-openssl
50
		SOURCE12=ec_curve.c
51
		SOURCE13=ectest.c
52
		PATCH1=openssl-1.1.0-build.patch # Fixes EVP testcase for EC
53
		PATCH37=openssl-1.1.0-ec-curves.patch
54
		# .spec %prep
55
		"${WORKDIR}"/"$SOURCE1" || die
56
		cp "${WORKDIR}"/"${SOURCE12}" "${S}"/crypto/ec/ || die
57
		cp "${WORKDIR}"/"${SOURCE13}" "${S}"/test/ || die
58
		epatch "${WORKDIR}"/"${PATCH1}"
59
		epatch "${WORKDIR}"/"${PATCH37}"
60
		# Also see the configure parts below:
61
		# enable-ec \
62
		# $(use_ssl !bindist ec2m) \
63
64
	fi
41
	# keep this in sync with app-misc/c_rehash
65
	# keep this in sync with app-misc/c_rehash
42
	SSL_CNF_DIR="/etc/ssl"
66
	SSL_CNF_DIR="/etc/ssl"
43
67
Lines 132-144 Link Here
132
	[[ -z ${sslout} ]] && config="config"
156
	[[ -z ${sslout} ]] && config="config"
133
157
134
	echoit \
158
	echoit \
159
	# Fedora hobbled-EC needs 'no-ec2m'.
135
	./${config} \
160
	./${config} \
136
		${sslout} \
161
		${sslout} \
137
		--api=1.0.0 \
162
		--api=1.0.0 \
138
		$(use cpu_flags_x86_sse2 || echo "no-sse2") \
163
		$(use cpu_flags_x86_sse2 || echo "no-sse2") \
139
		enable-camellia \
164
		enable-camellia \
140
		disable-deprecated \
165
		disable-deprecated \
141
		$(use_ssl !bindist ec) \
166
		enable-ec \
167
		$(use_ssl !bindist ec2m) \
142
		${ec_nistp_64_gcc_128} \
168
		${ec_nistp_64_gcc_128} \
143
		enable-idea \
169
		enable-idea \
144
		enable-mdc2 \
170
		enable-mdc2 \

Return to bug 531540