aboutsummaryrefslogtreecommitdiff
path: root/package/lxc/Config.in
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2014-11-16 12:04:47 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2014-11-16 23:10:53 +0100
commite7930b65c029cf3c7f905db1f2f9d8ce80ee1a61 (patch)
tree6c4de2e381bee1ec94553b6ca2a72aa6cfae3698 /package/lxc/Config.in
parent9ae6c0a7b6099352efe16e284d70c0549a6bad61 (diff)
downloadbuildroot-e7930b65c029cf3c7f905db1f2f9d8ce80ee1a61.tar.gz
buildroot-e7930b65c029cf3c7f905db1f2f9d8ce80ee1a61.tar.bz2
package/libcap: needs headers >= 3.0
libcap requires XATTR_NAME_CAPS, which was introduced in Linux 2.6.24. However, we have some toolchains, liek the CodeSourcery PowerPC 2011.03, that is missing those defines, even though it uses headers from Linux 2.6.38. Since there is no perfect way to avoid the situation, just require headers >= 3.0 to build libcap. Propagate the new dependency to packages that select libcap. Fixes a lot of build failures, of which: http://autobuild.buildroot.net/results/e90/e909ca48ad2d1c85b19258f65e0c89a2813ac45e/ http://autobuild.buildroot.net/results/23a/23aac9bb1cc48e5974bcf50256a16c67318f9ba2/ http://autobuild.buildroot.net/results/597/597da58cb2fccb92d7883802c60b31264cacad08/ http://autobuild.buildroot.net/results/538/538b23417c68f6c8c0c8c92dfc0e8ed314bac01b/ ... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Gustavo Zacarias <gustavo@zacarias.com.ar> Cc: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/lxc/Config.in')
-rw-r--r--package/lxc/Config.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/lxc/Config.in b/package/lxc/Config.in
index 3eae64ac34..cf85712a5a 100644
--- a/package/lxc/Config.in
+++ b/package/lxc/Config.in
@@ -7,6 +7,7 @@ config BR2_PACKAGE_LXC
depends on BR2_USE_MMU # fork()
depends on !BR2_avr32 # no timerfd
depends on !BR2_nios2 # the toolchain doesn't support setns syscall
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # libcap
help
Linux Containers (LXC), provides the ability to group and isolate
of a set of processes in a jail by virtualizing and accounting the
@@ -14,8 +15,9 @@ config BR2_PACKAGE_LXC
https://linuxcontainers.org/
-comment "lxc needs a toolchain w/ IPv6, threads, largefile"
+comment "lxc needs a toolchain w/ IPv6, threads, largefile, headers >= 3.0"
depends on BR2_USE_MMU
depends on !BR2_avr32 # no timerfd
depends on !BR2_nios2 # the toolchain doesn't support setns syscall
- depends on !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_LARGEFILE
+ depends on !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS \
+ || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0