Am 06.10.2015 um 01:11 schrieb Ferdinand Thiessen:
Am 06.10.2015 um 00:32 schrieb Jan Engelhardt:
On Monday 2015-10-05 17:18, Ferdinand Thiessen wrote:
I am trying to build a package with a conditional BuildRequire. lldb-devel is only on 13.2 / Leap / Factory x86_64 available, so I am using:
%if 0%{?suse_version} >= 1315 && 0%{__isa_bits} == 64
[ 79s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' /home/abuild/rpmbuild/SOURCES/mytest.spec [ 79s] error: Failed build dependencies: [ 79s] lldb-devel is needed by mytest-1.0-0.x86_64
Somebody an idea? __isa_bits is not defined while bs_sched evaluates the BuildRequires, but is likely defined when rpmbuild evaluates BuildRequires.
Just do not use __isa_bits, that is something nobody (no other spec) does. Ah ok, thank you! Found that __isa_bits on rpg.org. I tried %_lib == "lib64" (does not work), but with:
%if 0%{?suse_version} >= 1315 %ifarch arm x86_64 BuildRequires: lldb-devel %endif %endif
It works!
Really? "arm" is unused, and "%arm" is not 64-bit. Did you mean aarch64? Cheers, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org