libnftnl: needs kernel headers >= 3.1
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 13 May 2015 13:27:28 +0000 (15:27 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 13 May 2015 13:31:59 +0000 (15:31 +0200)
Contrary to what commit f5866484f (libnftnl: exclude for CS PPC toolchains)
stated, a missing sa_family_t definition IS specific to the kernel headers
version, and not something particular to the CS toolchains, so instead
require 3.1+ headers.

The specific kernel change fixing the headers is:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6602a4baf4d1a73cc

The only reverse dependency of libnftnl (nftables) already needs 3.4+, so
this dependency doesn't need to be propagated.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libnftnl/Config.in

index dcbfde060af5f0674a904b153b283b37d6421a19..365ab10201742a59c8476d097494d40f34433958 100644 (file)
@@ -1,7 +1,9 @@
+comment "libnftnl needs a toolchain w/ headers >= 3.1"
+       depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
+
 config BR2_PACKAGE_LIBNFTNL
        bool "libnftnl"
-       # bad headers, no sa_family_t in linux/socket.h
-       depends on !(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103 || BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009)
+       depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
        select BR2_PACKAGE_LIBMNL
        help
          libnftnl is a userspace library providing a low-level