Re: Python3 will be in next major RHEL release, please adjust %if statements accordingly

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

 



On Thu, Jan 11, 2018 at 11:55 PM, Panu Matilainen <pmatilai@xxxxxxxxxx> wrote:
> On 01/12/2018 06:08 AM, Luya Tshimbalanga wrote:
>>
>> On 2018-01-11 01:02 PM, Troy Dawson wrote:
>>>
>>> Hello,
>>> Python3 will be in the next major RHEL release.  I don't mean RHEL
>>> 7.6, but with numbers higher than 7.
>>> There are many, many packages with something like the following
>>>
>>>    if 0%{?fedora}
>>>     %define with_python3 1
>>>    %endif
>>>
>>> If you have something like that, please change it to something like this.
>>>
>>>    if 0%{?fedora} || 0%{?rhel} > 7
>>>     %define with_python3 1
>>>    %endif
>>>
>>> Thank You
>>> _______________________________________________
>>
>>
>> Quick question: why not using %global rather than %define ?
>>
>
> Probably old habit from times before %define got unnecessarily demonized
> within Fedora. FWIW, both achieve exactly the same thing in this context.
>

When writing this email I grabbed the last package that I looked at.
There is a wide variety of these %if statements, ranging from %define
and %global, and different ways of setting "with_python3", to putting
the %if statement around each python3 part of the spec file.
Because of this wide variety, it would be difficult to script a
rewrite of spec files.

Troy
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux