mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
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>
68 lines
1.8 KiB
Makefile
68 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# net-tools
|
|
#
|
|
################################################################################
|
|
|
|
NET_TOOLS_VERSION = 2.10
|
|
NET_TOOLS_SOURCE = net-tools-$(NET_TOOLS_VERSION).tar.xz
|
|
NET_TOOLS_SITE = http://downloads.sourceforge.net/project/net-tools
|
|
NET_TOOLS_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
NET_TOOLS_LICENSE = GPL-2.0+
|
|
NET_TOOLS_LICENSE_FILES = COPYING
|
|
NET_TOOLS_CPE_ID_VALID = YES
|
|
|
|
# 0001-CVE-2025-46836-interface.c-Stack-based-Buffer-Overfl.patch
|
|
# 0002-CVE-2025-46836-interface-statistic-regression.patch
|
|
NET_TOOLS_IGNORE_CVES += CVE-2025-46836
|
|
|
|
define NET_TOOLS_CONFIGURE_CMDS
|
|
(cd $(@D); yes "" | ./configure.sh config.in )
|
|
endef
|
|
|
|
# Enable I18N when appropriate
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
|
define NET_TOOLS_ENABLE_I18N
|
|
$(SED) 's:I18N 0:I18N 1:' $(@D)/config.h
|
|
endef
|
|
endif
|
|
|
|
# Enable IPv6
|
|
define NET_TOOLS_ENABLE_IPV6
|
|
$(SED) 's:_AFINET6 0:_AFINET6 1:' $(@D)/config.h
|
|
endef
|
|
|
|
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) \
|
|
LDFLAGS="$(TARGET_LDFLAGS) $(TARGET_NLS_LIBS)" \
|
|
$(MAKE) -C $(@D)
|
|
endef
|
|
|
|
# ifconfig & route reside in /sbin for busybox, so ensure we don't end
|
|
# up with two versions of those.
|
|
ifeq ($(BR2_ROOTFS_MERGED_BIN),)
|
|
define NET_TOOLS_INSTALL_MV_BINS
|
|
mv -f $(TARGET_DIR)/bin/ifconfig $(TARGET_DIR)/sbin/ifconfig
|
|
mv -f $(TARGET_DIR)/bin/route $(TARGET_DIR)/sbin/route
|
|
endef
|
|
endif
|
|
|
|
define NET_TOOLS_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
$(NET_TOOLS_INSTALL_MV_BINS)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|