From eaf0a3123c2d98d8a7c6f3a46f6565577cf0d11a Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Fri, 31 Jul 2020 11:41:04 -0700 Subject: net-misc/openssh-8.3_p1-r4: Add workaround libmd bug 734984 Bug: https://bugs.gentoo.org/734984 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Patrick McLean --- net-misc/openssh/files/openssh-8.3_p1-sha2-include.patch | 13 +++++++++++++ net-misc/openssh/openssh-8.3_p1-r4.ebuild | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 net-misc/openssh/files/openssh-8.3_p1-sha2-include.patch (limited to 'net-misc') diff --git a/net-misc/openssh/files/openssh-8.3_p1-sha2-include.patch b/net-misc/openssh/files/openssh-8.3_p1-sha2-include.patch new file mode 100644 index 000000000000..6bd716619701 --- /dev/null +++ b/net-misc/openssh/files/openssh-8.3_p1-sha2-include.patch @@ -0,0 +1,13 @@ +diff --git a/Makefile.in b/Makefile.in +index c9e4294d..2dbfac24 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -44,7 +44,7 @@ CC=@CC@ + LD=@LD@ + CFLAGS=@CFLAGS@ + CFLAGS_NOPIE=@CFLAGS_NOPIE@ +-CPPFLAGS=-I. -I$(srcdir) @CPPFLAGS@ $(PATHS) @DEFS@ ++CPPFLAGS=-I. -I$(srcdir) -I$(srcdir)/openbsd-compat @CPPFLAGS@ $(PATHS) @DEFS@ + PICFLAG=@PICFLAG@ + LIBS=@LIBS@ + K5LIBS=@K5LIBS@ diff --git a/net-misc/openssh/openssh-8.3_p1-r4.ebuild b/net-misc/openssh/openssh-8.3_p1-r4.ebuild index a3d261036a76..6e93d57cf890 100644 --- a/net-misc/openssh/openssh-8.3_p1-r4.ebuild +++ b/net-misc/openssh/openssh-8.3_p1-r4.ebuild @@ -137,6 +137,9 @@ src_prepare() { eapply "${FILESDIR}"/${PN}-8.0_p1-fix-putty-tests.patch eapply "${FILESDIR}"/${PN}-8.0_p1-deny-shmget-shmat-shmdt-in-preauth-privsep-child.patch + # workaround for https://bugs.gentoo.org/734984 + use X509 || eapply "${FILESDIR}"/${PN}-8.3_p1-sha2-include.patch + [[ -d ${WORKDIR}/patches ]] && eapply "${WORKDIR}"/patches local PATCHSET_VERSION_MACROS=() -- cgit v1.2.3-65-gdbad