commit: 938426f3571cf223870bc6f8d26f1259bca4c84d Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Fri Oct 21 11:53:34 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Fri Oct 21 12:47:04 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=938426f3
net-analyzer/pathload: improve clang16/c2x fixes Did not need much more to drop gnu89, and this could potentially have caused issues with clang16 either way. Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> .../pathload/files/pathload-1.3.2-clang16.patch | 24 ++++++++++++++++++++++ net-analyzer/pathload/pathload-1.3.2-r1.ebuild | 3 +-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch b/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch index 9cce41e48417..479aaeec520e 100644 --- a/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch +++ b/net-analyzer/pathload/files/pathload-1.3.2-clang16.patch @@ -8,3 +8,27 @@ https://bugs.gentoo.org/870661 -main(){return(0);} +int main(void){return(0);} EOF +--- a/pathload_rcv.h ++++ b/pathload_rcv.h +@@ -85,3 +85,3 @@ + EXTERN l_int32 get_sndr_time_interval(double snd_time[],double *sum); +-EXTERN void sig_alrm(); ++EXTERN void sig_alrm(int __attribute__((__unused__)) unused); + EXTERN void terminate_gracefully(struct timeval exp_start_time); +@@ -100,3 +100,3 @@ + EXTERN void help(); +-EXTERN void sig_sigusr1() ; ++EXTERN void sig_sigusr1(int __attribute__((__unused__)) unused) ; + +--- a/pathload_rcv_func.c ++++ b/pathload_rcv_func.c +@@ -669,3 +669,3 @@ + +-void sig_sigusr1() ++void sig_sigusr1(int __attribute__((__unused__)) unused) + { +@@ -674,3 +674,3 @@ + +-void sig_alrm() ++void sig_alrm(int __attribute__((__unused__)) unused) + { diff --git a/net-analyzer/pathload/pathload-1.3.2-r1.ebuild b/net-analyzer/pathload/pathload-1.3.2-r1.ebuild index c2fbec052f5d..b8e220379490 100644 --- a/net-analyzer/pathload/pathload-1.3.2-r1.ebuild +++ b/net-analyzer/pathload/pathload-1.3.2-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic toolchain-funcs +inherit toolchain-funcs DESCRIPTION="Non-intrusive utility for estimation of available bandwidth of Internet paths" HOMEPAGE="https://www.cc.gatech.edu/fac/constantinos.dovrolis/bw-est/pathload.html" @@ -21,7 +21,6 @@ PATCHES=( src_configure() { tc-export CC - append-cflags -std=gnu89 # old codebase, incompatible with c2x default }