commit: f0e9588b28865d43e7ff292a405d49c02c79f242 Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Sun Dec 21 06:29:15 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Dec 22 11:30:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0e9588b
net-analyzer/iftop: use upstream-patch for c23 update HOMEPAGE/SRC_URI: redirect Bug: https://bugs.gentoo.org/944909 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/45114 Closes: https://github.com/gentoo/gentoo/pull/45114 Signed-off-by: Sam James <sam <AT> gentoo.org> net-analyzer/iftop/files/iftop-1.0_pre4-fix_c23.patch | 13 +++++++++++++ net-analyzer/iftop/iftop-1.0_pre4-r5.ebuild | 10 ++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/net-analyzer/iftop/files/iftop-1.0_pre4-fix_c23.patch b/net-analyzer/iftop/files/iftop-1.0_pre4-fix_c23.patch new file mode 100644 index 000000000000..464f0c3c275f --- /dev/null +++ b/net-analyzer/iftop/files/iftop-1.0_pre4-fix_c23.patch @@ -0,0 +1,13 @@ +fix c23 unprototyped function, patch from upstream +https://code.blinkace.com/pdw/iftop/-/commit/67b685c8442528bb30485f6efa212f599ef19baf.patch +--- a/cfgfile.h ++++ b/cfgfile.h +@@ -13,7 +13,7 @@ typedef struct { + int value; + } config_enumeration_type; + +-int read_config(); ++int read_config(char *file, int whinge_on_error); + + char *config_get_string(const char *directive); + int config_get_bool(const char *directive); diff --git a/net-analyzer/iftop/iftop-1.0_pre4-r5.ebuild b/net-analyzer/iftop/iftop-1.0_pre4-r5.ebuild index f860ce3ced6c..b82f4f787b4c 100644 --- a/net-analyzer/iftop/iftop-1.0_pre4-r5.ebuild +++ b/net-analyzer/iftop/iftop-1.0_pre4-r5.ebuild @@ -3,11 +3,11 @@ EAPI=8 -inherit autotools flag-o-matic +inherit autotools DESCRIPTION="Display bandwidth usage on an interface" -HOMEPAGE="https://www.ex-parrot.com/pdw/iftop/ https://code.blinkace.com/pdw/iftop" -SRC_URI="https://www.ex-parrot.com/pdw/iftop/download/${P/_/}.tar.gz" +HOMEPAGE="https://pdw.ex-parrot.com/iftop/ https://code.blinkace.com/pdw/iftop" +SRC_URI="https://pdw.ex-parrot.com/iftop/download/${P/_/}.tar.gz" S="${WORKDIR}"/${P/_/} LICENSE="GPL-2" @@ -33,14 +33,12 @@ PATCHES=( "${FILESDIR}"/${PN}-1.0_pre4-fix-MAC-formatting.patch "${FILESDIR}"/${PN}-1.0_pre4-fno-common.patch "${FILESDIR}"/${PN}-1.0_pre4-allow-scales-beyond-1gbps.patch + "${FILESDIR}"/${PN}-1.0_pre4-fix_c23.patch ) src_prepare() { default - #bug 944029 - append-cflags -std=gnu17 - eautoreconf }
