dhcpcd: needs kernel headers >= 3.1
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 13 May 2015 13:22:34 +0000 (15:22 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 13 May 2015 13:31:23 +0000 (15:31 +0200)
commit dfbfa6ef (dhcpcd: blacklist Sourcery PowerPC toolchains) blacklisted
specific toolchains, but the issue is actually that the kernel headers
before 3.1 didn't define sa_family_t, 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 dhcpcd (network-manager) already needs 3.7+,
so this dependency doesn't need to be propagated.

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

index f2ca0998f8d108f689b4489875a2fcd3dfb8bbf2..88f2e489d2a12c5afe8a5258357eca011b1dbeca 100644 (file)
@@ -1,9 +1,11 @@
+comment "dhcpcd needs a toolchain w/ headers >= 3.1"
+       depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
+
 config BR2_PACKAGE_DHCPCD
        bool "dhcpcd"
        # No support for AI_ADDRCONFIG
        depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2
-       # 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 # sa_family_t in linux/socket.h
        help
          An RFC2131 compliant DHCP client