From 7f72bec788a9206dbfc7079df4dcbdb49817d486 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 18 Jun 2026 08:42:20 +0200 Subject: [PATCH] package/net-tools: fix build with linux 7.1 Fixes build error rose.c:41:10: fatal error: linux/rose.h: No such file or directory 41 | #include caused by the upstream removal of the ax25 and amateur radio (hamradio) subsystem: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-7.1.y&id=dd8d4bc28ad7252610d8e79c1313a2d1e3499a51 which was added to buildroot with commit 9530d74ddb04d5fc81f9054ec0e76fbcb2a1e7d2. For details see https://github.com/ecki/net-tools/issues/69 Fixes: https://autobuild.buildroot.net/results/6c7/6c7783e3b6dad01b5dd725141ebed2b84242051e/ Signed-off-by: Bernd Kuhls Signed-off-by: Fiona Klute --- package/net-tools/net-tools.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/package/net-tools/net-tools.mk b/package/net-tools/net-tools.mk index 344abee8b3..e208a78e71 100644 --- a/package/net-tools/net-tools.mk +++ b/package/net-tools/net-tools.mk @@ -32,7 +32,17 @@ define NET_TOOLS_ENABLE_IPV6 $(SED) 's:_AFINET6 0:_AFINET6 1:' $(@D)/config.h endef -NET_TOOLS_POST_CONFIGURE_HOOKS += NET_TOOLS_ENABLE_I18N NET_TOOLS_ENABLE_IPV6 +ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_7_1),y) +define NET_TOOLS_DISABLE_ROSE + $(SED) 's:HAVE_AFROSE 1:HAVE_AFROSE 0:' \ + -e 's:HAVE_HWROSE 1:HAVE_HWROSE 0:' $(@D)/config.h +endef +endif + +NET_TOOLS_POST_CONFIGURE_HOOKS += \ + NET_TOOLS_DISABLE_ROSE \ + NET_TOOLS_ENABLE_I18N \ + NET_TOOLS_ENABLE_IPV6 define NET_TOOLS_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) \