commit:     663c5cf752b24425fa93c8f9a0fbf22077314520
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 27 22:03:07 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Nov 27 22:03:59 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=663c5cf7

sys-apps/systemd: add kernel check for CGROUP_BPF

Closes: https://bugs.gentoo.org/638860
Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7

 sys-apps/systemd/systemd-235-r1.ebuild | 1 +
 sys-apps/systemd/systemd-9999.ebuild   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys-apps/systemd/systemd-235-r1.ebuild 
b/sys-apps/systemd/systemd-235-r1.ebuild
index e31cdbf1487..a83897f709f 100644
--- a/sys-apps/systemd/systemd-235-r1.ebuild
+++ b/sys-apps/systemd/systemd-235-r1.ebuild
@@ -118,6 +118,7 @@ pkg_pretend() {
                use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
                kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
                kernel_is -lt 4 7 && CONFIG_CHECK+=" ~DEVPTS_MULTIPLE_INSTANCES"
+               kernel_is -ge 4 10 && CONFIG_CHECK+=" ~CGROUP_BPF"
 
                if linux_config_exists; then
                        local uevent_helper_path=$(linux_chkconfig_string 
UEVENT_HELPER_PATH)

diff --git a/sys-apps/systemd/systemd-9999.ebuild 
b/sys-apps/systemd/systemd-9999.ebuild
index 032a4e3441e..e32db7f2190 100644
--- a/sys-apps/systemd/systemd-9999.ebuild
+++ b/sys-apps/systemd/systemd-9999.ebuild
@@ -116,6 +116,7 @@ pkg_pretend() {
                use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
                kernel_is -lt 3 7 && CONFIG_CHECK+=" ~HOTPLUG"
                kernel_is -lt 4 7 && CONFIG_CHECK+=" ~DEVPTS_MULTIPLE_INSTANCES"
+               kernel_is -ge 4 10 && CONFIG_CHECK+=" ~CGROUP_BPF"
 
                if linux_config_exists; then
                        local uevent_helper_path=$(linux_chkconfig_string 
UEVENT_HELPER_PATH)

Reply via email to