summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2018-11-09 11:18:13 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2018-11-09 11:36:25 +0100
commit570c41aae421b6b4817a114eef2cfc18ca21e867 (patch)
treead997830133958f93433f60a4ecd15f838e00b64
parent38299a1d78b364ad54fe11f22665040a4f245260 (diff)
downloadNetworkManager-570c41aae421b6b4817a114eef2cfc18ca21e867.tar.gz
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.
-rw-r--r--contrib/fedora/rpm/NetworkManager.spec4
1 files changed, 4 insertions, 0 deletions
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 \