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 <linux/rose.h>

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
9530d74ddb.

For details see https://github.com/ecki/net-tools/issues/69

Fixes:
https://autobuild.buildroot.net/results/6c7/6c7783e3b6dad01b5dd725141ebed2b84242051e/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
This commit is contained in:
Bernd Kuhls
2026-06-18 08:42:20 +02:00
committed by Fiona Klute
parent 003b062974
commit 7f72bec788

View File

@@ -32,7 +32,17 @@ define NET_TOOLS_ENABLE_IPV6
$(SED) 's:_AFINET6 0:_AFINET6 1:' $(@D)/config.h $(SED) 's:_AFINET6 0:_AFINET6 1:' $(@D)/config.h
endef 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 define NET_TOOLS_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \