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

(-)file_not_specified_in_diff (-2 / +41 lines)
Line 30 Link Here
30
# This does not copy the entire Fedora patchset, but JUST the parts that
31
# are needed to make it safe to use EC with RESTRICT=bindist.
32
# See openssl.spec for the matching numbering of SourceNNN, PatchNNN
33
SOURCE1=hobble-openssl
34
SOURCE12=ec_curve.c
35
SOURCE13=ectest.c
36
PATCH1=openssl-1.1.0-build.patch # Fixes EVP testcase for EC
37
PATCH37=openssl-1.1.0-ec-curves.patch
38
FEDORA_GIT_BASE='https://src.fedoraproject.org/cgit/rpms/openssl.git/plain/'
39
FEDORA_GIT_BRANCH='f27'
40
FEDORA_SRC_URI=()
41
FEDORA_SOURCE=( $SOURCE1 $SOURCE12 $SOURCE13 )
42
FEDORA_PATCH=( $PATCH1 $PATCH37 )
43
for i in "${FEDORA_SOURCE[@]}" ; do
44
	FEDORA_SRC_URI+=( "${FEDORA_GIT_BASE}/${i}?h=${FEDORA_GIT_BRANCH} -> ${P}_${i}" )
45
done
46
for i in "${FEDORA_PATCH[@]}" do # Already have a version prefix
47
	FEDORA_SRC_URI+=( "${FEDORA_GIT_BASE}/${i}?h=${FEDORA_GIT_BRANCH} -> ${i}" )
48
done
49
SRC_URI+=" bindist? ( ${FEDORA_SRC_URI[@]} )"
50
Line 41 Link Here
62
	if use bindist; then
63
		# This just removes the prefix, and puts it into WORKDIR like the RPM.
64
		for i in "${FEDORA_SOURCE[@]}" ; do
65
			cp -f "${DISTDIR}"/"${P}_${i}" "${WORKDIR}"/ || die
66
		done
67
		# .spec %prep
68
		bash "${WORKDIR}"/"${SOURCE1}" || die
69
		cp -f "${WORKDIR}"/"${SOURCE12}" "${S}"/crypto/ec/ || die
70
		cp -f "${WORKDIR}"/"${SOURCE13}" "${S}"/test/ || die
71
		for i in "${FEDORA_PATCH[@]}" ; do
72
			epatch "${DISTDIR}"/"${i}"
73
		done
74
		# Also see the configure parts below:
75
		# enable-ec \
76
		# $(use_ssl !bindist ec2m) \
77
78
	fi
Line 135 Link Here
173
	# Fedora hobbled-EC needs 'no-ec2m'.
Line 141 Link Here
141
		$(use_ssl !bindist ec) \
180
		enable-ec \
142
--
181
		$(use_ssl !bindist ec2m) \

Return to bug 531540