Re: Thanksgiving sneak preview of something cool....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/21232fceb48a890f0a40d985001eb64cb75e2989?branch=rawhide

pstoedit 
https://src.fedoraproject.org/rpms/pstoedit/c/dfc84e91d392378aa2c365680731ee5ff49d2608?branch=rawhide


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.
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux