summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/libvirt/libvirt-1.3.5-r1.ebuild')
-rw-r--r--app-emulation/libvirt/libvirt-1.3.5-r1.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/app-emulation/libvirt/libvirt-1.3.5-r1.ebuild b/app-emulation/libvirt/libvirt-1.3.5-r1.ebuild
index 1ba6a8487585..c5f3f23ac351 100644
--- a/app-emulation/libvirt/libvirt-1.3.5-r1.ebuild
+++ b/app-emulation/libvirt/libvirt-1.3.5-r1.ebuild
@@ -174,7 +174,12 @@ pkg_setup() {
~!GRKERNSEC_CHROOT_CAPS"
# Handle specific kernel versions for different features
kernel_is lt 3 6 && CONFIG_CHECK+=" ~CGROUP_MEM_RES_CTLR"
- kernel_is ge 3 6 && CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP ~MEMCG_KMEM"
+ if $(kernel_is ge 3 6); then
+ CONFIG_CHECK+=" ~MEMCG ~MEMCG_SWAP "
+ if $(kernel_is lt 4 5); then
+ CONFIG_CHECK+=" ~MEMCG_KMEM "
+ fi
+ fi
use macvtap && CONFIG_CHECK+="
~MACVTAP"