From 570c41aae421b6b4817a114eef2cfc18ca21e867 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 9 Nov 2018 11:18:13 +0100 Subject: [PATCH] rpm: disable ebpf support on RHEL The ebpf syscall doesn't work on RHEL even if the linux/bpf.h header is available: let's explicitly disable it. On Fedora explicitly enable eBPF instead of autodetecting it. --- contrib/fedora/rpm/NetworkManager.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/fedora/rpm/NetworkManager.spec b/contrib/fedora/rpm/NetworkManager.spec index 108fb2b6bb..b7068bae37 100644 --- a/contrib/fedora/rpm/NetworkManager.spec +++ b/contrib/fedora/rpm/NetworkManager.spec @@ -536,8 +536,10 @@ by nm-connection-editor and nm-applet in a non-graphical environment. -Dconcheck=true \ %if 0%{?fedora} -Dlibpsl=true \ + -Debpf=true \ %else -Dlibpsl=false \ + -Debpf=false \ %endif -Dsession_tracking=systemd \ -Dsuspend_resume=systemd \ @@ -645,8 +647,10 @@ intltoolize --automake --copy --force --enable-concheck \ %if 0%{?fedora} --with-libpsl \ + --with-ebpf \ %else --without-libpsl \ + --without-ebpf \ %endif --with-session-tracking=systemd \ --with-suspend-resume=systemd \