On Dez 12 2022, Johannes Kastl wrote:
TL;DR: Is it possible to to un-define a %_with_XXX at project level in the prjconf?
No. The prjconf format (which follows the format of an RPM macro file, see `Configuration using Macros' in https://rpm-software-management.github.io/rpm/manual/macros.html) does not have a way to undefine predefined or previously defined macros. You can only redefine a macro, possible with an empty value (which won't help in your case).
I already tried defining %_without_XXX, but that did not work, apparently as %_with_XXX was still defined.
Yes, that is a shortcoming of the %with machinery. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."