Gentoo Archives: gentoo-commits

From: "Jonathan Callen (jcallen)" <jcallen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/openssl: openssl-0.9.8y-r1.ebuild ChangeLog
Date: Fri, 23 May 2014 23:13:58
Message-Id: 20140523231354.C17F12004C@flycatcher.gentoo.org
1 jcallen 14/05/23 23:13:54
2
3 Modified: ChangeLog
4 Added: openssl-0.9.8y-r1.ebuild
5 Log:
6 Backport multilib support to SLOT=0.9.8 (bug 511078)
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 229E5838)
9
10 Revision Changes Path
11 1.539 dev-libs/openssl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/ChangeLog?rev=1.539&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/ChangeLog?rev=1.539&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/ChangeLog?r1=1.538&r2=1.539
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v
20 retrieving revision 1.538
21 retrieving revision 1.539
22 diff -u -r1.538 -r1.539
23 --- ChangeLog 20 May 2014 06:41:24 -0000 1.538
24 +++ ChangeLog 23 May 2014 23:13:54 -0000 1.539
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-libs/openssl
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.538 2014/05/20 06:41:24 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/ChangeLog,v 1.539 2014/05/23 23:13:54 jcallen Exp $
30 +
31 +*openssl-0.9.8y-r1 (23 May 2014)
32 +
33 + 23 May 2014; Jonathan Callen <jcallen@g.o> +openssl-0.9.8y-r1.ebuild:
34 + Backport multilib support to SLOT=0.9.8 (bug 511078)
35
36 20 May 2014; Michał Górny <mgorny@g.o> openssl-1.0.1g-r1.ebuild,
37 openssl-1.0.2_beta1-r3.ebuild:
38
39
40
41 1.1 dev-libs/openssl/openssl-0.9.8y-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/openssl-0.9.8y-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/openssl/openssl-0.9.8y-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openssl-0.9.8y-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-libs/openssl/openssl-0.9.8y-r1.ebuild,v 1.1 2014/05/23 23:13:54 jcallen Exp $
51
52 # this ebuild is only for the libcrypto.so.0.9.8 and libssl.so.0.9.8 SONAME for ABI compat
53
54 EAPI="5"
55
56 inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
57
58 DESCRIPTION="Toolkit for SSL v2/v3 and TLS v1"
59 HOMEPAGE="http://www.openssl.org/"
60 SRC_URI="mirror://openssl/source/${P}.tar.gz"
61
62 LICENSE="openssl"
63 SLOT="0.9.8"
64 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
65 IUSE="bindist gmp kerberos sse2 test zlib"
66
67 RDEPEND="gmp? ( dev-libs/gmp[${MULTILIB_USEDEP}] )
68 zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
69 kerberos? ( app-crypt/mit-krb5 )
70 abi_x86_32? (
71 !<=app-emulation/emul-linux-x86-baselibs-20140508-r4
72 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
73 )
74 !=dev-libs/openssl-0.9.8*:0"
75 DEPEND="${RDEPEND}
76 sys-apps/diffutils
77 >=dev-lang/perl-5
78 test? ( sys-devel/bc )"
79
80 # Do not install any docs
81 DOCS=()
82
83 src_prepare() {
84 epatch "${FILESDIR}"/${PN}-0.9.8e-bsd-sparc64.patch
85 epatch "${FILESDIR}"/${PN}-0.9.8h-ldflags.patch #181438
86 epatch "${FILESDIR}"/${PN}-0.9.8m-binutils.patch #289130
87
88 # disable fips in the build
89 # make sure the man pages are suffixed #302165
90 # don't bother building man pages if they're disabled
91 sed -i \
92 -e '/DIRS/s: fips : :g' \
93 -e '/^MANSUFFIX/s:=.*:=ssl:' \
94 -e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
95 -e $(has noman FEATURES \
96 && echo '/^install:/s:install_docs::' \
97 || echo '/^MANDIR=/s:=.*:=/usr/share/man:') \
98 Makefile{,.org} \
99 || die
100 # show the actual commands in the log
101 sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
102 # update the enginedir path.
103 # punt broken config we don't care about as it fails sanity check.
104 sed -i \
105 -e '/^"debug-ben-debug-64"/d' \
106 -e "/foo.*engines/s|/lib/engines|/$(get_libdir)/engines|" \
107 Configure || die
108
109 # allow openssl to be cross-compiled
110 cp "${FILESDIR}"/gentoo.config-0.9.8 gentoo.config || die "cp cross-compile failed"
111 chmod a+rx gentoo.config
112
113 append-flags -fno-strict-aliasing
114 append-flags -Wa,--noexecstack
115
116 sed -i '1s,^:$,#!/usr/bin/perl,' Configure #141906
117 sed -i '/^"debug-steve/d' Configure # 0.9.8k shipped broken
118 ./config --test-sanity || die "I AM NOT SANE"
119
120 multilib_copy_sources
121 }
122
123 multilib_src_configure() {
124 unset APPS #197996
125 unset SCRIPTS #312551
126
127 tc-export CC AR RANLIB
128
129 # Clean out patent-or-otherwise-encumbered code
130 # Camellia: Royalty Free http://en.wikipedia.org/wiki/Camellia_(cipher)
131 # IDEA: Expired http://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
132 # EC: ????????? ??/??/2015 http://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
133 # MDC2: Expired http://en.wikipedia.org/wiki/MDC-2
134 # RC5: 5,724,428 03/03/2015 http://en.wikipedia.org/wiki/RC5
135
136 use_ssl() { use $1 && echo "enable-${2:-$1} ${*:3}" || echo "no-${2:-$1}" ; }
137 multilib_native_use_ssl() { multilib_native_usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
138 echoit() { echo "$@" ; "$@" ; }
139
140 local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
141
142 local sslout=$(./gentoo.config)
143 einfo "Use configuration ${sslout:-(openssl knows best)}"
144 local config="Configure"
145 [[ -z ${sslout} ]] && config="config"
146
147 echoit \
148 ./${config} \
149 ${sslout} \
150 $(use sse2 || echo "no-sse2") \
151 enable-camellia \
152 $(use_ssl !bindist ec) \
153 enable-idea \
154 enable-mdc2 \
155 $(use_ssl !bindist rc5) \
156 enable-tlsext \
157 $(use_ssl gmp gmp -lgmp) \
158 $(multilib_native_use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
159 $(use_ssl zlib) \
160 --prefix=/usr \
161 --openssldir=/etc/ssl \
162 shared threads \
163 || die "Configure failed"
164
165 # Clean out hardcoded flags that openssl uses
166 local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
167 -e 's:^CFLAG=::' \
168 -e 's:-fomit-frame-pointer ::g' \
169 -e 's:-O[0-9] ::g' \
170 -e 's:-march=[-a-z0-9]* ::g' \
171 -e 's:-mcpu=[-a-z0-9]* ::g' \
172 -e 's:-m[a-z0-9]* ::g' \
173 )
174 sed -i \
175 -e "/^LIBDIR=/s|=.*|=$(get_libdir)|" \
176 -e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
177 -e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
178 Makefile || die
179 }
180
181 multilib_src_compile() {
182 # depend is needed to use $confopts
183 emake -j1 depend
184 emake -j1 build_libs
185 }
186
187 multilib_src_test() {
188 emake -j1 test
189 }
190
191 multilib_src_install() {
192 dolib.so lib{crypto,ssl}.so.0.9.8
193 }