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.
This commit is contained in:
Beniamino Galvani 2018-11-09 11:18:13 +01:00
parent 38299a1d78
commit 570c41aae4

View file

@ -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 \