On 11/29/21 15:48, Vitaly Zaitsev via devel wrote:
On 29/11/2021 14:22, Jun Aruga wrote:
You can use `%bcond_with foo` (foo is not set as "false") or
`%bcond_without foo` (foo is set as "true") syntax.

%bcond_with{,out} has very ugly reverse syntax. I recently got rid of them in all my packages.


Yes it confuses a lot of people. However they are widely used and thus impossible to change, so its just better get used to it. The trick is to remember that

  %bond_with / %bcond_without are macros to *add an option build
  with or without* a capability, respectively.

That adding such an option effectively also defines a default which is reverse of the macro added is merely a side-effect.

It's perhaps a strange way to approach the problem, but these are old old macros (from 2004), I think PLD was way ahead of others in utilizing rpm macros etc for general distro benefit.

        - Panu -
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to