summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2016-07-27 16:59:19 -0500
committerWilliam Hubbs <williamh@gentoo.org>2016-07-27 17:12:27 -0500
commit4b49a69ee4cf97249c3ef53af6166a9670540884 (patch)
treebf2bed890a7f9c06a7b59b51f8a450971ebe494b /app-emulation
parentprofiles: Cleanup use mask for app-misc/strigi (diff)
downloadgentoo-4b49a69ee4cf97249c3ef53af6166a9670540884.tar.gz
gentoo-4b49a69ee4cf97249c3ef53af6166a9670540884.tar.bz2
gentoo-4b49a69ee4cf97249c3ef53af6166a9670540884.zip
app-emulation/docker: 1.12.0_rc5: adjust CONFIG_MEMCG_KMEM check for #589552
Package-Manager: portage-2.2.28
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/docker/docker-1.12.0_rc5.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/app-emulation/docker/docker-1.12.0_rc5.ebuild b/app-emulation/docker/docker-1.12.0_rc5.ebuild
index 5344a1635fd3..8120c5706861 100644
--- a/app-emulation/docker/docker-1.12.0_rc5.ebuild
+++ b/app-emulation/docker/docker-1.12.0_rc5.ebuild
@@ -80,7 +80,7 @@ CONFIG_CHECK="
~POSIX_MQUEUE
- ~MEMCG_KMEM ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
+ ~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
~BLK_CGROUP ~IOSCHED_CFQ
~CGROUP_PERF
@@ -91,7 +91,6 @@ CONFIG_CHECK="
"
ERROR_KEYS="CONFIG_KEYS: is mandatory"
-ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
@@ -140,6 +139,13 @@ pkg_setup() {
"
fi
+ if kernel_is lt 4 5; then
+ CONFIG_CHECK+="
+ ~MEMCG_KMEM
+ "
+ ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
+ fi
+
if use aufs; then
CONFIG_CHECK+="
~AUFS_FS