On 31/05/17 12:56, Olaf Hering wrote:
Am Wed, 31 May 2017 12:23:13 +0200 schrieb Antonio Larrosa <alarrosa@suse.de>:
Which is actually what you want to do: apply your patch when the gcc version is 7.0 or newer. I think this makes spec files more readable and require
Is that 'gcc.rpm is 7.0' or 'gcc-7 binary is available'?
The macros just work with package names or "provided" capabilities so "gcc" as that's the package name.
I think it encourages people to not fix the actual code.
Can you be more explicit? Why would those macros encourage not to fix anything?
It will likely break 'quilt setup', like most conditionals in %prep do.
That's a good point. Although I'm not sure why these macros make the problem worse than it currently is, and if you're complaining about conditionals in %prep in general and how they break quilt, I guess that should be discussed in another thread. Just not to mix issues. -- Antonio Larrosa