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. Thanks in advance, Johannes
https://build.opensuse.org/package/view_file/home:ojkastl_buildservice:libtm...
%ifarch ppc64le echo "DEBUGGING arch is ppc64le" uname -a exit 99 %else echo "Not ppc64le" %endif %ifarch %%arm echo "DEBUGGING arch is 32bit arm" uname -a exit 99 %else echo "Not 32bit arm" %endif %ifarch aarch64 aarch64_ilp32 armv8l aarch64:aarch64_ilp32:armv8l echo "DEBUGGING arch is aarch64 aarch64_ilp32 armv8l aarch64:aarch64_ilp32:armv8l" uname -a exit 99 %else echo "Not aarch64 aarch64_ilp32 armv8l aarch64:aarch64_ilp32:armv8l" %endif %ifarch ppc64:ppc ppc64 ppc echo "DEBUGGING arch is ppc64:ppc ppc64 ppc" uname -a exit 99 %else echo "Not ppc64:ppc ppc64 ppc" %endif %ifnarch aarch64 aarch64_ilp32 armv8l aarch64:aarch64_ilp32:armv8l ppc64:ppc ppc64 ppc ppc64le armv7l armv6l armv5tel armv7l:armv6l:armv5tel %%arm echo "DEBUGGING arch is NOT aarch64 aarch64_ilp32 armv8l aarch64:aarch64_ilp32:armv8l ppc64:ppc ppc64 ppc ppc64le armv7l armv6l armv5tel armv7l:armv6l:armv5tel" uname -a %else echo "Arch is one of aarch64 aarch64_ilp32 armv8l aarch64:aarch64_ilp32:armv8l ppc64:ppc ppc64 ppc ppc64le armv7l armv6l armv5tel armv7l:armv6l:armv5tel %%arm" %endif
-- Johannes Kastl Linux Consultant & Trainer Tel.: +49 (0) 151 2372 5802 Mail: kastl@b1-systems.de B1 Systems GmbH Osterfeldstraße 7 / 85088 Vohburg http://www.b1-systems.de GF: Ralph Dehner Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537