From 83e4182537a4a1950cab2da490403c848ebd4edd Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 2 Mar 2017 11:06:13 +0100 Subject: [PATCH] app-crypt/gnupg: fix compilation on Solaris Package-Manager: Portage-2.3.4-prefix, Repoman-2.3.2 --- .../files/gnupg-2.1.19-solaris-ucred.patch | 19 +++++++++++++++++++ app-crypt/gnupg/gnupg-2.1.19.ebuild | 1 + 2 files changed, 20 insertions(+) create mode 100644 app-crypt/gnupg/files/gnupg-2.1.19-solaris-ucred.patch 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 new file mode 100644 index 000000000000..aefce5e82566 --- /dev/null +++ b/app-crypt/gnupg/files/gnupg-2.1.19-solaris-ucred.patch @@ -0,0 +1,19 @@ +command-ssh: include ucred.h + +In order to use ucred() when HAVE_SO_PEERCRED is defined, ucred.h needs +to be included on Solaris. + +https://bugs.gnupg.org/gnupg/issue2981 + +--- a/agent/command-ssh.c ++++ b/agent/command-ssh.c +@@ -40,6 +40,9 @@ + #include + #include + #include ++#ifdef HAVE_UCRED_H ++#include ++#endif + + #include "agent.h" + diff --git a/app-crypt/gnupg/gnupg-2.1.19.ebuild b/app-crypt/gnupg/gnupg-2.1.19.ebuild index ad3a2fa22ba1..9eb3471d66ff 100644 --- a/app-crypt/gnupg/gnupg-2.1.19.ebuild +++ b/app-crypt/gnupg/gnupg-2.1.19.ebuild @@ -54,6 +54,7 @@ DOCS=( PATCHES=( "${FILESDIR}/${PN}-2.1.16-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch" + "${FILESDIR}"/${P}-solaris-ucred.patch ) src_configure() { -- 2.26.2