Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/openssl/
Date: Sat, 02 Jun 2018 18:33:04
Message-Id: 1527964371.aa46178b9cff64762121d9f5267eaf06e8f6524a.polynomial-c@gentoo
1 commit: aa46178b9cff64762121d9f5267eaf06e8f6524a
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 2 18:29:42 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 2 18:32:51 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa46178b
7
8 dev-libs/openssl: Don't include kerberos dir in pkgconfig files.
9
10 Thanks-to: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>
11 Closes: https://bugs.gentoo.org/401665
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 dev-libs/openssl/Manifest | 3 +-
15 dev-libs/openssl/openssl-1.0.2o-r1.ebuild | 251 ---------------------
16 ...nssl-1.0.2o.ebuild => openssl-1.0.2o-r3.ebuild} | 5 +-
17 ...l-1.0.2o-r2.ebuild => openssl-1.0.2o-r4.ebuild} | 5 +-
18 4 files changed, 7 insertions(+), 257 deletions(-)
19
20 diff --git a/dev-libs/openssl/Manifest b/dev-libs/openssl/Manifest
21 index 1bb7dad417f..0abab2d57a3 100644
22 --- a/dev-libs/openssl/Manifest
23 +++ b/dev-libs/openssl/Manifest
24 @@ -1,6 +1,5 @@
25 DIST openssl-0.9.8zh.tar.gz 3818524 BLAKE2B 610bb4858900983cf4519fa8b63f1e03b3845e39e68884fd8bebd738cd5cd6c2c75513643af49bf9e2294adc446a6516480fe9b62de55d9b6379bf9e7c5cd364 SHA512 b97fa2468211f86c0719c68ad1781eff84f772c479ed5193d6da14bac086b4ca706e7d851209d9df3f0962943b5e5333ab0def00110fb2e517caa73c0c6674c6
26 -DIST openssl-1.0.2-patches-1.2.tar.xz 12208 BLAKE2B 99b7a3538aeeecf8e1939fb08d26e2ce6aa4140488f0f6fc382a4f0dbdd67a0204c4689809e9d170148ad6686d4dbf0c8fc95802712270b0ea5720bc06c8fbbf SHA512 5e5739ab7132e986abe9704739dab2ccd16df9696318ed29762d4ee0245fd2645f9435f7340ba36edd5531a83e48489fc659ad78c09ded0e0d021dd5a3906ea6
27 -DIST openssl-1.0.2-patches-1.3.tar.xz 12592 BLAKE2B bce0c289ae689091fe62e9c0d7d631cd915fd17beb81b0879931e0414f25c8a08425a08514e28ea7e81c1be23cf162f3bcad7cc3933f2378f53decabd3a7903d SHA512 3ad3efa45eddb733e3db9c406f9f651dbf939bbb13debbcab12b49ecf72490a4868b1563de60ee106483c1b23bd2092fc58c8fc911fe62a019cb97d738163723
28 +DIST openssl-1.0.2-patches-1.4.tar.xz 12864 BLAKE2B ace6a782ef97b61af44988f978d089adffb06894617f9d66d3fce664c04d360b2774e1dd38c2171151fa93fe92428d405674bc2d452d520f10da426f95d09aee SHA512 d152af2841f1bf11c7f2a5ebba9a2b903fb4bcdef0468c56af0f9cc8c020adbf4490ac1a62f5bae8cbe18e379934fa997bfda1c2d49ec62365c07a0c0515a72d
29 DIST openssl-1.0.2o.tar.gz 5329472 BLAKE2B 30226db49be04317da3a76cce68d5aa401decd198f92505bddb0c72a7ef6a79f3c9c06d4a816db734e2a0991ebcab8b207feced26d83639e50c821d9e76ddc45 SHA512 8a2c93657c85143e76785bb32ee836908c31a6f5f8db993fa9777acba6079e630cdddd03edbad65d1587199fc13a1507789eacf038b56eb99139c2091d9df7fd
30 DIST openssl-1.0.2o_ec_curve.c 17254 BLAKE2B d40d8d6e770443f07abe70e2c4ddda6aec1cc8e37dc1f226a3fdd9ed5d228f09c6d372e8956b1948b55ee1d57d1429493e7288d0f54d9466a37fec805c85aacb SHA512 8e92fb100bcf4bd918c82b9a6cbd75a55abe1a2c08230a007e441c51577f974f8cc336e9ac8a672b32641480428ca8cead5380da1fe81bacb088145a1b754a15
31 DIST openssl-1.0.2o_ectest.c 30735 BLAKE2B 95333a27f1cf0a4305a3cee7f6d46b9d4673582ca9acfcf5ba2a0d9d317ab6219cd0d2ff0ba3a55a317c8f5819342f05cc17ba80ec2c92b2b4cab9a3552382e1 SHA512 f2e4d34327b490bc8371f0845c69df3f9fc51ea16f0ea0de0411a0c1fa9d49bb2b6fafc363eb3b3cd919dc7c24e4a0d075c6ff878c01d70dae918f2540874c19
32
33 diff --git a/dev-libs/openssl/openssl-1.0.2o-r1.ebuild b/dev-libs/openssl/openssl-1.0.2o-r1.ebuild
34 deleted file mode 100644
35 index 256e230d7cf..00000000000
36 --- a/dev-libs/openssl/openssl-1.0.2o-r1.ebuild
37 +++ /dev/null
38 @@ -1,251 +0,0 @@
39 -# Copyright 1999-2018 Gentoo Foundation
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI="6"
43 -
44 -inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
45 -
46 -PATCH_SET="openssl-1.0.2-patches-1.3"
47 -MY_P=${P/_/-}
48 -DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
49 -HOMEPAGE="https://www.openssl.org/"
50 -SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
51 - mirror://gentoo/${PATCH_SET}.tar.xz
52 - https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz"
53 -
54 -LICENSE="openssl"
55 -SLOT="0"
56 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
57 -IUSE="+asm bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 sslv2 +sslv3 static-libs test +tls-heartbeat vanilla zlib"
58 -RESTRICT="!bindist? ( bindist )"
59 -
60 -RDEPEND=">=app-misc/c_rehash-1.7-r1
61 - gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
62 - zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )
63 - kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] )"
64 -DEPEND="${RDEPEND}
65 - >=dev-lang/perl-5
66 - sctp? ( >=net-misc/lksctp-tools-1.0.12 )
67 - test? (
68 - sys-apps/diffutils
69 - sys-devel/bc
70 - )"
71 -PDEPEND="app-misc/ca-certificates"
72 -
73 -S="${WORKDIR}/${MY_P}"
74 -
75 -MULTILIB_WRAPPED_HEADERS=(
76 - usr/include/openssl/opensslconf.h
77 -)
78 -
79 -src_prepare() {
80 - # keep this in sync with app-misc/c_rehash
81 - SSL_CNF_DIR="/etc/ssl"
82 -
83 - # Make sure we only ever touch Makefile.org and avoid patching a file
84 - # that gets blown away anyways by the Configure script in src_configure
85 - rm -f Makefile
86 -
87 - if ! use vanilla ; then
88 - eapply "${WORKDIR}"/patch/*.patch
89 - fi
90 -
91 - eapply_user
92 -
93 - # disable fips in the build
94 - # make sure the man pages are suffixed #302165
95 - # don't bother building man pages if they're disabled
96 - sed -i \
97 - -e '/DIRS/s: fips : :g' \
98 - -e '/^MANSUFFIX/s:=.*:=ssl:' \
99 - -e '/^MAKEDEPPROG/s:=.*:=$(CC):' \
100 - -e $(has noman FEATURES \
101 - && echo '/^install:/s:install_docs::' \
102 - || echo '/^MANDIR=/s:=.*:='${EPREFIX}'/usr/share/man:') \
103 - Makefile.org \
104 - || die
105 - # show the actual commands in the log
106 - sed -i '/^SET_X/s:=.*:=set -x:' Makefile.shared
107 -
108 - # since we're forcing $(CC) as makedep anyway, just fix
109 - # the conditional as always-on
110 - # helps clang (#417795), and versioned gcc (#499818)
111 - sed -i 's/expr.*MAKEDEPEND.*;/true;/' util/domd || die
112 -
113 - # quiet out unknown driver argument warnings since openssl
114 - # doesn't have well-split CFLAGS and we're making it even worse
115 - # and 'make depend' uses -Werror for added fun (#417795 again)
116 - [[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
117 -
118 - # allow openssl to be cross-compiled
119 - cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
120 - chmod a+rx gentoo.config || die
121 -
122 - append-flags -fno-strict-aliasing
123 - append-flags $(test-flags-CC -Wa,--noexecstack)
124 - append-cppflags -DOPENSSL_NO_BUF_FREELISTS
125 -
126 - sed -i '1s,^:$,#!'${EPREFIX}'/usr/bin/perl,' Configure #141906
127 - # The config script does stupid stuff to prompt the user. Kill it.
128 - sed -i '/stty -icanon min 0 time 50; read waste/d' config || die
129 - ./config --test-sanity || die "I AM NOT SANE"
130 -
131 - multilib_copy_sources
132 -}
133 -
134 -multilib_src_configure() {
135 - unset APPS #197996
136 - unset SCRIPTS #312551
137 - unset CROSS_COMPILE #311473
138 -
139 - tc-export CC AR RANLIB RC
140 -
141 - # Clean out patent-or-otherwise-encumbered code
142 - # Camellia: Royalty Free https://en.wikipedia.org/wiki/Camellia_(cipher)
143 - # IDEA: Expired https://en.wikipedia.org/wiki/International_Data_Encryption_Algorithm
144 - # EC: ????????? ??/??/2015 https://en.wikipedia.org/wiki/Elliptic_Curve_Cryptography
145 - # MDC2: Expired https://en.wikipedia.org/wiki/MDC-2
146 - # RC5: Expired https://en.wikipedia.org/wiki/RC5
147 -
148 - use_ssl() { usex $1 "enable-${2:-$1}" "no-${2:-$1}" " ${*:3}" ; }
149 - echoit() { echo "$@" ; "$@" ; }
150 -
151 - local krb5=$(has_version app-crypt/mit-krb5 && echo "MIT" || echo "Heimdal")
152 -
153 - # See if our toolchain supports __uint128_t. If so, it's 64bit
154 - # friendly and can use the nicely optimized code paths. #460790
155 - local ec_nistp_64_gcc_128
156 - # Disable it for now though #469976
157 - #if ! use bindist ; then
158 - # echo "__uint128_t i;" > "${T}"/128.c
159 - # if ${CC} ${CFLAGS} -c "${T}"/128.c -o /dev/null >&/dev/null ; then
160 - # ec_nistp_64_gcc_128="enable-ec_nistp_64_gcc_128"
161 - # fi
162 - #fi
163 -
164 - # https://github.com/openssl/openssl/issues/2286
165 - if use ia64 ; then
166 - replace-flags -g3 -g2
167 - replace-flags -ggdb3 -ggdb2
168 - fi
169 -
170 - local sslout=$(./gentoo.config)
171 - einfo "Use configuration ${sslout:-(openssl knows best)}"
172 - local config="Configure"
173 - [[ -z ${sslout} ]] && config="config"
174 -
175 - echoit \
176 - ./${config} \
177 - ${sslout} \
178 - $(use cpu_flags_x86_sse2 || echo "no-sse2") \
179 - enable-camellia \
180 - $(use_ssl !bindist ec) \
181 - ${ec_nistp_64_gcc_128} \
182 - enable-idea \
183 - enable-mdc2 \
184 - enable-rc5 \
185 - enable-tlsext \
186 - $(use_ssl asm) \
187 - $(use_ssl gmp gmp -lgmp) \
188 - $(use_ssl kerberos krb5 --with-krb5-flavor=${krb5}) \
189 - $(use_ssl rfc3779) \
190 - $(use_ssl sctp) \
191 - $(use_ssl sslv2 ssl2) \
192 - $(use_ssl sslv3 ssl3) \
193 - $(use_ssl tls-heartbeat heartbeats) \
194 - $(use_ssl zlib) \
195 - --prefix="${EPREFIX}"/usr \
196 - --openssldir="${EPREFIX}"${SSL_CNF_DIR} \
197 - --libdir=$(get_libdir) \
198 - shared threads \
199 - || die
200 -
201 - # Clean out hardcoded flags that openssl uses
202 - local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \
203 - -e 's:^CFLAG=::' \
204 - -e 's:-fomit-frame-pointer ::g' \
205 - -e 's:-O[0-9] ::g' \
206 - -e 's:-march=[-a-z0-9]* ::g' \
207 - -e 's:-mcpu=[-a-z0-9]* ::g' \
208 - -e 's:-m[a-z0-9]* ::g' \
209 - )
210 - sed -i \
211 - -e "/^CFLAG/s|=.*|=${CFLAG} ${CFLAGS}|" \
212 - -e "/^SHARED_LDFLAGS=/s|$| ${LDFLAGS}|" \
213 - Makefile || die
214 -}
215 -
216 -multilib_src_compile() {
217 - # depend is needed to use $confopts; it also doesn't matter
218 - # that it's -j1 as the code itself serializes subdirs
219 - emake -j1 depend
220 - emake all
221 - # rehash is needed to prep the certs/ dir; do this
222 - # separately to avoid parallel build issues.
223 - emake rehash
224 -}
225 -
226 -multilib_src_test() {
227 - emake -j1 test
228 -}
229 -
230 -multilib_src_install() {
231 - emake INSTALL_PREFIX="${D}" install
232 -}
233 -
234 -multilib_src_install_all() {
235 - # openssl installs perl version of c_rehash by default, but
236 - # we provide a shell version via app-misc/c_rehash
237 - rm "${ED}"/usr/bin/c_rehash || die
238 -
239 - local -a DOCS=( CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el )
240 - einstalldocs
241 -
242 - use rfc3779 && dodoc engines/ccgost/README.gost
243 -
244 - # This is crappy in that the static archives are still built even
245 - # when USE=static-libs. But this is due to a failing in the openssl
246 - # build system: the static archives are built as PIC all the time.
247 - # Only way around this would be to manually configure+compile openssl
248 - # twice; once with shared lib support enabled and once without.
249 - use static-libs || rm -f "${ED}"/usr/lib*/lib*.a
250 -
251 - # create the certs directory
252 - dodir ${SSL_CNF_DIR}/certs
253 - cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die
254 - rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired}
255 -
256 - # Namespace openssl programs to prevent conflicts with other man pages
257 - cd "${ED}"/usr/share/man
258 - local m d s
259 - for m in $(find . -type f | xargs grep -L '#include') ; do
260 - d=${m%/*} ; d=${d#./} ; m=${m##*/}
261 - [[ ${m} == openssl.1* ]] && continue
262 - [[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!"
263 - mv ${d}/{,ssl-}${m}
264 - # fix up references to renamed man pages
265 - sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m}
266 - ln -s ssl-${m} ${d}/openssl-${m}
267 - # locate any symlinks that point to this man page ... we assume
268 - # that any broken links are due to the above renaming
269 - for s in $(find -L ${d} -type l) ; do
270 - s=${s##*/}
271 - rm -f ${d}/${s}
272 - ln -s ssl-${m} ${d}/ssl-${s}
273 - ln -s ssl-${s} ${d}/openssl-${s}
274 - done
275 - done
276 - [[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :("
277 -
278 - dodir /etc/sandbox.d #254521
279 - echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl
280 -
281 - diropts -m0700
282 - keepdir ${SSL_CNF_DIR}/private
283 -}
284 -
285 -pkg_postinst() {
286 - ebegin "Running 'c_rehash ${EROOT%/}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069"
287 - c_rehash "${EROOT%/}${SSL_CNF_DIR}/certs" >/dev/null
288 - eend $?
289 -}
290
291 diff --git a/dev-libs/openssl/openssl-1.0.2o.ebuild b/dev-libs/openssl/openssl-1.0.2o-r3.ebuild
292 similarity index 97%
293 rename from dev-libs/openssl/openssl-1.0.2o.ebuild
294 rename to dev-libs/openssl/openssl-1.0.2o-r3.ebuild
295 index b8a3ec6ee43..f54edbbadc2 100644
296 --- a/dev-libs/openssl/openssl-1.0.2o.ebuild
297 +++ b/dev-libs/openssl/openssl-1.0.2o-r3.ebuild
298 @@ -5,13 +5,14 @@ EAPI="6"
299
300 inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
301
302 -PATCH_SET="openssl-1.0.2-patches-1.2"
303 +PATCH_SET="openssl-1.0.2-patches-1.4"
304 MY_P=${P/_/-}
305 DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
306 HOMEPAGE="https://www.openssl.org/"
307 SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
308 mirror://gentoo/${PATCH_SET}.tar.xz
309 - https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz"
310 + https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz
311 + https://dev.gentoo.org/~polynomial-c/dist/${PATCH_SET}.tar.xz"
312
313 LICENSE="openssl"
314 SLOT="0"
315
316 diff --git a/dev-libs/openssl/openssl-1.0.2o-r2.ebuild b/dev-libs/openssl/openssl-1.0.2o-r4.ebuild
317 similarity index 98%
318 rename from dev-libs/openssl/openssl-1.0.2o-r2.ebuild
319 rename to dev-libs/openssl/openssl-1.0.2o-r4.ebuild
320 index 8959ecc1213..335dce5ded3 100644
321 --- a/dev-libs/openssl/openssl-1.0.2o-r2.ebuild
322 +++ b/dev-libs/openssl/openssl-1.0.2o-r4.ebuild
323 @@ -5,13 +5,14 @@ EAPI="6"
324
325 inherit eutils flag-o-matic toolchain-funcs multilib multilib-minimal
326
327 -PATCH_SET="openssl-1.0.2-patches-1.3"
328 +PATCH_SET="openssl-1.0.2-patches-1.4"
329 MY_P=${P/_/-}
330 DESCRIPTION="full-strength general purpose cryptography library (including SSL and TLS)"
331 HOMEPAGE="https://www.openssl.org/"
332 SRC_URI="mirror://openssl/source/${MY_P}.tar.gz
333 mirror://gentoo/${PATCH_SET}.tar.xz
334 - https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz"
335 + https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz
336 + https://dev.gentoo.org/~polynomial-c/dist/${PATCH_SET}.tar.xz"
337
338 LICENSE="openssl"
339 SLOT="0"