commit:     c85d3cd324bd95113029b0a5c55b55a3f93bcaba
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 29 19:44:49 2024 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jul 29 19:47:55 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c85d3cd3

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 <AT> gentoo.org>

 app-crypt/gnupg/gnupg-2.4.5-r2.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

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() {

Reply via email to