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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5B31E158020 for ; Thu, 24 Nov 2022 08:40:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85A45E0718; Thu, 24 Nov 2022 08:40:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6B834E0718 for ; Thu, 24 Nov 2022 08:40:51 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8035B340F81 for ; Thu, 24 Nov 2022 08:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DB6F5755 for ; Thu, 24 Nov 2022 08:40:48 +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: <1669279225.c3d3a026966dbb4245543951ab61f7db413bf8ed.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/tcpreplay/, net-analyzer/tcpreplay/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/tcpreplay/files/tcpreplay-4.4.2-configure-clang16.patch net-analyzer/tcpreplay/tcpreplay-4.4.2-r1.ebuild net-analyzer/tcpreplay/tcpreplay-4.4.2.ebuild X-VCS-Directories: net-analyzer/tcpreplay/ net-analyzer/tcpreplay/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: c3d3a026966dbb4245543951ab61f7db413bf8ed X-VCS-Branch: master Date: Thu, 24 Nov 2022 08:40:48 +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: 4f0c06a9-4768-4bdb-b4d0-3bddfd7c84ea X-Archives-Hash: 6381760b038ecc2d1c3f70c728876e8b commit: c3d3a026966dbb4245543951ab61f7db413bf8ed Author: Sam James gentoo org> AuthorDate: Thu Nov 24 08:40:25 2022 +0000 Commit: Sam James gentoo org> CommitDate: Thu Nov 24 08:40:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3d3a026 net-analyzer/tcpreplay: fix configure w/ clang 16 Signed-off-by: Sam James gentoo.org> .../files/tcpreplay-4.4.2-configure-clang16.patch | 60 ++++++++++++++++++++++ ...play-4.4.2.ebuild => tcpreplay-4.4.2-r1.ebuild} | 1 + 2 files changed, 61 insertions(+) diff --git a/net-analyzer/tcpreplay/files/tcpreplay-4.4.2-configure-clang16.patch b/net-analyzer/tcpreplay/files/tcpreplay-4.4.2-configure-clang16.patch new file mode 100644 index 000000000000..81a5a0086958 --- /dev/null +++ b/net-analyzer/tcpreplay/files/tcpreplay-4.4.2-configure-clang16.patch @@ -0,0 +1,60 @@ +https://github.com/appneta/tcpreplay/pull/757 + +From 096197e584ebb7d646eef75e5a8654f7192a0af2 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Thu, 24 Nov 2022 07:30:28 +0100 +Subject: [PATCH] configure.ac: Avoid implicit int, implicit function + declarations + +Do not call exit without declaring it. Add #include +for fork. Add missing int type to the definition of main. + +Implicit ints and implicit function declarations were removed from +C in 1999 and will not be supported by future compilers. +--- a/configure.ac ++++ b/configure.ac +@@ -1681,8 +1681,8 @@ int + main (int argc, char *argv[]) + { + if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0) +- exit(0); +- exit(1); ++ return 0; ++ return 1; + } ]])],[libpcapnav_ver=yes + AC_MSG_RESULT(>= 0.4)],[libpcapnav_ver=no + AC_MSG_RESULT(< 0.4)],[libpcapnav_ver=no +@@ -1726,26 +1726,27 @@ case "$host_os" in + #include + #include + #include ++ #include + unsigned char a[[5]] = { 1, 2, 3, 4, 5 }; +- main() { ++ int main() { + unsigned int i; + pid_t pid; + int status; + /* avoid "core dumped" message */ + pid = fork(); + if (pid < 0) +- exit(2); ++ return 2; + if (pid > 0) { + /* parent */ + pid = waitpid(pid, &status, 0); + if (pid < 0) +- exit(3); +- exit(!WIFEXITED(status)); ++ return 3; ++ return !WIFEXITED(status); + } + /* child */ + i = *(unsigned int *)&a[[1]]; + printf("%d\n", i); +- exit(0); ++ return 0; + } + EOF + ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \ + diff --git a/net-analyzer/tcpreplay/tcpreplay-4.4.2.ebuild b/net-analyzer/tcpreplay/tcpreplay-4.4.2-r1.ebuild similarity index 97% rename from net-analyzer/tcpreplay/tcpreplay-4.4.2.ebuild rename to net-analyzer/tcpreplay/tcpreplay-4.4.2-r1.ebuild index aebdcc9142d9..2cc1e8f862c3 100644 --- a/net-analyzer/tcpreplay/tcpreplay-4.4.2.ebuild +++ b/net-analyzer/tcpreplay/tcpreplay-4.4.2-r1.ebuild @@ -39,6 +39,7 @@ DOCS=( docs/{CHANGELOG,CREDIT,HACKING,TODO} ) PATCHES=( "${FILESDIR}"/${PN}-4.3.0-enable-pcap_findalldevs.patch + "${FILESDIR}"/${PN}-4.4.2-configure-clang16.patch ) src_prepare() {