Skip to contentSkip to conversation

package/net-tools: fix build with linux 7.1

PATCH In review Bernd Kuhls 2 participants 2 messages Jun 18 – Jun 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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
9530d74ddb04d5fc81f9054ec0e76fbcb2a1e7d2.

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

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

---
 package/net-tools/net-tools.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
package/net-tools/net-tools.mk +11 -1
index 344abee8b3..e208a78e71 100644
@@ -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) \
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Am 18.06.26 um 08:42 schrieb Bernd Kuhls:

Quoted 12 lines

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

Quoted 6 lines

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

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

Accepted into master, thank you!

Quoted 17 lines
---
  package/net-tools/net-tools.mk | 12 +++++++++++-
  1 file changed, 11 insertions(+), 1 deletion(-)
package/net-tools/net-tools.mk +4 -1
index 344abee8b3..e208a78e71 100644
@@ -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

package/net-tools/net-tools.mk define NET_TOOLS_ENABLE_IPV6 · line 48

Quoted 10 lines
package/net-tools/net-tools.mk +7 -0
+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) \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot