On Mon, 2023-04-03 at 14:59 +0200, Johannes Kastl wrote:
Hi all,
On 03.04.23 at 07:50 Johannes Kastl wrote:
In the meantime I found out that apparently my "multiple ifarchs with an ifnarch at the end" did not work, as apparently all builds used the "ifnarch" part. I'll dig deeper into this...
OK, I give up, I fail to see my error in this.
I noticed that the multiple %ifarch conditions were not used, so I added a hard "exit 99" to each one but the %ifnarch one. And sure enough, all builds (i586, x86_64, armv7l, aarch64) still succeed, as they always end up in the %else clauses for all of the %ifarch ones.
I also added a %else to all of the %ifarch statements, and all of them seem to fall into the %else condition.
Can someone please point out my error? I am failing to understand it.
You fell into a very obscure trap: BuildArch: noarch ifarch and noarch do not mingle