On Fri, Apr 5, 2019 at 3:36 PM Dridi Boukelmoune
<dridi.boukelmoune(a)gmail.com> wrote:
> I think I found the solution here:
>
>
https://fedoraproject.org/wiki/PackagingDrafts/SELinux_Independent_Policy
>
> BuildRequires: selinux-policy
> %{?selinux_requires}
>
> This way its expansion can be deferred at rebuild time, I suppose. But
> don't we miss the other BuildRequires tags in this case?
We do:
make: /usr/share/selinux/devel/Makefile: No such file or directory
A different catch 22 now :(
I ended up with this, and it seems to cover all my needs:
BuildRequires: selinux-policy
BuildRequires: /usr/share/selinux/devel/Makefile
%{?selinux_requires}
I'm a bit curious on how things could improve on epel7, but having the
macros in the first place is already very helpful!
Dridi