Re: %ifarch note

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 10/10/2013 04:12, Tom Callaway ha scritto:
Since I hit this, I'd imagine other people might.

If your package has:

BuildArch: noarch

It will set %{_target_cpu} to "noarch".

If you also use %ifarch in that spec file, you might be expecting it to
match %{_arch} (the architecture of the build server). It does not. It
matches %{_target_cpu}.

If you need to conditionalize on the value of %{_arch} in such a spec
file, you need to do it explicitly:

%if %{_arch} == x86_64 || %{_arch} == i686

Hope that helps other folks,

~tom

==
Fedora Project
sorry for the silly question
isn't the same use:
%ifarch %{arm}
for e.g. skip test suite only if the builder is arm?
see https://bugzilla.redhat.com/show_bug.cgi?id=991712
regards
gil
begin:vcard
fn:gil
n:;gil
email;internet:puntogil@xxxxxxxxx
version:2.1
end:vcard

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux