From ea3efb5230fe23da55f360953daad3c139f4e064 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Mon, 10 Jul 2023 11:21:44 +0800 Subject: [PATCH] ncrack: fix umac_ctx compilation failure, by debian patch. https://github.com/nmap/ncrack/issues/128 --- net-analyzer/ncrack/files/fix-gcc-10-build.patch | 15 +++++++++++++++ .../{ncrack-0.7.ebuild => ncrack-0.7-r1.ebuild} | 8 +++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 net-analyzer/ncrack/files/fix-gcc-10-build.patch rename net-analyzer/ncrack/{ncrack-0.7.ebuild => ncrack-0.7-r1.ebuild} (76%) diff --git a/net-analyzer/ncrack/files/fix-gcc-10-build.patch b/net-analyzer/ncrack/files/fix-gcc-10-build.patch new file mode 100644 index 000000000..3f8ee81ff --- /dev/null +++ b/net-analyzer/ncrack/files/fix-gcc-10-build.patch @@ -0,0 +1,15 @@ +Description: Fix build with gcc-10. +Author: Jürgen Hötzel +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; ++}; + + /* ---------------------------------------------------------------------- */ + diff --git a/net-analyzer/ncrack/ncrack-0.7.ebuild b/net-analyzer/ncrack/ncrack-0.7-r1.ebuild similarity index 76% rename from net-analyzer/ncrack/ncrack-0.7.ebuild rename to net-analyzer/ncrack/ncrack-0.7-r1.ebuild index ea30cd581..5c3f4b2a0 100644 --- a/net-analyzer/ncrack/ncrack-0.7.ebuild +++ b/net-analyzer/ncrack/ncrack-0.7-r1.ebuild @@ -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