Skip to content

Commit

Permalink
app-crypt/gnupg-2.4.5-r2: accept pointer type differences on Solaris
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
grobian committed Jul 29, 2024
1 parent 2610947 commit c85d3cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app-crypt/gnupg/gnupg-2.4.5-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c85d3cd

Please sign in to comment.