diff options
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2/0001-include-libnetlink.h-add-missing-include-for-htobe64.patch | 6 | ||||
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2/0001-ip-rearrange-and-prune-header-files.patch | 90 | ||||
-rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2_6.13.0.bb (renamed from meta/recipes-connectivity/iproute2/iproute2_6.12.0.bb) | 3 |
3 files changed, 4 insertions, 95 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2/0001-include-libnetlink.h-add-missing-include-for-htobe64.patch b/meta/recipes-connectivity/iproute2/iproute2/0001-include-libnetlink.h-add-missing-include-for-htobe64.patch index 03af400ecd..f1746c5096 100644 --- a/meta/recipes-connectivity/iproute2/iproute2/0001-include-libnetlink.h-add-missing-include-for-htobe64.patch +++ b/meta/recipes-connectivity/iproute2/iproute2/0001-include-libnetlink.h-add-missing-include-for-htobe64.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4dc0613e229f6b4a57beb00dde14ef319a2dcad8 Mon Sep 17 00:00:00 2001 | 1 | From 5b3a2008631c7ab09252335fad42c2d347b7691d Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
3 | Date: Sat, 24 Aug 2024 15:32:25 +0200 | 3 | Date: Sat, 24 Aug 2024 15:32:25 +0200 |
4 | Subject: [PATCH] include/libnetlink.h: add missing include for htobe64 | 4 | Subject: [PATCH] include/libnetlink.h: add missing include for htobe64 |
@@ -11,10 +11,10 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de> | |||
11 | 1 file changed, 1 insertion(+) | 11 | 1 file changed, 1 insertion(+) |
12 | 12 | ||
13 | diff --git a/include/libnetlink.h b/include/libnetlink.h | 13 | diff --git a/include/libnetlink.h b/include/libnetlink.h |
14 | index 30f0c2d..77e8181 100644 | 14 | index 7074e91..3dbfa42 100644 |
15 | --- a/include/libnetlink.h | 15 | --- a/include/libnetlink.h |
16 | +++ b/include/libnetlink.h | 16 | +++ b/include/libnetlink.h |
17 | @@ -12,6 +12,7 @@ | 17 | @@ -13,6 +13,7 @@ |
18 | #include <linux/neighbour.h> | 18 | #include <linux/neighbour.h> |
19 | #include <linux/netconf.h> | 19 | #include <linux/netconf.h> |
20 | #include <arpa/inet.h> | 20 | #include <arpa/inet.h> |
diff --git a/meta/recipes-connectivity/iproute2/iproute2/0001-ip-rearrange-and-prune-header-files.patch b/meta/recipes-connectivity/iproute2/iproute2/0001-ip-rearrange-and-prune-header-files.patch deleted file mode 100644 index 2f77910614..0000000000 --- a/meta/recipes-connectivity/iproute2/iproute2/0001-ip-rearrange-and-prune-header-files.patch +++ /dev/null | |||
@@ -1,90 +0,0 @@ | |||
1 | From 714291a63246cb3e6b86eb2a78fa84216d768a4b Mon Sep 17 00:00:00 2001 | ||
2 | From: Stephen Hemminger <stephen@networkplumber.org> | ||
3 | Date: Tue, 10 Dec 2024 13:38:08 -0800 | ||
4 | Subject: [PATCH] ip: rearrange and prune header files | ||
5 | |||
6 | The recent report of issues with missing limits.h impacting musl | ||
7 | suggested looking at what files are and are not included in ip code. | ||
8 | |||
9 | The standard practice is to put standard headers first, then system, | ||
10 | then local headers. Used iwyu to get suggestions about missing | ||
11 | and extraneous headers. | ||
12 | |||
13 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=7e23da91fca6e5dedeb32a7d308cf20982e897c3] | ||
14 | Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> | ||
15 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
16 | --- | ||
17 | ip/iplink.c | 13 +++++-------- | ||
18 | ip/ipnetns.c | 19 +++++++++---------- | ||
19 | 2 files changed, 14 insertions(+), 18 deletions(-) | ||
20 | |||
21 | diff --git a/ip/iplink.c b/ip/iplink.c | ||
22 | index e650a5c2..8df367ed 100644 | ||
23 | --- a/ip/iplink.c | ||
24 | +++ b/ip/iplink.c | ||
25 | @@ -11,17 +11,14 @@ | ||
26 | #include <fcntl.h> | ||
27 | #include <dlfcn.h> | ||
28 | #include <errno.h> | ||
29 | +#include <string.h> | ||
30 | +#include <strings.h> | ||
31 | +#include <limits.h> | ||
32 | + | ||
33 | #include <sys/socket.h> | ||
34 | +#include <arpa/inet.h> | ||
35 | #include <linux/if.h> | ||
36 | -#include <linux/if_packet.h> | ||
37 | #include <linux/if_ether.h> | ||
38 | -#include <linux/sockios.h> | ||
39 | -#include <netinet/in.h> | ||
40 | -#include <arpa/inet.h> | ||
41 | -#include <string.h> | ||
42 | -#include <sys/ioctl.h> | ||
43 | -#include <stdbool.h> | ||
44 | -#include <linux/mpls.h> | ||
45 | |||
46 | #include "rt_names.h" | ||
47 | #include "utils.h" | ||
48 | diff --git a/ip/ipnetns.c b/ip/ipnetns.c | ||
49 | index 5c943400..a20cd8bc 100644 | ||
50 | --- a/ip/ipnetns.c | ||
51 | +++ b/ip/ipnetns.c | ||
52 | @@ -1,21 +1,21 @@ | ||
53 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
54 | #define _ATFILE_SOURCE | ||
55 | -#include <sys/file.h> | ||
56 | -#include <sys/types.h> | ||
57 | -#include <sys/stat.h> | ||
58 | -#include <sys/wait.h> | ||
59 | -#include <sys/inotify.h> | ||
60 | -#include <sys/mount.h> | ||
61 | -#include <sys/syscall.h> | ||
62 | + | ||
63 | #include <stdio.h> | ||
64 | +#include <stdint.h> | ||
65 | #include <string.h> | ||
66 | -#include <sched.h> | ||
67 | #include <fcntl.h> | ||
68 | #include <dirent.h> | ||
69 | #include <errno.h> | ||
70 | #include <unistd.h> | ||
71 | #include <ctype.h> | ||
72 | -#include <linux/limits.h> | ||
73 | +#include <limits.h> | ||
74 | + | ||
75 | +#include <sys/file.h> | ||
76 | +#include <sys/types.h> | ||
77 | +#include <sys/stat.h> | ||
78 | +#include <sys/inotify.h> | ||
79 | +#include <sys/mount.h> | ||
80 | |||
81 | #include <linux/net_namespace.h> | ||
82 | |||
83 | @@ -23,7 +23,6 @@ | ||
84 | #include "list.h" | ||
85 | #include "ip_common.h" | ||
86 | #include "namespace.h" | ||
87 | -#include "json_print.h" | ||
88 | |||
89 | static int usage(void) | ||
90 | { | ||
diff --git a/meta/recipes-connectivity/iproute2/iproute2_6.12.0.bb b/meta/recipes-connectivity/iproute2/iproute2_6.13.0.bb index 741d54799d..f2ed381132 100644 --- a/meta/recipes-connectivity/iproute2/iproute2_6.12.0.bb +++ b/meta/recipes-connectivity/iproute2/iproute2_6.13.0.bb | |||
@@ -13,10 +13,9 @@ DEPENDS = "flex-native bison-native iptables libcap" | |||
13 | 13 | ||
14 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \ | 14 | SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \ |
15 | file://0001-include-libnetlink.h-add-missing-include-for-htobe64.patch \ | 15 | file://0001-include-libnetlink.h-add-missing-include-for-htobe64.patch \ |
16 | file://0001-ip-rearrange-and-prune-header-files.patch \ | ||
17 | " | 16 | " |
18 | 17 | ||
19 | SRC_URI[sha256sum] = "bbd141ef7b5d0127cc2152843ba61f274dc32814fa3e0f13e7d07a080bef53d9" | 18 | SRC_URI[sha256sum] = "a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819" |
20 | 19 | ||
21 | inherit update-alternatives bash-completion pkgconfig | 20 | inherit update-alternatives bash-completion pkgconfig |
22 | 21 | ||