18 Feb
2022
18 Feb
'22
10:59
On 18/02/2022 11:49, Peter Czanik wrote:
Hi,
What is the correct use of %ifarch in a spec file if I want to disable a feature on ARM v7? I tried:
%ifarch armv7l %bcond_with java %else %bcond_without java %endif
But java support was still enabled for armv7l, and the build resulted in a failure: https://build.opensuse.org/package/live_build_log/home:czanik:branches:Base:...
I can see: [ 97s] build target is armv7hl-suse-linux Try with: %ifarch armv7l armv7hl Regards, Matthias