Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/gnupg/, app-crypt/gnupg/files/
Date: Thu, 02 Mar 2017 10:06:53
Message-Id: 1488449200.83e4182537a4a1950cab2da490403c848ebd4edd.grobian@gentoo
1 commit: 83e4182537a4a1950cab2da490403c848ebd4edd
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 2 10:06:13 2017 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 2 10:06:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83e41825
7
8 app-crypt/gnupg: fix compilation on Solaris
9
10 Package-Manager: Portage-2.3.4-prefix, Repoman-2.3.2
11
12 .../gnupg/files/gnupg-2.1.19-solaris-ucred.patch | 19 +++++++++++++++++++
13 app-crypt/gnupg/gnupg-2.1.19.ebuild | 1 +
14 2 files changed, 20 insertions(+)
15
16 diff --git a/app-crypt/gnupg/files/gnupg-2.1.19-solaris-ucred.patch b/app-crypt/gnupg/files/gnupg-2.1.19-solaris-ucred.patch
17 new file mode 100644
18 index 00000000000..aefce5e8256
19 --- /dev/null
20 +++ b/app-crypt/gnupg/files/gnupg-2.1.19-solaris-ucred.patch
21 @@ -0,0 +1,19 @@
22 +command-ssh: include ucred.h
23 +
24 +In order to use ucred() when HAVE_SO_PEERCRED is defined, ucred.h needs
25 +to be included on Solaris.
26 +
27 +https://bugs.gnupg.org/gnupg/issue2981
28 +
29 +--- a/agent/command-ssh.c
30 ++++ b/agent/command-ssh.c
31 +@@ -40,6 +40,9 @@
32 + #include <sys/types.h>
33 + #include <sys/stat.h>
34 + #include <assert.h>
35 ++#ifdef HAVE_UCRED_H
36 ++#include <ucred.h>
37 ++#endif
38 +
39 + #include "agent.h"
40 +
41
42 diff --git a/app-crypt/gnupg/gnupg-2.1.19.ebuild b/app-crypt/gnupg/gnupg-2.1.19.ebuild
43 index ad3a2fa22ba..9eb3471d66f 100644
44 --- a/app-crypt/gnupg/gnupg-2.1.19.ebuild
45 +++ b/app-crypt/gnupg/gnupg-2.1.19.ebuild
46 @@ -54,6 +54,7 @@ DOCS=(
47
48 PATCHES=(
49 "${FILESDIR}/${PN}-2.1.16-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch"
50 + "${FILESDIR}"/${P}-solaris-ucred.patch
51 )
52
53 src_configure() {