Skip to contentSkip to conversation

package/iptraf-ng : fix build with toolchain header.

PATCH New Jugurtha BELKALEM 2 participants 2 messages Aug 27, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/iptraf-ng : fix build with toolchain header.

Iptraf-ng is compatible with Linux 3.14 as the last
introduced various packet types like : PACKET_KERNEL and PACKET_USERSPACE[1].

[1] https://elixir.bootlin.com/linux/v3.14-rc1/source/include/uapi/linux/if_packet.h

---
 package/iptraf-ng/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/iptraf-ng/Config.in +1 -0
index f240daf93d..ffe80292c9 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_IPTRAF_NG
 	bool "iptraf-ng"
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
 	select BR2_PACKAGE_NCURSES
 	help
 	  IPTraf-ng is a console-based network monitoring program for
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/iptraf-ng : fix build with toolchain header.

Hello,

The commit title is not correct, it's not "fixing build with toolchain header", it's "add dependency on Linux headers >= 3.14".

Quoted 15 lines · On Thu, 27 Aug 2020 10:30:27 +0200 Jugurtha BELKALEM…

Iptraf-ng is compatible with Linux 3.14 as the last
introduced various packet types like : PACKET_KERNEL and PACKET_USERSPACE[1].

[1] https://elixir.bootlin.com/linux/v3.14-rc1/source/include/uapi/linux/if_packet.h

---
 package/iptraf-ng/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/iptraf-ng/Config.in +0 -0
index f240daf93d..ffe80292c9 100644

package/iptraf-ng/Config.in line 7

Quoted 7 lines
package/iptraf-ng/Config.in +1 -0
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_IPTRAF_NG
 	bool "iptraf-ng"
 	depends on BR2_USE_MMU # fork()
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
 	select BR2_PACKAGE_NCURSES
 	help
 	  IPTraf-ng is a console-based network monitoring program for

You need to update the Config.in comment as well. See how other packages do this.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com