On Thu, 2021-11-25 at 11:49 -0500, Matthew Miller wrote:
Ever wanted to search across all Fedora spec files for some pattern?
Well , we need search for "%if ! 0%{?rhel} >= 8" which is one wrong
condictional for not {?rhel} >= 8 , see [1]
I know at least 2 cases :
inkscape
https://src.fedoraproject.org/rpms/inkscape/c/21232fceb48a890f0a40d985001...
pstoedit
https://src.fedoraproject.org/rpms/pstoedit/c/dfc84e91d392378aa2c36568073...
best regards,
[1]
%if ! 0%{?rhel} >= 8 is grouped as %if (! 0%{?rhel}) >= 8
which becomes, on Fedora:
%if (! 00) >= 8
%if 1 >= 8
and therefore evaluates false.
Writing
%if ! (0%{?rhel} >= 8)
is the correct
--
Sérgio M. B.