|
| 1 | +From b9a8e3a8a3db5d66c712ff36957971fdc0d4cf2a Mon Sep 17 00:00:00 2001 |
| 2 | +From: Nick Hainke < [email protected]> |
| 3 | +Date: Wed, 19 Jul 2023 09:22:48 +0200 |
| 4 | +Subject: [PATCH] iproute2: update to 6.7.0 |
| 5 | + |
| 6 | +--- |
| 7 | + package/network/utils/iproute2/Makefile | 4 ++-- |
| 8 | + .../utils/iproute2/patches/100-configure.patch | 12 ------------ |
| 9 | + .../iproute2/patches/115-add-config-xtlibdir.patch | 2 +- |
| 10 | + .../patches/130-no_netem_tipc_dcb_man_vdpa.patch | 2 +- |
| 11 | + .../iproute2/patches/140-keep_libmnl_optional.patch | 2 +- |
| 12 | + .../iproute2/patches/145-keep_libelf_optional.patch | 2 +- |
| 13 | + .../iproute2/patches/150-keep_libcap_optional.patch | 2 +- |
| 14 | + .../iproute2/patches/155-keep_tirpc_optional.patch | 2 +- |
| 15 | + .../iproute2/patches/175-reduce-dynamic-syms.patch | 12 ++++++------ |
| 16 | + .../iproute2/patches/190-fix-nls-rpath-link.patch | 4 ++-- |
| 17 | + .../iproute2/patches/195-build_variant_ip_tc.patch | 2 +- |
| 18 | + .../patches/200-drop_libbsd_dependency.patch | 6 +++--- |
| 19 | + .../iproute2/patches/300-selinux-configurable.patch | 2 +- |
| 20 | + 13 files changed, 21 insertions(+), 33 deletions(-) |
| 21 | + delete mode 100644 package/network/utils/iproute2/patches/100-configure.patch |
| 22 | + |
| 23 | +diff --git a/package/network/utils/iproute2/Makefile b/package/network/utils/iproute2/Makefile |
| 24 | +index 101ca67324..2f9d2f2bc9 100644 |
| 25 | +--- a/package/network/utils/iproute2/Makefile |
| 26 | ++++ b/package/network/utils/iproute2/Makefile |
| 27 | +@@ -8,12 +8,12 @@ |
| 28 | + include $(TOPDIR)/rules.mk |
| 29 | + |
| 30 | + PKG_NAME:=iproute2 |
| 31 | +-PKG_VERSION:=6.3.0 |
| 32 | ++PKG_VERSION:=6.7.0 |
| 33 | + PKG_RELEASE:=1 |
| 34 | + |
| 35 | + PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
| 36 | + PKG_SOURCE_URL:=@KERNEL/linux/utils/net/iproute2 |
| 37 | +-PKG_HASH:=dfb2a98db96e7a653cffc6693335a1a466e29a34b6ac528be48f35e1d2766732 |
| 38 | ++PKG_HASH:=ff942dd9828d7d1f867f61fe72ce433078c31e5d8e4a78e20f02cb5892e8841d |
| 39 | + PKG_BUILD_PARALLEL:=1 |
| 40 | + PKG_BUILD_DEPENDS:=iptables |
| 41 | + PKG_LICENSE:=GPL-2.0 |
| 42 | +diff --git a/package/network/utils/iproute2/patches/100-configure.patch b/package/network/utils/iproute2/patches/100-configure.patch |
| 43 | +deleted file mode 100644 |
| 44 | +index 2d4fb7b9b3..0000000000 |
| 45 | +--- a/package/network/utils/iproute2/patches/100-configure.patch |
| 46 | ++++ /dev/null |
| 47 | +@@ -1,12 +0,0 @@ |
| 48 | +---- a/configure |
| 49 | +-+++ b/configure |
| 50 | +-@@ -36,7 +36,8 @@ int main(int argc, char **argv) { |
| 51 | +- } |
| 52 | +- EOF |
| 53 | +- |
| 54 | +-- if $CC -I$INCLUDE -o $TMPDIR/atmtest $TMPDIR/atmtest.c -latm >/dev/null 2>&1; then |
| 55 | +-+# OpenWrt: disable ATM support even if present on host system |
| 56 | +-+ if [ 1 -eq 0 ]; then |
| 57 | +- echo "TC_CONFIG_ATM:=y" >>$CONFIG |
| 58 | +- echo yes |
| 59 | +- else |
| 60 | +diff --git a/package/network/utils/iproute2/patches/115-add-config-xtlibdir.patch b/package/network/utils/iproute2/patches/115-add-config-xtlibdir.patch |
| 61 | +index 03df7809f7..c32863c364 100644 |
| 62 | +--- a/package/network/utils/iproute2/patches/115-add-config-xtlibdir.patch |
| 63 | ++++ b/package/network/utils/iproute2/patches/115-add-config-xtlibdir.patch |
| 64 | +@@ -1,6 +1,6 @@ |
| 65 | + --- a/tc/Makefile |
| 66 | + +++ b/tc/Makefile |
| 67 | +-@@ -127,6 +127,9 @@ CFLAGS += -DCONFIG_GACT -DCONFIG_GACT_PR |
| 68 | ++@@ -119,6 +119,9 @@ CFLAGS += -DCONFIG_GACT -DCONFIG_GACT_PR |
| 69 | + ifneq ($(IPT_LIB_DIR),) |
| 70 | + CFLAGS += -DIPT_LIB_DIR=\"$(IPT_LIB_DIR)\" |
| 71 | + endif |
| 72 | +diff --git a/package/network/utils/iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch b/package/network/utils/iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch |
| 73 | +index 2a3f9eb90f..8c70c14489 100644 |
| 74 | +--- a/package/network/utils/iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch |
| 75 | ++++ b/package/network/utils/iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch |
| 76 | +@@ -1,6 +1,6 @@ |
| 77 | + --- a/Makefile |
| 78 | + +++ b/Makefile |
| 79 | +-@@ -65,9 +65,9 @@ WFLAGS += -Wmissing-declarations -Wold-s |
| 80 | ++@@ -68,9 +68,9 @@ WFLAGS += -Wmissing-declarations -Wold-s |
| 81 | + CFLAGS := $(WFLAGS) $(CCOPTS) -I../include -I../include/uapi $(DEFINES) $(CFLAGS) |
| 82 | + YACCFLAGS = -d -t -v |
| 83 | + |
| 84 | +diff --git a/package/network/utils/iproute2/patches/140-keep_libmnl_optional.patch b/package/network/utils/iproute2/patches/140-keep_libmnl_optional.patch |
| 85 | +index a8cdd103ba..0d22875751 100644 |
| 86 | +--- a/package/network/utils/iproute2/patches/140-keep_libmnl_optional.patch |
| 87 | ++++ b/package/network/utils/iproute2/patches/140-keep_libmnl_optional.patch |
| 88 | +@@ -1,6 +1,6 @@ |
| 89 | + --- a/configure |
| 90 | + +++ b/configure |
| 91 | +-@@ -411,7 +411,7 @@ check_tirpc() |
| 92 | ++@@ -391,7 +391,7 @@ check_tirpc() |
| 93 | + |
| 94 | + check_mnl() |
| 95 | + { |
| 96 | +diff --git a/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch b/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch |
| 97 | +index 0c5c3f59ed..bffacddb21 100644 |
| 98 | +--- a/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch |
| 99 | ++++ b/package/network/utils/iproute2/patches/145-keep_libelf_optional.patch |
| 100 | +@@ -1,6 +1,6 @@ |
| 101 | + --- a/configure |
| 102 | + +++ b/configure |
| 103 | +-@@ -266,7 +266,7 @@ EOF |
| 104 | ++@@ -246,7 +246,7 @@ EOF |
| 105 | + |
| 106 | + check_elf() |
| 107 | + { |
| 108 | +diff --git a/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch b/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch |
| 109 | +index 4cce2c3ca6..570e9c7038 100644 |
| 110 | +--- a/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch |
| 111 | ++++ b/package/network/utils/iproute2/patches/150-keep_libcap_optional.patch |
| 112 | +@@ -1,6 +1,6 @@ |
| 113 | + --- a/configure |
| 114 | + +++ b/configure |
| 115 | +-@@ -469,7 +469,7 @@ EOF |
| 116 | ++@@ -449,7 +449,7 @@ EOF |
| 117 | + |
| 118 | + check_cap() |
| 119 | + { |
| 120 | +diff --git a/package/network/utils/iproute2/patches/155-keep_tirpc_optional.patch b/package/network/utils/iproute2/patches/155-keep_tirpc_optional.patch |
| 121 | +index 28ba7e5217..4d7fb76308 100644 |
| 122 | +--- a/package/network/utils/iproute2/patches/155-keep_tirpc_optional.patch |
| 123 | ++++ b/package/network/utils/iproute2/patches/155-keep_tirpc_optional.patch |
| 124 | +@@ -1,6 +1,6 @@ |
| 125 | + --- a/configure |
| 126 | + +++ b/configure |
| 127 | +-@@ -398,7 +398,7 @@ check_selinux() |
| 128 | ++@@ -378,7 +378,7 @@ check_selinux() |
| 129 | + |
| 130 | + check_tirpc() |
| 131 | + { |
| 132 | +diff --git a/package/network/utils/iproute2/patches/175-reduce-dynamic-syms.patch b/package/network/utils/iproute2/patches/175-reduce-dynamic-syms.patch |
| 133 | +index d0914848d5..aef51395a9 100644 |
| 134 | +--- a/package/network/utils/iproute2/patches/175-reduce-dynamic-syms.patch |
| 135 | ++++ b/package/network/utils/iproute2/patches/175-reduce-dynamic-syms.patch |
| 136 | +@@ -1,6 +1,6 @@ |
| 137 | + --- a/tc/Makefile |
| 138 | + +++ b/tc/Makefile |
| 139 | +-@@ -113,7 +113,7 @@ LDLIBS += -L. -lm |
| 140 | ++@@ -106,7 +106,7 @@ LDLIBS += -L. -lm |
| 141 | + |
| 142 | + ifeq ($(SHARED_LIBS),y) |
| 143 | + LDLIBS += -ldl |
| 144 | +@@ -9,7 +9,7 @@ |
| 145 | + endif |
| 146 | + |
| 147 | + TCLIB := tc_core.o |
| 148 | +-@@ -143,7 +143,7 @@ MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc |
| 149 | ++@@ -135,7 +135,7 @@ MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc |
| 150 | + all: tc $(TCSO) |
| 151 | + |
| 152 | + tc: $(TCOBJ) $(LIBNETLINK) libtc.a |
| 153 | +@@ -18,15 +18,15 @@ |
| 154 | + |
| 155 | + libtc.a: $(TCLIB) |
| 156 | + $(QUIET_AR)$(AR) rcs $@ $^ |
| 157 | +-@@ -165,6 +165,7 @@ install: all |
| 158 | ++@@ -157,6 +157,7 @@ install: all |
| 159 | + clean: |
| 160 | + rm -f $(TCOBJ) $(TCLIB) libtc.a tc *.so emp_ematch.tab.h; \ |
| 161 | + rm -f emp_ematch.tab.* |
| 162 | + + rm -f dynsyms.list |
| 163 | + |
| 164 | +- q_atm.so: q_atm.c |
| 165 | +- $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fpic -o q_atm.so q_atm.c -latm |
| 166 | +-@@ -204,4 +205,16 @@ static-syms.h: $(wildcard *.c) |
| 167 | ++ m_xt.so: m_xt.c |
| 168 | ++ $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fpic -o m_xt.so m_xt.c $$($(PKG_CONFIG) xtables --cflags --libs) |
| 169 | ++@@ -193,4 +194,16 @@ static-syms.h: $(wildcard *.c) |
| 170 | + sed -n '/'$$s'[^ ]* =/{s:.* \([^ ]*'$$s'[^ ]*\) .*:extern char \1[] __attribute__((weak)); if (!strcmp(sym, "\1")) return \1;:;p}' $$files ; \ |
| 171 | + done > $@ |
| 172 | + |
| 173 | +diff --git a/package/network/utils/iproute2/patches/190-fix-nls-rpath-link.patch b/package/network/utils/iproute2/patches/190-fix-nls-rpath-link.patch |
| 174 | +index c7fceb2e22..765e4ad2e8 100644 |
| 175 | +--- a/package/network/utils/iproute2/patches/190-fix-nls-rpath-link.patch |
| 176 | ++++ b/package/network/utils/iproute2/patches/190-fix-nls-rpath-link.patch |
| 177 | +@@ -1,6 +1,6 @@ |
| 178 | + --- a/configure |
| 179 | + +++ b/configure |
| 180 | +-@@ -290,7 +290,7 @@ int main(int argc, char **argv) { |
| 181 | ++@@ -270,7 +270,7 @@ int main(int argc, char **argv) { |
| 182 | + } |
| 183 | + EOF |
| 184 | + |
| 185 | +@@ -9,7 +9,7 @@ |
| 186 | + local ret=$? |
| 187 | + |
| 188 | + rm -f $TMPDIR/libbpf_test.c $TMPDIR/libbpf_test |
| 189 | +-@@ -308,7 +308,7 @@ int main(int argc, char **argv) { |
| 190 | ++@@ -288,7 +288,7 @@ int main(int argc, char **argv) { |
| 191 | + } |
| 192 | + EOF |
| 193 | + |
| 194 | +diff --git a/package/network/utils/iproute2/patches/195-build_variant_ip_tc.patch b/package/network/utils/iproute2/patches/195-build_variant_ip_tc.patch |
| 195 | +index 141763460d..8156adbf05 100644 |
| 196 | +--- a/package/network/utils/iproute2/patches/195-build_variant_ip_tc.patch |
| 197 | ++++ b/package/network/utils/iproute2/patches/195-build_variant_ip_tc.patch |
| 198 | +@@ -11,7 +11,7 @@ |
| 199 | + |
| 200 | + --- a/tc/Makefile |
| 201 | + +++ b/tc/Makefile |
| 202 | +-@@ -140,7 +140,7 @@ MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc |
| 203 | ++@@ -132,7 +132,7 @@ MODDESTDIR := $(DESTDIR)$(LIBDIR)/tc |
| 204 | + $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fpic $< -o $@ |
| 205 | + |
| 206 | + |
| 207 | +diff --git a/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch b/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch |
| 208 | +index d1948860e8..92bf5cb66d 100644 |
| 209 | +--- a/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch |
| 210 | ++++ b/package/network/utils/iproute2/patches/200-drop_libbsd_dependency.patch |
| 211 | +@@ -1,12 +1,12 @@ |
| 212 | + --- a/configure |
| 213 | + +++ b/configure |
| 214 | +-@@ -455,14 +455,8 @@ EOF |
| 215 | ++@@ -435,14 +435,8 @@ EOF |
| 216 | + if $CC -I$INCLUDE -o $TMPDIR/strtest $TMPDIR/strtest.c >/dev/null 2>&1; then |
| 217 | + echo "no" |
| 218 | + else |
| 219 | + - if ${PKG_CONFIG} libbsd --exists; then |
| 220 | +-- echo 'CFLAGS += -DHAVE_LIBBSD' `${PKG_CONFIG} libbsd --cflags` >>$CONFIG |
| 221 | +-- echo 'LDLIBS +=' `${PKG_CONFIG} libbsd --libs` >> $CONFIG |
| 222 | ++- echo 'CFLAGS += -DHAVE_LIBBSD' "$(${PKG_CONFIG} libbsd --cflags)" >>$CONFIG |
| 223 | ++- echo 'LDLIBS +=' "$(${PKG_CONFIG} libbsd --libs)" >> $CONFIG |
| 224 | + - echo "no" |
| 225 | + - else |
| 226 | + - echo 'CFLAGS += -DNEED_STRLCPY' >>$CONFIG |
| 227 | +diff --git a/package/network/utils/iproute2/patches/300-selinux-configurable.patch b/package/network/utils/iproute2/patches/300-selinux-configurable.patch |
| 228 | +index 817abf7d17..a611ba75f0 100644 |
| 229 | +--- a/package/network/utils/iproute2/patches/300-selinux-configurable.patch |
| 230 | ++++ b/package/network/utils/iproute2/patches/300-selinux-configurable.patch |
| 231 | +@@ -1,6 +1,6 @@ |
| 232 | + --- a/configure |
| 233 | + +++ b/configure |
| 234 | +-@@ -385,7 +385,7 @@ check_libbpf() |
| 235 | ++@@ -365,7 +365,7 @@ check_libbpf() |
| 236 | + check_selinux() |
| 237 | + # SELinux is a compile time option in the ss utility |
| 238 | + { |
| 239 | +-- |
| 240 | +2.45.2 |
| 241 | + |
| 242 | + |
0 commit comments