diff mbox series

[1/1] package/iptraf-ng : add dependency on Linux headers >= 3.14

Message ID 20200827091821.17990-1-jugurtha.belkalem@smile.fr
State Accepted
Headers show
Series [1/1] package/iptraf-ng : add dependency on Linux headers >= 3.14 | expand

Commit Message

Jugurtha BELKALEM Aug. 27, 2020, 9:18 a.m. UTC
iptraf-ng uses a number of definitions (like PACKET_KERNEL and
PACKET_USERSPACE) provided by the Linux kernel headers, which were
introduced in Linux 3.14[1], so we need to add a dependency on
BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14.

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

"""
Fixes:

  http://autobuild.buildroot.net/results/480/480b00b4b264cfe1da533c762595d21b72fa8211/build-end.log
"""

Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
---
 package/iptraf-ng/Config.in | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Thomas Petazzoni Aug. 27, 2020, 8:40 p.m. UTC | #1
On Thu, 27 Aug 2020 11:18:21 +0200
Jugurtha BELKALEM <jugurtha.belkalem@smile.fr> wrote:

> iptraf-ng uses a number of definitions (like PACKET_KERNEL and
> PACKET_USERSPACE) provided by the Linux kernel headers, which were
> introduced in Linux 3.14[1], so we need to add a dependency on
> BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14.
> 
> [1] https://elixir.bootlin.com/linux/v3.14-rc1/source/include/uapi/linux/if_packet.h
> 
> """
> Fixes:
> 
>   http://autobuild.buildroot.net/results/480/480b00b4b264cfe1da533c762595d21b72fa8211/build-end.log
> """
> 
> Signed-off-by: Jugurtha BELKALEM <jugurtha.belkalem@smile.fr>
> ---
>  package/iptraf-ng/Config.in | 5 +++++
>  1 file changed, 5 insertions(+)

Applied to next, thanks.

Thomas
diff mbox series

Patch

diff --git a/package/iptraf-ng/Config.in b/package/iptraf-ng/Config.in
index f240daf93d..5c61b7c0e2 100644
--- a/package/iptraf-ng/Config.in
+++ b/package/iptraf-ng/Config.in
@@ -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
@@ -10,3 +11,7 @@  config BR2_PACKAGE_IPTRAF_NG
 
 	  IPTraf-ng is a fork of original IPTraf v3.0.0
 	  (http://iptraf.seul.org).
+
+comment "iptraf-ng needs a toolchain w/ kernel headers >= 3.14"
+	depends on BR2_USE_MMU
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14