Re: disabling a feature on ARM v7
On Freitag, 18. Februar 2022 11:59:14 CET Matthias Brugger wrote:
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:Bas e:System/syslog-ng/openSUSE_Factory/armv7l I can see: [ 97s] build target is armv7hl-suse-linux
Try with: %ifarch armv7l armv7hl
Better use '%ifarch %{arm32}', this also includes armv6 (used for RPi1/2, mostly abandoned), and also would include armv8 (!= aarch64). `grep arm /usr/lib/rpm/macros` Regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019
participants (1)
-
Stefan Brüns