From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B96C0158010 for ; Wed, 4 Jan 2023 04:32:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C90CFE0839; Wed, 4 Jan 2023 04:32:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B1A17E0839 for ; Wed, 4 Jan 2023 04:32:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03A5A340E7E for ; Wed, 4 Jan 2023 04:32:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19CAF804 for ; Wed, 4 Jan 2023 04:32:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1672806718.3f5e3993257185ecc33c3aca82a20a8f71997668.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/ngrep/files/, net-analyzer/ngrep/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/ngrep/files/ngrep-1.47-clang16.patch net-analyzer/ngrep/ngrep-1.47-r1.ebuild net-analyzer/ngrep/ngrep-1.47-r2.ebuild X-VCS-Directories: net-analyzer/ngrep/files/ net-analyzer/ngrep/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3f5e3993257185ecc33c3aca82a20a8f71997668 X-VCS-Branch: master Date: Wed, 4 Jan 2023 04:32:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7ced6046-a495-4761-b4b1-4d81233ef739 X-Archives-Hash: d64c7f020b411e5b01bb7d7bc0f95c4c commit: 3f5e3993257185ecc33c3aca82a20a8f71997668 Author: Sam James gentoo org> AuthorDate: Wed Jan 4 04:04:34 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jan 4 04:31:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f5e3993 net-analyzer/ngrep: fix build w/ clang 16 Signed-off-by: Sam James gentoo.org> net-analyzer/ngrep/files/ngrep-1.47-clang16.patch | 30 ++++++++++++++++++++++ .../{ngrep-1.47-r1.ebuild => ngrep-1.47-r2.ebuild} | 12 ++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/net-analyzer/ngrep/files/ngrep-1.47-clang16.patch b/net-analyzer/ngrep/files/ngrep-1.47-clang16.patch new file mode 100644 index 000000000000..eb3758e8db2b --- /dev/null +++ b/net-analyzer/ngrep/files/ngrep-1.47-clang16.patch @@ -0,0 +1,30 @@ +https://github.com/jpr5/ngrep/pull/28 + +From 52515bae377f221b5473d9040f5f43ab1c672672 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Mon, 19 Dec 2022 11:49:06 +0100 +Subject: [PATCH] Include and "tcpkill.h" to avoid implicit function + declarations + +Implicit function declarations are a historic language feature that +were removed from C in 1999. +--- a/ngrep.c ++++ b/ngrep.c +@@ -98,6 +98,7 @@ + #endif + + #include "ngrep.h" ++#include "tcpkill.h" + + + /* +--- a/tcpkill.c ++++ b/tcpkill.c +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + diff --git a/net-analyzer/ngrep/ngrep-1.47-r1.ebuild b/net-analyzer/ngrep/ngrep-1.47-r2.ebuild similarity index 79% rename from net-analyzer/ngrep/ngrep-1.47-r1.ebuild rename to net-analyzer/ngrep/ngrep-1.47-r2.ebuild index 4dbf881dcf41..ccfd27b71f07 100644 --- a/net-analyzer/ngrep/ngrep-1.47-r1.ebuild +++ b/net-analyzer/ngrep/ngrep-1.47-r2.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit autotools @@ -26,10 +26,16 @@ RDEPEND=" acct-user/ngrep " -PATCHES=( "${FILESDIR}"/${PN}-1.47-regex.patch ) +PATCHES=( + "${FILESDIR}"/${PN}-1.47-regex.patch + "${FILESDIR}"/${PN}-1.47-clang16.patch +) src_prepare() { default + + sed -i -e "s:configure.in:configure.ac:" regex*/{configure.in,Makefile.in} || die + eautoreconf }