Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gnutls/, net-libs/gnutls/files/
Date: Fri, 04 Sep 2020 16:14:27
Message-Id: 1599236027.807088725f04adee3a1e0ed9a8b41d8d647262b3.whissi@gentoo
1 commit: 807088725f04adee3a1e0ed9a8b41d8d647262b3
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 4 15:28:14 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 4 16:13:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80708872
7
8 net-libs/gnutls: bump to v3.6.15
9
10 Bug: https://bugs.gentoo.org/649396
11 Bug: https://bugs.gentoo.org/711104
12 Bug: https://bugs.gentoo.org/740390
13 Package-Manager: Portage-3.0.4, Repoman-3.0.1
14 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
15
16 net-libs/gnutls/Manifest | 1 +
17 .../gnutls-3.6.15-skip-dtls-seccomp-tests.patch | 26 ++++
18 net-libs/gnutls/gnutls-3.6.15.ebuild | 134 +++++++++++++++++++++
19 3 files changed, 161 insertions(+)
20
21 diff --git a/net-libs/gnutls/Manifest b/net-libs/gnutls/Manifest
22 index a6db64d03c0..580a7c962dd 100644
23 --- a/net-libs/gnutls/Manifest
24 +++ b/net-libs/gnutls/Manifest
25 @@ -1 +1,2 @@
26 DIST gnutls-3.6.14.tar.xz 6069088 BLAKE2B a1cd88a7c977f3a94a49e4187878560a8d9589a6fd32d8ad41b84c33534597fb85a88cf6b260a4a5e8b1a100790a7ba701acac2368f1ad42dcaba7e5c90b6758 SHA512 b2d427b5542a4679117c011dffa8efb0e0bffa3ce9cebc319f8998d03f80f4168d08f9fda35df18dbeaaada59e479d325a6c1c77d5ca7f8ce221b44e42bfe604
27 +DIST gnutls-3.6.15.tar.xz 6081656 BLAKE2B 6c52419037e41e817087a2577a6b73969cf065453ecf88e2f87152f544a177e4ad0ef825ae9dab243312e0223a953ab28e532bd2dbf96cb9498618415bc7f654 SHA512 f757d1532198f44bcad7b73856ce6a05bab43f6fb77fcc81c59607f146202f73023d0796d3e1e7471709cf792c8ee7d436e19407e0601bc0bda2f21512b3b01c
28
29 diff --git a/net-libs/gnutls/files/gnutls-3.6.15-skip-dtls-seccomp-tests.patch b/net-libs/gnutls/files/gnutls-3.6.15-skip-dtls-seccomp-tests.patch
30 new file mode 100644
31 index 00000000000..dad6cec8d3d
32 --- /dev/null
33 +++ b/net-libs/gnutls/files/gnutls-3.6.15-skip-dtls-seccomp-tests.patch
34 @@ -0,0 +1,26 @@
35 +https://bugs.gentoo.org/649396
36 +https://bugs.gentoo.org/711104
37 +
38 +--- a/tests/dtls-client-with-seccomp.c
39 ++++ b/tests/dtls-client-with-seccomp.c
40 +@@ -27,7 +27,7 @@
41 + #include <stdio.h>
42 + #include <stdlib.h>
43 +
44 +-#if defined(_WIN32) || !defined(HAVE_LIBSECCOMP)
45 ++#if 1
46 +
47 + int main()
48 + {
49 +--- a/tests/dtls-with-seccomp.c
50 ++++ b/tests/dtls-with-seccomp.c
51 +@@ -27,7 +27,7 @@
52 + #include <stdio.h>
53 + #include <stdlib.h>
54 +
55 +-#if defined(_WIN32) || !defined(HAVE_LIBSECCOMP)
56 ++#if 1
57 +
58 + int main()
59 + {
60 +
61
62 diff --git a/net-libs/gnutls/gnutls-3.6.15.ebuild b/net-libs/gnutls/gnutls-3.6.15.ebuild
63 new file mode 100644
64 index 00000000000..2aaf56d8ded
65 --- /dev/null
66 +++ b/net-libs/gnutls/gnutls-3.6.15.ebuild
67 @@ -0,0 +1,134 @@
68 +# Copyright 1999-2020 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +inherit libtool multilib-minimal
74 +
75 +DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project"
76 +HOMEPAGE="http://www.gnutls.org/"
77 +SRC_URI="mirror://gnupg/gnutls/v$(ver_cut 1-2)/${P}.tar.xz"
78 +
79 +LICENSE="GPL-3 LGPL-2.1+"
80 +SLOT="0/30" # libgnutls.so number
81 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
82 +IUSE="+cxx dane doc examples guile +idn nls +openssl pkcs11 seccomp sslv2 sslv3 static-libs test test-full +tls-heartbeat tools valgrind"
83 +
84 +REQUIRED_USE="
85 + test-full? ( cxx dane doc examples guile idn nls openssl pkcs11 seccomp tls-heartbeat tools )"
86 +RESTRICT="!test? ( test )"
87 +
88 +# NOTICE: sys-devel/autogen is required at runtime as we
89 +# use system libopts
90 +RDEPEND=">=dev-libs/libtasn1-4.9:=[${MULTILIB_USEDEP}]
91 + dev-libs/libunistring:=[${MULTILIB_USEDEP}]
92 + >=dev-libs/nettle-3.4.1:=[gmp,${MULTILIB_USEDEP}]
93 + >=dev-libs/gmp-5.1.3-r1:=[${MULTILIB_USEDEP}]
94 + tools? ( sys-devel/autogen:= )
95 + dane? ( >=net-dns/unbound-1.4.20:=[${MULTILIB_USEDEP}] )
96 + guile? ( >=dev-scheme/guile-2:=[networking] )
97 + nls? ( >=virtual/libintl-0-r1:=[${MULTILIB_USEDEP}] )
98 + pkcs11? ( >=app-crypt/p11-kit-0.23.1:=[${MULTILIB_USEDEP}] )
99 + idn? ( >=net-dns/libidn2-0.16-r1:=[${MULTILIB_USEDEP}] )"
100 +DEPEND="${RDEPEND}
101 + test? (
102 + seccomp? ( sys-libs/libseccomp )
103 + )"
104 +BDEPEND=">=virtual/pkgconfig-0-r1
105 + doc? ( dev-util/gtk-doc )
106 + nls? ( sys-devel/gettext )
107 + tools? ( sys-devel/autogen )
108 + valgrind? ( dev-util/valgrind )
109 + test-full? (
110 + app-crypt/dieharder
111 + >=app-misc/datefudge-1.22
112 + dev-libs/softhsm:2[-bindist]
113 + net-dialup/ppp
114 + net-misc/socat
115 + )"
116 +
117 +DOCS=(
118 + README.md
119 + doc/certtool.cfg
120 +)
121 +
122 +HTML_DOCS=()
123 +
124 +PATCHES=( "${FILESDIR}"/${PN}-3.6.15-skip-dtls-seccomp-tests.patch )
125 +
126 +pkg_setup() {
127 + # bug#520818
128 + export TZ=UTC
129 +
130 + use doc && HTML_DOCS+=(
131 + doc/gnutls.html
132 + )
133 +}
134 +
135 +src_prepare() {
136 + default
137 +
138 + # force regeneration of autogen-ed files
139 + local file
140 + for file in $(grep -l AutoGen-ed src/*.c) ; do
141 + rm src/$(basename ${file} .c).{c,h} || die
142 + done
143 +
144 + # Use sane .so versioning on FreeBSD.
145 + elibtoolize
146 +}
147 +
148 +multilib_src_configure() {
149 + LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
150 +
151 + local libconf=()
152 +
153 + # TPM needs to be tested before being enabled
154 + libconf+=( --without-tpm )
155 +
156 + # hardware-accell is disabled on OSX because the asm files force
157 + # GNU-stack (as doesn't support that) and when that's removed ld
158 + # complains about duplicate symbols
159 + [[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
160 +
161 + # Cygwin as does not understand these asm files at all
162 + [[ ${CHOST} == *-cygwin* ]] && libconf+=( --disable-hardware-acceleration )
163 +
164 + local myeconfargs=(
165 + $(multilib_native_enable manpages)
166 + $(multilib_native_use_enable doc gtk-doc)
167 + $(multilib_native_use_enable doc)
168 + $(multilib_native_use_enable guile)
169 + $(multilib_native_use_enable seccomp seccomp-tests)
170 + $(multilib_native_use_enable test tests)
171 + $(multilib_native_use_enable test-full full-test-suite)
172 + $(multilib_native_use_enable tools)
173 + $(multilib_native_use_enable valgrind valgrind-tests)
174 + $(use_enable cxx)
175 + $(use_enable dane libdane)
176 + $(use_enable nls)
177 + $(use_enable openssl openssl-compatibility)
178 + $(use_enable sslv2 ssl2-support)
179 + $(use_enable sslv3 ssl3-support)
180 + $(use_enable static-libs static)
181 + $(use_enable tls-heartbeat heartbeat-support)
182 + $(use_with idn)
183 + $(use_with pkcs11 p11-kit)
184 + --disable-rpath
185 + --with-default-trust-store-file="${EPREFIX}/etc/ssl/certs/ca-certificates.crt"
186 + --with-unbound-root-key-file="${EPREFIX}/etc/dnssec/root-anchors.txt"
187 + --without-included-libtasn1
188 + $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
189 + )
190 + ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}"
191 +}
192 +
193 +multilib_src_install_all() {
194 + einstalldocs
195 + find "${ED}" -type f -name '*.la' -delete || die
196 +
197 + if use examples; then
198 + docinto examples
199 + dodoc doc/examples/*.c
200 + fi
201 +}