summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-07-29 21:44:49 +0200
committerFabian Groffen <grobian@gentoo.org>2024-07-29 21:47:55 +0200
commitc85d3cd324bd95113029b0a5c55b55a3f93bcaba (patch)
tree98f2b046ea59f5244f13ac9f14efe331027050b6 /app-crypt/gnupg
parentdev-libs/libassuan: run elibtoolize for Solaris solibs (diff)
downloadgentoo-c85d3cd324bd95113029b0a5c55b55a3f93bcaba.tar.gz
gentoo-c85d3cd324bd95113029b0a5c55b55a3f93bcaba.tar.bz2
gentoo-c85d3cd324bd95113029b0a5c55b55a3f93bcaba.zip
app-crypt/gnupg-2.4.5-r2: accept pointer type differences on Solaris
gnupg uses a function pointer for passing functions like getpeername which internally on Solaris use slightly different (yet compatible) definitions than gnupg's code specifies. This results in an error with newer compilers, but since there's basically not much wrong with this, suppress the warning for now. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'app-crypt/gnupg')
-rw-r--r--app-crypt/gnupg/gnupg-2.4.5-r2.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/app-crypt/gnupg/gnupg-2.4.5-r2.ebuild b/app-crypt/gnupg/gnupg-2.4.5-r2.ebuild
index 5b2191cfb0b7..5b6cf6eaca80 100644
--- a/app-crypt/gnupg/gnupg-2.4.5-r2.ebuild
+++ b/app-crypt/gnupg/gnupg-2.4.5-r2.ebuild
@@ -95,6 +95,10 @@ src_prepare() {
# which in turn requires discovery in Autoconf, something that upstream deeply resents.
sed -e "/DirectoryMode=/a ExecStartPost=-${EPREFIX}/bin/systemctl --user set-environment SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh" \
-i "${T}"/gpg-agent-ssh.socket || die
+
+ # definition of getpeername etc uses different things like socket_fd_t
+ [[ ${CHOST} == *-solaris* ]] &&
+ append-cflags $(test-flags-CC -Wno-incompatible-pointer-types)
}
my_src_configure() {