ncrack: fix umac_ctx compilation failure, by debian patch. https://github.com/nmap/ncrack/issues/128

This commit is contained in:
Anton Bolshakov 2023-07-10 11:21:44 +08:00
parent e11dd9f2ed
commit ea3efb5230
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 20 additions and 3 deletions

View file

@ -0,0 +1,15 @@
Description: Fix build with gcc-10.
Author: Jürgen Hötzel <juergen@hoetzel.info>
Origin: https://github.com/nmap/ncrack/pull/83/
--- a/opensshlib/umac.c
+++ b/opensshlib/umac.c
@@ -1181,7 +1181,7 @@
uhash_ctx hash; /* Hash function for message compression */
pdf_ctx pdf; /* PDF for hashed output */
void *free_ptr; /* Address to free this struct via */
-} umac_ctx;
+};
/* ---------------------------------------------------------------------- */

View file

@ -1,7 +1,7 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
DESCRIPTION="Ncrack is a high-speed network authentication cracking tool"
HOMEPAGE="https://nmap.org/ncrack/"
@ -15,7 +15,9 @@ IUSE=""
RDEPEND="dev-libs/openssl"
DEPEND="${RDEPEND}"
PATCHES=( "$FILESDIR/0.7-ldflags.patch" )
PATCHES=( "${FILESDIR}/0.7-ldflags.patch"
"${FILESDIR}/fix-gcc-10-build.patch"
)
src_install() {
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" STRIP=true install