From 3d1810991f7d866d6a7067ce7ef7c8ab2b36b766 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Aug 07 2023 10:05:26 +0000 Subject: Gate out selinux-policy dependency on Facebook specific builds The systemd-selinux dependency on the very latest selinux-policy-base version keeps causing issues for us so since we don't use selinux internally, let's gate out the dependency on systemd-selinux for Facebook specific builds. --- diff --git a/systemd.spec b/systemd.spec index b61dcf7..36457b9 100644 --- a/systemd.spec +++ b/systemd.spec @@ -263,7 +263,9 @@ Recommends: libqrencode.so.4%{?elf_suffix} Recommends: libbpf.so.0%{?elf_suffix} Recommends: libbpf.so.0(LIBBPF_0.4.0)%{?elf_bits} +%if 0%{?facebook} == 0 Requires: (%{name}-selinux = %{version}-%{release} if selinux-policy) +%endif Recommends: libbpf.so.0%{?elf_suffix} Recommends: libbpf.so.0(LIBBPF_0.4.0)%{?elf_bits}