Re: I see this statement a lot in the kernel spec file. What is its interpretation? %if 0%{?fedora}

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

 



On Mon, 25 Nov 2019 01:32:38 +0000
Sérgio Basto <sergio@xxxxxxxxxx> wrote:

> On Sun, 2019-11-24 at 11:04 -0700, stan wrote:
> > As the subject says, I see the %if 0%{?fedora} statement in the spec
> > file, and I thought I knew what it meant, but the latest additions
> > to the spec file have caused me to question that.
> > 
> > My interpretation is that without the 0, it is checking whether it
> > is running on fedora.  With the zero, it is ignoring the branch and
> > either
> > skipping the guarded statements or taking the else.  Is this
> > correct?  
> 
> 0 is for when %{?fedora} is not defined , without 0 for example the
> build on el will fail with one scriplet syntax error.

Thanks, now I know.
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-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/kernel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux