From 46a4ffb29a3467a13baa2f0be28f4a8c2fad8db8 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Fri, 2 Feb 2024 22:44:57 +0100 Subject: [PATCH 1/3] alfred: update to version 2024.0 * (no changes) Signed-off-by: Sven Eckelmann --- alfred/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alfred/Makefile b/alfred/Makefile index 28067abd4..37e0318bb 100644 --- a/alfred/Makefile +++ b/alfred/Makefile @@ -3,12 +3,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=alfred -PKG_VERSION:=2023.3 +PKG_VERSION:=2024.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION) -PKG_HASH:=ad5ad4149faecf7e75302a577aaa673b1cfc9405d2024b2b4a9163bac70c8e4f +PKG_HASH:=d029a43638ab16771e5f71e134bc843d1713d74041c65bcda18a31d18f5531bd PKG_MAINTAINER:=Simon Wunderlich PKG_LICENSE:=GPL-2.0-only MIT From 3071a1f09e6f06f64a23213e5954010397b35197 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Fri, 2 Feb 2024 22:45:32 +0100 Subject: [PATCH 2/3] batctl: update to version 2024.0 * add stateless multicast packet format support * bugs squashed: - Fix various length checks in tcpdump-like subcommand Signed-off-by: Sven Eckelmann --- batctl/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batctl/Makefile b/batctl/Makefile index 30ed34975..c54231424 100644 --- a/batctl/Makefile +++ b/batctl/Makefile @@ -3,12 +3,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=batctl -PKG_VERSION:=2023.3 +PKG_VERSION:=2024.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION) -PKG_HASH:=9acc31170930c1797c38763b87bdff88054c34d1f012fbb810068273fef31212 +PKG_HASH:=76853e87201af63c411db152fd0c625a729a9733115897d1331604e2c5a67c7d PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) PKG_MAINTAINER:=Simon Wunderlich From 484edda37f7d6bf3fb35b9d66608edcf49951d8b Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Fri, 2 Feb 2024 22:46:09 +0100 Subject: [PATCH 3/3] batman-adv: update to version 2024.0 * support latest kernels (4.19 - 6.8) * coding style cleanups and refactoring * add stateless multicast packet format support Signed-off-by: Sven Eckelmann --- batman-adv/Makefile | 6 +- ...-adv-Migrate-to-linux-container_of.h.patch | 6 +- ...batman-adv-Switch-to-linux-sprintf.h.patch | 97 +++++++++++++++++++ ...man-adv-Switch-to-linux-array_size.h.patch | 69 +++++++++++++ 4 files changed, 174 insertions(+), 4 deletions(-) create mode 100644 batman-adv/patches/0003-Revert-batman-adv-Switch-to-linux-sprintf.h.patch create mode 100644 batman-adv/patches/0004-Revert-batman-adv-Switch-to-linux-array_size.h.patch diff --git a/batman-adv/Makefile b/batman-adv/Makefile index 71e98e2de..cbcf316eb 100644 --- a/batman-adv/Makefile +++ b/batman-adv/Makefile @@ -3,12 +3,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=batman-adv -PKG_VERSION:=2023.3 -PKG_RELEASE:=3 +PKG_VERSION:=2024.0 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION) -PKG_HASH:=f7c6c53e59343c162642cb9b44f1016765d4bf513e039002be612b7a6c1ea36c +PKG_HASH:=61110697b5799f646a2a82a4dcf97faed4bb12a7cc43bf4683d2c4de4f6b40e7 PKG_EXTMOD_SUBDIRS:=net/batman-adv PKG_MAINTAINER:=Simon Wunderlich diff --git a/batman-adv/patches/0001-Revert-batman-adv-Migrate-to-linux-container_of.h.patch b/batman-adv/patches/0001-Revert-batman-adv-Migrate-to-linux-container_of.h.patch index 466ce1ace..30d30d042 100644 --- a/batman-adv/patches/0001-Revert-batman-adv-Migrate-to-linux-container_of.h.patch +++ b/batman-adv/patches/0001-Revert-batman-adv-Migrate-to-linux-container_of.h.patch @@ -2,6 +2,10 @@ From: Sven Eckelmann Date: Fri, 6 May 2022 22:03:29 +0200 Subject: Revert "batman-adv: Migrate to linux/container_of.h" +The original patch requires Linux 5.16.0 or a mac80211 compat header with this +name. But the mac80211 package is currently not providing this header and +OpenWrt main is still using older Linux kernel versions for some targets. + This reverts commit 043ae5634bdfd4c4dd8b95a22890752495080bb5. --- a/compat-include/linux/container_of.h @@ -133,7 +137,7 @@ This reverts commit 043ae5634bdfd4c4dd8b95a22890752495080bb5. #include --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c -@@ -9,7 +9,6 @@ +@@ -10,7 +10,6 @@ #include #include #include diff --git a/batman-adv/patches/0003-Revert-batman-adv-Switch-to-linux-sprintf.h.patch b/batman-adv/patches/0003-Revert-batman-adv-Switch-to-linux-sprintf.h.patch new file mode 100644 index 000000000..36924335c --- /dev/null +++ b/batman-adv/patches/0003-Revert-batman-adv-Switch-to-linux-sprintf.h.patch @@ -0,0 +1,97 @@ +From: Sven Eckelmann +Date: Fri, 2 Feb 2024 22:49:00 +0100 +Subject: Revert "batman-adv: Switch to linux/sprintf.h" + +The original patch requires Linux 6.6.0 or a mac80211 compat header with this +name. But the mac80211 package is currently not providing this header and +OpenWrt main is still using older Linux kernel versions for some targets. + +This reverts commit f0fb49c5ab70dfa064f0aa8d1c5d84f65e8cbc86. + +--- a/compat-include/linux/sprintf.h ++++ /dev/null +@@ -1,20 +0,0 @@ +-/* SPDX-License-Identifier: GPL-2.0 */ +-/* Copyright (C) B.A.T.M.A.N. contributors: +- * +- * Marek Lindner, Simon Wunderlich +- * +- * This file contains macros for maintaining compatibility with older versions +- * of the Linux kernel. +- */ +- +-#ifndef _NET_BATMAN_ADV_COMPAT_LINUX_SPRINTF_H_ +-#define _NET_BATMAN_ADV_COMPAT_LINUX_SPRINTF_H_ +- +-#include +-#if LINUX_VERSION_IS_GEQ(6, 6, 0) +-#include_next +-#else +-#include +-#endif +- +-#endif /* _NET_BATMAN_ADV_COMPAT_LINUX_SPRINTF_H_ */ +--- a/net/batman-adv/bridge_loop_avoidance.c ++++ b/net/batman-adv/bridge_loop_avoidance.c +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -29,7 +30,6 @@ + #include + #include + #include +-#include + #include + #include + #include +--- a/net/batman-adv/gateway_client.c ++++ b/net/batman-adv/gateway_client.c +@@ -17,6 +17,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -27,7 +28,6 @@ + #include + #include + #include +-#include + #include + #include + #include +--- a/net/batman-adv/main.c ++++ b/net/batman-adv/main.c +@@ -32,7 +32,6 @@ + #include + #include + #include +-#include + #include + #include + #include +--- a/net/batman-adv/multicast.c ++++ b/net/batman-adv/multicast.c +@@ -24,6 +24,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -34,7 +35,6 @@ + #include + #include + #include +-#include + #include + #include + #include diff --git a/batman-adv/patches/0004-Revert-batman-adv-Switch-to-linux-array_size.h.patch b/batman-adv/patches/0004-Revert-batman-adv-Switch-to-linux-array_size.h.patch new file mode 100644 index 000000000..53c9d70f9 --- /dev/null +++ b/batman-adv/patches/0004-Revert-batman-adv-Switch-to-linux-array_size.h.patch @@ -0,0 +1,69 @@ +From: Sven Eckelmann +Date: Fri, 2 Feb 2024 22:49:48 +0100 +Subject: Revert "batman-adv: Switch to linux/array_size.h" + +The original patch requires Linux 6.7.0 or a mac80211 compat header with this +name. But the mac80211 package is currently not providing this header and +OpenWrt main is still using older Linux kernel versions for some targets. + +This reverts commit f33d7f724675544a36b24c77f8d4b95d41252ae2. + +--- a/compat-include/linux/array_size.h ++++ /dev/null +@@ -1,20 +0,0 @@ +-/* SPDX-License-Identifier: GPL-2.0 */ +-/* Copyright (C) B.A.T.M.A.N. contributors: +- * +- * Marek Lindner, Simon Wunderlich +- * +- * This file contains macros for maintaining compatibility with older versions +- * of the Linux kernel. +- */ +- +-#ifndef _NET_BATMAN_ADV_COMPAT_LINUX_ARRAY_SIZE_H_ +-#define _NET_BATMAN_ADV_COMPAT_LINUX_ARRAY_SIZE_H_ +- +-#include +-#if LINUX_VERSION_IS_GEQ(6, 7, 0) +-#include_next +-#else +-#include +-#endif +- +-#endif /* _NET_BATMAN_ADV_COMPAT_LINUX_ARRAY_SIZE_H_ */ +--- a/net/batman-adv/main.c ++++ b/net/batman-adv/main.c +@@ -6,7 +6,6 @@ + + #include "main.h" + +-#include + #include + #include + #include +@@ -20,6 +19,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/net/batman-adv/netlink.c ++++ b/net/batman-adv/netlink.c +@@ -7,7 +7,6 @@ + #include "netlink.h" + #include "main.h" + +-#include + #include + #include + #include +@@ -21,6 +20,7 @@ + #include + #include + #include ++#include + #include + #include + #include