06.10.2015 01:32, 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.
Then I expect this condition to always be false, how comes it evaluates true?
Just do not use __isa_bits, that is something nobody (no other spec) does.
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org