diff options
| -rw-r--r-- | meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch | 46 | ||||
| -rw-r--r-- | meta-networking/recipes-support/iftop/iftop_1.0pre4.bb | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch b/meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch new file mode 100644 index 0000000000..73540e18c6 --- /dev/null +++ b/meta-networking/recipes-support/iftop/iftop/0001-cfgfile-fix-build-with-gcc-15.patch | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | From e579fbe1f73dc89e2bf81a5b6c949f8ae24f93b2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <martin.jansa@gmail.com> | ||
| 3 | Date: Fri, 21 Mar 2025 09:31:05 +0000 | ||
| 4 | Subject: [PATCH] cfgfile: fix build with gcc-15 | ||
| 5 | |||
| 6 | * fix read_config declaration to match | ||
| 7 | |||
| 8 | cfgfile.c:247:5: error: conflicting types for 'read_config'; have 'int(char *, int)' | ||
| 9 | 247 | int read_config(char *file, int whinge_on_error) { | ||
| 10 | | ^~~~~~~~~~~ | ||
| 11 | In file included from cfgfile.c:16: | ||
| 12 | cfgfile.h:16:5: note: previous declaration of 'read_config' with type 'int(void)' | ||
| 13 | 16 | int read_config(); | ||
| 14 | | ^~~~~~~~~~~ | ||
| 15 | make[2]: *** [Makefile:566: cfgfile.o] Error 1 | ||
| 16 | make[2]: *** Waiting for unfinished jobs.... | ||
| 17 | iftop.c: In function 'main': | ||
| 18 | iftop.c:803:5: error: too many arguments to function 'read_config'; expected 0, have 2 | ||
| 19 | 803 | read_config(options.config_file, options.config_file_specified); | ||
| 20 | | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ | ||
| 21 | In file included from iftop.c:50: | ||
| 22 | cfgfile.h:16:5: note: declared here | ||
| 23 | 16 | int read_config(); | ||
| 24 | | ^~~~~~~~~~~ | ||
| 25 | |||
| 26 | Upstream-Status: Pending [last pre release was over 10 years ago and https://code.blinkace.com/pdw/iftop has last commit from 4 years ago] | ||
| 27 | |||
| 28 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
| 29 | --- | ||
| 30 | |||
| 31 | cfgfile.h | 2 +- | ||
| 32 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 33 | |||
| 34 | diff --git a/cfgfile.h b/cfgfile.h | ||
| 35 | index 11ba475..a331b75 100644 | ||
| 36 | --- a/cfgfile.h | ||
| 37 | +++ b/cfgfile.h | ||
| 38 | @@ -13,7 +13,7 @@ typedef struct { | ||
| 39 | int value; | ||
| 40 | } config_enumeration_type; | ||
| 41 | |||
| 42 | -int read_config(); | ||
| 43 | +int read_config(char *file, int whinge_on_error); | ||
| 44 | |||
| 45 | char *config_get_string(const char *directive); | ||
| 46 | int config_get_bool(const char *directive); | ||
diff --git a/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb b/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb index 517d781281..4d9fea58e0 100644 --- a/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb +++ b/meta-networking/recipes-support/iftop/iftop_1.0pre4.bb | |||
| @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=76498170798db0f4f0fb685a225f702f" | |||
| 8 | 8 | ||
| 9 | SRC_URI = "http://www.ex-parrot.com/pdw/iftop/download/iftop-${PV}.tar.gz \ | 9 | SRC_URI = "http://www.ex-parrot.com/pdw/iftop/download/iftop-${PV}.tar.gz \ |
| 10 | file://iftop-1.0-gcc10.patch \ | 10 | file://iftop-1.0-gcc10.patch \ |
| 11 | file://0001-cfgfile-fix-build-with-gcc-15.patch \ | ||
| 11 | " | 12 | " |
| 12 | SRC_URI[md5sum] = "7e6decb4958e8a4890cccac335239f24" | 13 | SRC_URI[md5sum] = "7e6decb4958e8a4890cccac335239f24" |
| 13 | SRC_URI[sha256sum] = "f733eeea371a7577f8fe353d86dd88d16f5b2a2e702bd96f5ffb2c197d9b4f97" | 14 | SRC_URI[sha256sum] = "f733eeea371a7577f8fe353d86dd88d16f5b2a2e702bd96f5ffb2c197d9b4f97" |
