Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/, app-crypt/gnupg/files/
Date: Sun, 07 Feb 2021 14:26:59
Message-Id: 1612708013.810410a8c6b411bd8b1ac60ceb28d37af27256b1.zlogene@gentoo
1 commit: 810410a8c6b411bd8b1ac60ceb28d37af27256b1
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 7 14:26:17 2021 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 7 14:26:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=810410a8
7
8 app-crypt/gnupg: Drop old
9
10 Package-Manager: Portage-3.0.13, Repoman-3.0.2
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 app-crypt/gnupg/Manifest | 2 -
14 ...20-fix-dirmngr-for-non-ipv6-enabled-hosts.patch | 35 -----
15 app-crypt/gnupg/gnupg-2.2.20-r2.ebuild | 159 --------------------
16 app-crypt/gnupg/gnupg-2.2.26.ebuild | 160 ---------------------
17 4 files changed, 356 deletions(-)
18
19 diff --git a/app-crypt/gnupg/Manifest b/app-crypt/gnupg/Manifest
20 index 263c8a5752d..4f8d716e719 100644
21 --- a/app-crypt/gnupg/Manifest
22 +++ b/app-crypt/gnupg/Manifest
23 @@ -1,5 +1,3 @@
24 DIST gnupg-2.2.16-scdaemon_shared-access.patch 2586 BLAKE2B 42fd5482c4e86751ce62836125997c2295c44bc5db0671a06460fd306b2ed93f290fb898fc1b1e463a863eddf9ab5f99ea3c90a55499ef45ca1ed6edf2854663 SHA512 38abaa4200114ae6b6f220fabc0a84a056761949c97bd0564557f4411a299b9a1939893555c27e26da2d8e8da4bc97a298fa7e68f1e80fe99c3f88cc329eaa84
25 -DIST gnupg-2.2.20.tar.bz2 6786913 BLAKE2B 43cf9402a26e67d6c7c2444eb2faaee3f06ea0bf6c07708a50834c5d7424db2f9c38e1f0046dd3a35082abc08d401b2951655e7e068f0873db297560b87d2667 SHA512 3e69f102366ec3415f439ab81aae2458182fa1a18dfb86565b1d9dc638f3fc4c179a5947f0042b7c5a813345676285a662793664a1803ea9ad8328f0548e0edc
26 DIST gnupg-2.2.25.tar.bz2 7195857 BLAKE2B c930edf9259a0e1c508af8d76a86f979860adfe2c525020b37d3741679200f96483f0ad8bc1f72e2dbf7fe77696cd04d4272a2ee23e4c4abe1ed6ba88b95f365 SHA512 ab1d7cc9d8be3e7189bc4bea431b9d5db313cbd1739823950f32fbb611b2f4374889f444efbf43ce1fbf498b9865d7e6e953cd4c86d58fd688f63923c434ea2c
27 -DIST gnupg-2.2.26.tar.bz2 7189254 BLAKE2B f51dd18f6fe327573769d1581ab49bfbca6a56973f6115a68d11e79f52f4b9bdd717ff027800cd1d52fca56abcffa80ee025b49a6af3914f60decdad1e1585ba SHA512 5e9482e126c32c836064b125a18b109f0d3c96892474d3fb47dd791350cccefc56f9a5dfbd54504716487a93d9f71de2493bdfef92e29964b5bfe28b0053c265
28 DIST gnupg-2.2.27.tar.bz2 7191555 BLAKE2B d652aad382cf07cc458b29ff82718edd47457d8236dcbeee51f22d88503be141f009e9ea45b6dafe614115d9558fe371509579e58ce17a5f04540a31aa406ea3 SHA512 cf336962116c9c08ac80b1299654b94948033ef51d6d5e7f54c2f07bbf7d92c7b0bddb606ceee2cdd837063f519b8d59af5a82816b840a0fc47d90c07b0e95ab
29
30 diff --git a/app-crypt/gnupg/files/gnupg-2.2.20-fix-dirmngr-for-non-ipv6-enabled-hosts.patch b/app-crypt/gnupg/files/gnupg-2.2.20-fix-dirmngr-for-non-ipv6-enabled-hosts.patch
31 deleted file mode 100644
32 index 14a1913b3a0..00000000000
33 --- a/app-crypt/gnupg/files/gnupg-2.2.20-fix-dirmngr-for-non-ipv6-enabled-hosts.patch
34 +++ /dev/null
35 @@ -1,35 +0,0 @@
36 -From 109d16e8f644da97ed9c00e6f9010a53097f587a Mon Sep 17 00:00:00 2001
37 -From: NIIBE Yutaka <gniibe@××××.org>
38 -Date: Mon, 13 Jul 2020 10:00:58 +0900
39 -Subject: [PATCH] dirmngr: Handle EAFNOSUPPORT at connect_server.
40 -
41 -* dirmngr/http.c (connect_server): Skip server with EAFNOSUPPORT.
42 -
43 ---
44 -
45 -GnuPG-bug-id: 4977
46 -Signed-off-by: NIIBE Yutaka <gniibe@××××.org>
47 ----
48 - dirmngr/http.c | 9 +++++++++
49 - 1 file changed, 9 insertions(+)
50 -
51 -diff --git a/dirmngr/http.c b/dirmngr/http.c
52 -index f26675f9b..50b9b732b 100644
53 ---- a/dirmngr/http.c
54 -+++ b/dirmngr/http.c
55 -@@ -3005,6 +3005,15 @@ connect_server (ctrl_t ctrl, const char *server, unsigned short port,
56 - sock = my_sock_new_for_addr (ai->addr, ai->socktype, ai->protocol);
57 - if (sock == ASSUAN_INVALID_FD)
58 - {
59 -+ if (errno == EAFNOSUPPORT)
60 -+ {
61 -+ if (ai->family == AF_INET)
62 -+ v4_valid = 0;
63 -+ if (ai->family == AF_INET6)
64 -+ v6_valid = 0;
65 -+ continue;
66 -+ }
67 -+
68 - err = gpg_err_make (default_errsource,
69 - gpg_err_code_from_syserror ());
70 - log_error ("error creating socket: %s\n", gpg_strerror (err));
71
72 diff --git a/app-crypt/gnupg/gnupg-2.2.20-r2.ebuild b/app-crypt/gnupg/gnupg-2.2.20-r2.ebuild
73 deleted file mode 100644
74 index 25d0a11c431..00000000000
75 --- a/app-crypt/gnupg/gnupg-2.2.20-r2.ebuild
76 +++ /dev/null
77 @@ -1,159 +0,0 @@
78 -# Copyright 1999-2021 Gentoo Authors
79 -# Distributed under the terms of the GNU General Public License v2
80 -
81 -EAPI=7
82 -
83 -inherit flag-o-matic systemd toolchain-funcs
84 -
85 -MY_P="${P/_/-}"
86 -
87 -DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
88 -HOMEPAGE="https://gnupg.org/"
89 -SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2"
90 -
91 -LICENSE="GPL-3"
92 -SLOT="0"
93 -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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
94 -IUSE="bzip2 doc ldap nls readline selinux +smartcard ssl tofu tools usb user-socket wks-server"
95 -
96 -# Existence of executables is checked during configuration.
97 -DEPEND=">=dev-libs/libassuan-2.5.0
98 - >=dev-libs/libgcrypt-1.7.3
99 - >=dev-libs/libgpg-error-1.28
100 - >=dev-libs/libksba-1.3.4
101 - >=dev-libs/npth-1.2
102 - >=net-misc/curl-7.10
103 - bzip2? ( app-arch/bzip2 )
104 - ldap? ( net-nds/openldap )
105 - readline? ( sys-libs/readline:0= )
106 - smartcard? ( usb? ( virtual/libusb:1 ) )
107 - ssl? ( >=net-libs/gnutls-3.0:0= )
108 - sys-libs/zlib
109 - tofu? ( >=dev-db/sqlite-3.7 )"
110 -
111 -RDEPEND="${DEPEND}
112 - app-crypt/pinentry
113 - nls? ( virtual/libintl )
114 - selinux? ( sec-policy/selinux-gpg )
115 - wks-server? ( virtual/mta )"
116 -
117 -BDEPEND="virtual/pkgconfig
118 - doc? ( sys-apps/texinfo )
119 - nls? ( sys-devel/gettext )"
120 -
121 -S="${WORKDIR}/${MY_P}"
122 -
123 -DOCS=(
124 - ChangeLog NEWS README THANKS TODO VERSION
125 - doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
126 -)
127 -
128 -PATCHES=(
129 - "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
130 - "${FILESDIR}/${PN}-2.2.20-fix-dirmngr-for-non-ipv6-enabled-hosts.patch"
131 -)
132 -
133 -src_prepare() {
134 - default
135 -
136 - # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
137 - # idea borrowed from libdbus, see
138 - # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
139 - #
140 - # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl',
141 - # which in turn requires discovery in Autoconf, something that upstream deeply resents.
142 - sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
143 - -i doc/examples/systemd-user/gpg-agent-ssh.socket || die
144 -}
145 -
146 -src_configure() {
147 - local myconf=()
148 -
149 - if use prefix && use usb; then
150 - # bug #649598
151 - append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
152 - fi
153 -
154 - if use elibc_SunOS; then
155 - myconf+=( --disable-symcryptrun )
156 - else
157 - myconf+=( --enable-symcryptrun )
158 - fi
159 -
160 - #bug 663142
161 - if use user-socket; then
162 - myconf+=( --enable-run-gnupg-user-socket )
163 - fi
164 -
165 - # glib fails and picks up clang's internal stdint.h causing weird errors
166 - [[ ${CC} == *clang ]] && \
167 - export gl_cv_absolute_stdint_h=/usr/include/stdint.h
168 -
169 - # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist.
170 - # As of GnuPG 2.3, the mailprog substitution is used for the binary called
171 - # by wks-client & wks-server; and if it's autodetected but not not exist at
172 - # build time, then then 'gpg-wks-client --send' functionality will not
173 - # work. This has an unwanted side-effect in stage3 builds: there was a
174 - # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating
175 - # the build where the install guide previously make the user chose the
176 - # logger & mta early in the install.
177 -
178 - econf \
179 - "${myconf[@]}" \
180 - $(use_enable bzip2) \
181 - $(use_enable nls) \
182 - $(use_enable smartcard scdaemon) \
183 - $(use_enable ssl gnutls) \
184 - $(use_enable tofu) \
185 - $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver') \
186 - $(use_enable wks-server wks-tools) \
187 - $(use_with ldap) \
188 - $(use_with readline) \
189 - --with-mailprog=/usr/libexec/sendmail \
190 - --disable-ntbtls \
191 - --enable-all-tests \
192 - --enable-gpg \
193 - --enable-gpgsm \
194 - --enable-large-secmem \
195 - CC_FOR_BUILD="$(tc-getBUILD_CC)" \
196 - GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config" \
197 - KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config" \
198 - LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config" \
199 - LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config" \
200 - NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config" \
201 - $("${S}/configure" --help | grep -- '--without-.*-prefix' | sed -e 's/^ *\([^ ]*\) .*/\1/g')
202 -}
203 -
204 -src_compile() {
205 - default
206 -
207 - use doc && emake -C doc html
208 -}
209 -
210 -src_test() {
211 - #Bug: 638574
212 - use tofu && export TESTFLAGS=--parallel
213 - default
214 -}
215 -
216 -src_install() {
217 - default
218 -
219 - use tools &&
220 - dobin \
221 - tools/{convert-from-106,gpg-check-pattern} \
222 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
223 - tools/make-dns-cert
224 -
225 - dosym gpg /usr/bin/gpg2
226 - dosym gpgv /usr/bin/gpgv2
227 - echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
228 - echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
229 -
230 - dodir /etc/env.d
231 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
232 -
233 - use doc && dodoc doc/gnupg.html/* doc/*.png
234 -
235 - systemd_douserunit doc/examples/systemd-user/*.{service,socket}
236 -}
237
238 diff --git a/app-crypt/gnupg/gnupg-2.2.26.ebuild b/app-crypt/gnupg/gnupg-2.2.26.ebuild
239 deleted file mode 100644
240 index f03938727e3..00000000000
241 --- a/app-crypt/gnupg/gnupg-2.2.26.ebuild
242 +++ /dev/null
243 @@ -1,160 +0,0 @@
244 -# Copyright 1999-2021 Gentoo Authors
245 -# Distributed under the terms of the GNU General Public License v2
246 -
247 -EAPI=7
248 -
249 -inherit flag-o-matic systemd toolchain-funcs
250 -
251 -MY_P="${P/_/-}"
252 -
253 -DESCRIPTION="The GNU Privacy Guard, a GPL OpenPGP implementation"
254 -HOMEPAGE="https://gnupg.org/"
255 -SRC_URI="mirror://gnupg/gnupg/${MY_P}.tar.bz2
256 - scd-shared-access? ( https://raw.githubusercontent.com/GPGTools/MacGPG2/5ca182f54b7b6cd635d1c0a4713953834489fdd9/patches/gnupg/scdaemon_shared-access.patch -> ${PN}-2.2.16-scdaemon_shared-access.patch )"
257 -
258 -LICENSE="GPL-3"
259 -SLOT="0"
260 -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 ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
261 -IUSE="bzip2 doc ldap nls readline scd-shared-access selinux +smartcard ssl tofu tools usb user-socket wks-server"
262 -
263 -# Existence of executables is checked during configuration.
264 -DEPEND=">=dev-libs/libassuan-2.5.0
265 - >=dev-libs/libgcrypt-1.8.0
266 - >=dev-libs/libgpg-error-1.29
267 - >=dev-libs/libksba-1.3.4
268 - >=dev-libs/npth-1.2
269 - >=net-misc/curl-7.10
270 - bzip2? ( app-arch/bzip2 )
271 - ldap? ( net-nds/openldap )
272 - readline? ( sys-libs/readline:0= )
273 - smartcard? ( usb? ( virtual/libusb:1 ) )
274 - ssl? ( >=net-libs/gnutls-3.0:0= )
275 - sys-libs/zlib
276 - tofu? ( >=dev-db/sqlite-3.7 )"
277 -
278 -RDEPEND="${DEPEND}
279 - app-crypt/pinentry
280 - nls? ( virtual/libintl )
281 - selinux? ( sec-policy/selinux-gpg )
282 - wks-server? ( virtual/mta )"
283 -
284 -BDEPEND="virtual/pkgconfig
285 - doc? ( sys-apps/texinfo )
286 - nls? ( sys-devel/gettext )"
287 -
288 -S="${WORKDIR}/${MY_P}"
289 -
290 -DOCS=(
291 - ChangeLog NEWS README THANKS TODO VERSION
292 - doc/FAQ doc/DETAILS doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER
293 -)
294 -
295 -PATCHES=(
296 - "${FILESDIR}/${PN}-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
297 -)
298 -
299 -src_prepare() {
300 - default
301 -
302 - # Made optional because it's a non-official patch
303 - if use scd-shared-access ; then
304 - # Patch taken from
305 - # https://github.com/GPGTools/MacGPG2/tree/dev/patches/gnupg
306 - eapply "${DISTDIR}/${PN}-2.2.16-scdaemon_shared-access.patch"
307 - fi
308 -
309 - # Inject SSH_AUTH_SOCK into user's sessions after enabling gpg-agent-ssh.socket in systemctl --user mode,
310 - # idea borrowed from libdbus, see
311 - # https://gitlab.freedesktop.org/dbus/dbus/-/blob/master/bus/systemd-user/dbus.socket.in#L6
312 - #
313 - # This cannot be upstreamed, as it requires determining the exact prefix of 'systemctl',
314 - # which in turn requires discovery in Autoconf, something that upstream deeply resents.
315 - sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
316 - -i doc/examples/systemd-user/gpg-agent-ssh.socket || die
317 -}
318 -
319 -src_configure() {
320 - local myconf=(
321 - $(use_enable bzip2)
322 - $(use_enable nls)
323 - $(use_enable smartcard scdaemon)
324 - $(use_enable ssl gnutls)
325 - $(use_enable tofu)
326 - $(use smartcard && use_enable usb ccid-driver || echo '--disable-ccid-driver')
327 - $(use_enable wks-server wks-tools)
328 - $(use_with ldap)
329 - $(use_with readline)
330 - --with-mailprog=/usr/libexec/sendmail
331 - --disable-ntbtls
332 - --enable-all-tests
333 - --enable-gpg
334 - --enable-gpgsm
335 - --enable-large-secmem
336 - CC_FOR_BUILD="$(tc-getBUILD_CC)"
337 - GPG_ERROR_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-gpg-error-config"
338 - KSBA_CONFIG="${ESYSROOT}/usr/bin/ksba-config"
339 - LIBASSUAN_CONFIG="${ESYSROOT}/usr/bin/libassuan-config"
340 - LIBGCRYPT_CONFIG="${ESYSROOT}/usr/bin/${CHOST}-libgcrypt-config"
341 - NPTH_CONFIG="${ESYSROOT}/usr/bin/npth-config"
342 - $("${S}/configure" --help | grep -o -- '--without-.*-prefix')
343 - )
344 -
345 - if use prefix && use usb; then
346 - # bug #649598
347 - append-cppflags -I"${EPREFIX}/usr/include/libusb-1.0"
348 - fi
349 -
350 - #bug 663142
351 - if use user-socket; then
352 - myconf+=( --enable-run-gnupg-user-socket )
353 - fi
354 -
355 - # glib fails and picks up clang's internal stdint.h causing weird errors
356 - [[ ${CC} == *clang ]] && \
357 - export gl_cv_absolute_stdint_h=/usr/include/stdint.h
358 -
359 - # Hardcode mailprog to /usr/libexec/sendmail even if it does not exist.
360 - # As of GnuPG 2.3, the mailprog substitution is used for the binary called
361 - # by wks-client & wks-server; and if it's autodetected but not not exist at
362 - # build time, then then 'gpg-wks-client --send' functionality will not
363 - # work. This has an unwanted side-effect in stage3 builds: there was a
364 - # [R]DEPEND on virtual/mta, which also brought in virtual/logger, bloating
365 - # the build where the install guide previously make the user chose the
366 - # logger & mta early in the install.
367 -
368 - econf "${myconf[@]}"
369 -}
370 -
371 -src_compile() {
372 - default
373 -
374 - use doc && emake -C doc html
375 -}
376 -
377 -src_test() {
378 - #Bug: 638574
379 - use tofu && export TESTFLAGS=--parallel
380 - default
381 -}
382 -
383 -src_install() {
384 - default
385 -
386 - use tools &&
387 - dobin \
388 - tools/{convert-from-106,gpg-check-pattern} \
389 - tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys} \
390 - tools/make-dns-cert
391 -
392 - dosym gpg /usr/bin/gpg2
393 - dosym gpgv /usr/bin/gpgv2
394 - echo ".so man1/gpg.1" > "${ED}"/usr/share/man/man1/gpg2.1 || die
395 - echo ".so man1/gpgv.1" > "${ED}"/usr/share/man/man1/gpgv2.1 || die
396 -
397 - dodir /etc/env.d
398 - echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg || die
399 -
400 - use doc && dodoc doc/gnupg.html/* doc/*.png
401 -
402 - systemd_douserunit doc/examples/systemd-user/*.{service,socket}
403 -}