Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-libs/libressl/
Date: Wed, 03 Jun 2020 23:12:00
Message-Id: 1591225891.597afb78f5a3ba9f180d46af25fe13b56190c0d9.steils@gentoo
1 commit: 597afb78f5a3ba9f180d46af25fe13b56190c0d9
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 3 16:27:20 2020 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 3 23:11:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=597afb78
7
8 dev-libs/libressl: version bump to 3.2.0; mask for testing
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
12
13 dev-libs/libressl/Manifest | 1 +
14 dev-libs/libressl/libressl-3.2.0.ebuild | 63 +++++++++++++++++++++++++++++++++
15 profiles/package.mask | 4 +++
16 3 files changed, 68 insertions(+)
17
18 diff --git a/dev-libs/libressl/Manifest b/dev-libs/libressl/Manifest
19 index 82ce054f068..58dfcd20f73 100644
20 --- a/dev-libs/libressl/Manifest
21 +++ b/dev-libs/libressl/Manifest
22 @@ -4,3 +4,4 @@ DIST libressl-2.9.2.tar.gz 3607549 BLAKE2B 496e993e4f1c85167e0344afab61259d4e3f0
23 DIST libressl-3.0.2.tar.gz 3669468 BLAKE2B 84ad2c1fea8d2119f191ec8ab3f999fb0354636d48aabb76fa1786139c669c9d8ca105d79cc8416dd20683818eccc84490cdadc9ca94cb2b0e411644e923a3d6 SHA512 19226da3bc9776e1da40b8e94dfa53564d5e6acc80edee539ba12d7a75c1bb8c0603e7633f26a6ef8b12adc56bb677ccda448575aa6be2ad3df5447465a4b080
24 DIST libressl-3.1.1.tar.gz 3765769 BLAKE2B 8524a4d83e05b0f2992df8e3797cbf43220a8619431f4737887db2fa35419a925907691ac1aec5b3cc1660179d4ac5e44714540ae591c5aa4957db1f26068a7e SHA512 353a5c95bb0c160b698b95b91d6857ddb63a75b0685a233ed2515f46ad8369d40857aa1ff8407aa9bc78a5c3c29c25376e7a55a3c96fce40840633411944fb1d
25 DIST libressl-3.1.2.tar.gz 3765944 BLAKE2B b0181a1936af3aad3908668cae14aa87e8dca594ebb1effa354eb57529c21aca2052ce6bc85958dd83645c9026c84410939018d16c8e70a60f336145d45790e6 SHA512 b024c5661777daa73feff7085ce7be76a2e766d2f3cb5ca35c208c471e5651a365252758ca36782e20cdfb2bc8171919a08ad592420878a5c95fbe646f5288c8
26 +DIST libressl-3.2.0.tar.gz 3775925 BLAKE2B 99d74fad16e272be8e3b23b873c35970ce3693e088baf365670ad8e8cbb846e90f4232bbc6c65b70a35060da99b9b210b3debce1c78d531e810de26e3e2f05cb SHA512 e8bf95af4e4e855b0462eb12df8f802102a3bee5bb40fb1859e7c40d9e3ce89f0d2eb0acdd923e7c592b4aeb7ecc556f753c0a12d0dace05d2ef342bffdd9d07
27
28 diff --git a/dev-libs/libressl/libressl-3.2.0.ebuild b/dev-libs/libressl/libressl-3.2.0.ebuild
29 new file mode 100644
30 index 00000000000..ab31f204168
31 --- /dev/null
32 +++ b/dev-libs/libressl/libressl-3.2.0.ebuild
33 @@ -0,0 +1,63 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit multilib-minimal libtool
40 +
41 +DESCRIPTION="Free version of the SSL/TLS protocol forked from OpenSSL"
42 +HOMEPAGE="https://www.libressl.org/"
43 +SRC_URI="https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${P}.tar.gz"
44 +
45 +LICENSE="ISC openssl"
46 +# Reflects ABI of libcrypto.so and libssl.so. Since these can differ,
47 +# we'll try to use the max of either. However, if either change between
48 +# versions, we have to change the subslot to trigger rebuild of consumers.
49 +SLOT="0/48"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE="+asm static-libs test"
52 +RESTRICT="!test? ( test )"
53 +REQUIRED_USE="test? ( static-libs )"
54 +
55 +RDEPEND="!dev-libs/openssl:0"
56 +DEPEND="${RDEPEND}"
57 +PDEPEND="app-misc/ca-certificates"
58 +
59 +src_prepare() {
60 + touch crypto/Makefile.in
61 +
62 + sed -i \
63 + -e '/^[ \t]*CFLAGS=/s#-g ##' \
64 + -e '/^[ \t]*CFLAGS=/s#-g"#"#' \
65 + -e '/^[ \t]*CFLAGS=/s#-O2 ##' \
66 + -e '/^[ \t]*CFLAGS=/s#-O2"#"#' \
67 + -e '/^[ \t]*USER_CFLAGS=/s#-O2 ##' \
68 + -e '/^[ \t]*USER_CFLAGS=/s#-O2"#"#' \
69 + configure || die "fixing CFLAGS failed"
70 +
71 + if ! use test ; then
72 + sed -i \
73 + -e '/^[ \t]*SUBDIRS =/s#tests##' \
74 + Makefile.in || die "Removing tests failed"
75 + fi
76 +
77 + eapply "${FILESDIR}"/${PN}-2.8.3-solaris10.patch
78 + eapply_user
79 +
80 + elibtoolize # for Solaris
81 +}
82 +
83 +multilib_src_configure() {
84 + ECONF_SOURCE="${S}" econf \
85 + $(use_enable asm) \
86 + $(use_enable static-libs static)
87 +}
88 +
89 +multilib_src_test() {
90 + emake check
91 +}
92 +
93 +multilib_src_install_all() {
94 + einstalldocs
95 + find "${D}" -name '*.la' -exec rm -f {} + || die
96 +}
97
98 diff --git a/profiles/package.mask b/profiles/package.mask
99 index a55a1b5f3de..509c00aa70c 100644
100 --- a/profiles/package.mask
101 +++ b/profiles/package.mask
102 @@ -32,6 +32,10 @@
103
104 #--- END OF EXAMPLES ---
105
106 +# Stefan Strogin <steils@g.o> (2020-06-03)
107 +# Masked for testing
108 +>=dev-libs/libressl-3.2.0
109 +
110 # Michał Górny <mgorny@g.o> (2020-06-03)
111 # Very bad quality (upstream) package. Stuck on py3.6. No revdeps.
112 # Removal in 30 days. Bug #718762.